I’ve created a “dummy” unmanaged solution to try out CRM Developer Toolkit (in its latest stable version available today), everything seems to work properly except CSS files.
In my Toolkit solution, Plugins and Workflow projects are empty (I just created the SNK for the Plugins project), and a Silverlight Application project has been added.
I added to the CrmPackage project three web resources:
- a JScript file
test.js(empty) - a HTM file
test.htm(contains a dummy html skeleton) - a CSS file
test.css(filled with a couple of attributes just to not leave it empty)
When I right-click -> Deploy the CrmPackage project, inside the solution I get this:
- a XAP (from the Silverlight project)
- 2xDLLs (from
PluginsandWorflowprojects) - the HTM and JS web resources
- the CSS file is nowhere to be found
I receive no errors whatsoever from the Visual Studio IDE (or from the CRM), and I was expecting the CSS file to show up amongst the other web resources…
… What am I missing ?
This was actually a very trivial issue: having given the same name to my resources, they obviously failed to publish (they would have ended up having the same name as web resources!)
I returned on this issue, opened a new project, went with a different naming like this:
myScript.jsmyPage.htmmyStyle.cssAnd the project deployed perfectly.