Silverlight project builds in VS2008 but fails when using MSBuild
- by Tom
Hi,
We have 2 Silverlight projects in the same solution; SLGlobalResource and SLData. SLData references SLGlobalResource (using references add reference projects).
When we build it in debug within VS2008, everything builds fine and all is good.
But when we build it using:
msbuild TheSolution.sln /p:Configuration=Debug /t:rebuild
SLData fails with the following error:
ViewModels\ImportViewModel.cs : error CS0246: The type of name space "SLGlobalResource" could not be found (are you missing a using directive or an assembly reference?)
This also happens in TeamCity (I guess because the TeamCity vs2008 runner uses MSBuild)
Any ideas?
Thanks
Edit:
There are actually 33 projects in total in the solution. I didn't think this was relevant before but now I'm thinking it could be - could this be a build order thing?