[英]MSBuild fails on “Invalid command line switch for ”LC.exe" Why?
I am creating our companies continuous integration server using cc.net, and my original attempted included visual studio being installed on the build server. 我正在使用cc.net创建我们公司的持续集成服务器,而我最初的尝试是将Visual Studio安装在构建服务器上。 My manager really wants the build server to not need VS installed, and to just use MSBuild, included in the .net installation. 我的经理真的希望构建服务器不需要安装VS,而只使用.net安装中包含的MSBuild。
My current problem though is that I am receiving the following error message: 我目前的问题是我收到以下错误消息:
error MSB6001: Invalid command line switch for "LC.exe". 错误MSB6001:“ LC.exe”的命令行开关无效。 Illegal characters in path. 路径中包含非法字符。 [C:\\path\\to\\project.csproj] [C:\\ path \\ to \\ project.csproj]
With visual studio 2010 installed in my previous attempt, my build works successfully, but now that I do not have visual studio installed in the new build machine, I am receiving this message. 在上次尝试安装Visual Studio 2010的情况下,我的构建成功完成,但是由于我没有在新的构建计算机中安装Visual Studio,因此我收到此消息。
What can I do to get this to work? 我该怎么做才能使它正常工作? Thanks in advance for your help! 在此先感谢您的帮助!
update 8/13/2012 below is my cc.net msbuild task: 下面的更新8/13/2012是我的cc.net msbuild任务:
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>D:\Build</workingDirectory>
<projectFile>Trunk\BuildSolution.sln</projectFile>
<buildArgs>/p:Configuration=Debug /t:CLEAN,BUILD</buildArgs>
<logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
<timeout>600</timeout>
</msbuild>
lc.exe (licence compiler) comes with the .net framework sdk as well as studio. lc.exe(许可证编译器)与.net框架sdk和Studio一起提供。
http://www.microsoft.com/en-us/download/details.aspx?id=19988 http://www.microsoft.com/zh-cn/download/details.aspx?id=19988
Try downloading the right sdk and make sure your path is updated to point to the install directory. 尝试下载正确的SDK,并确保您的路径已更新为指向安装目录。
http://msdn.microsoft.com/en-us/library/d9kh6s92(v=vs.80).aspx http://msdn.microsoft.com/zh-CN/library/d9kh6s92(v=vs.80).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.