While trying to set up our continuous-integration environment - CruiseControl.net (ccnet) with our new Silverlight 4 project, I have encountered some difficulties. Since it did take me some hours to solve, I thought it might be helpful posting the solution I have found appropriate for my needs.
The errors I got from the ccnet report were:
…C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets" …The Silverlight 4 SDK is not installed
and
…The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
The solution for me was very straight forward after I found out that Silverlight does not (yet?) support x64 platform. I have changed the build to occur with MSBuild x32 rather than the x64 version I would normally use. That had solved all my problems. Well, to be honest, only the ones had to do with this specific issue…