Silverlight project builds in VS2008 but fails when using MSBuild
Posted
by Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2010-03-25T16:22:25Z
Indexed on
2010/03/25
17:03 UTC
Read the original article
Hit count: 402
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?
© Stack Overflow or respective owner