Why does MSBuild fail from the command line where VS2008 succeeds?

Posted by sundeep on Stack Overflow See other posts from Stack Overflow or by sundeep
Published on 2010-04-09T01:44:10Z Indexed on 2010/04/09 1:53 UTC
Read the original article Hit count: 433

I have an ASP.NET solution that builds just fine from within VS2008.

However , it fails when i do this :

MSBUILD.exe c:\path-to-sln 

It fails with a CS0006 error ("Metadata file 'dll_name' could not be found"). It also fails when I try with a .csproj of a project within the solution.

What is VS2008 doing that MSBuild is missing ? It is my understanding that VS knows about inter assembly dependencies that MSBuild cant. Is there any way I can inform MSBuild of these?

(I need MSBuild to work from the command line because I am calling it from an MSBuild-Task from within CruiseControl.Net.)

Thanks in Advance. :3)

(I have looked at http://stackoverflow.com/questions/280559/how-to-get-cmd-line-build-command-for-vs-solution , but still dont get it)

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about visual-studio-2008