project reference is not set in msbuild
I am using MSBUild to compile my solution. In my solution i have project "A". Project "A" internally call (projetc ref call) to project "B". But project "B" is not a part of my solution.
When i compile with MSBuild i 开发者_Python百科am getting error "The type or namespace name 'XYZ' does not exist in the namespace 'Utilities' (are you missing an assembly reference?)"
When i compile in VS IDE (2008), I am able to compile the solution.
Solution --> Project "A" (Part of solution) -------> Project "B" (not a part of solution)
Thanks in advance.
Don't use solution references, use project references, and your build will work from both the solution and the command line. See this blog entry for an explanation of why solution dependencies are bad.
精彩评论