WittyCoding

Coding blog

Silverlight tip 3 : Curse to any project named "Resources"

One of the first times that I worked with Silverlight, I wanted refactoring my application and create a project named "MyProject.Client.Resources.". This project should contains various style sheets and other common resources with the rest of the project.

The application worked perfectly and after refactoring, catastrophe, nothing works. No errors (compilation or run-time). In the application, everything seems to work as if there weren't any available resource.

After many hours lost, I tested renaming the project "MyProject.Client.UIResources.", and, it worked.

The engine is already using the Resources namespace for each Silverlight project and replace this namespace.

So do not name a project “Resources”.

Tags: Silverlight

No Comments

Add a Comment