我想从命令行使用msbuild构建我的VS2010 .sln文件(项目是.net 4.0)。我原以为这能行得通。
>C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe application.sln然而,我得到了这样的信息:
"Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion="3.5"."
构建继续进行,但它找不到我的任何引用并失败。
我可能漏掉了一些明显的东西。任何帮助都将不胜感激。
谢谢,
-dk
发布于 2010-06-22 20:21:33
这篇文章可能会有帮助:http://blog.prabir.me/post/Downgrading-VS2010-solutions-to-VS2008.aspx
似乎它的目标不是正确的msbuild版本(错误来自3.5msbuild版本),请尝试打开Visual Studio2010命令提示符,转到解决方案目录并运行msbuild.exe SolutionName.sln
https://stackoverflow.com/questions/3072730
复制相似问题