简体   繁体   English

MSBuild在“ LC.exe的无效命令行开关”上失败,为什么?

[英]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.

相关问题 无法运行LC.exe - LC.exe could not be run .NET许可证编译器(LC.EXE)的网络连接问题 - Network Connectivity Issues with the .NET License Compiler (LC.EXE) .NET的许可证编译器(LC.EXE)似乎忽略了一台机器上的licenses.licx的内容,但没有忽略另一台机器上的内容。 为什么? - .NET's license compiler (LC.EXE) seems to ignore the contents of licenses.licx on one machine, but not on the other. Why? 针对 x64 程序集运行的 32 位 windows 上的 LC.EXE - LC.EXE on 32bit windows running against an x64 assembly 安装 Visual Studio SP1 后,构建找不到 LC.exe。 解决方案? - After installing Visual Studio SP1, LC.exe can't be found by the build. Solution? Visual Studio生成解决方案,但命令行中的MSBuild失败 - Visual Studio builds solution but MSBuild from the command line fails 如何使用 MSBuild 和 IIExpress.exe 从命令行构建和运行 .NET 框架 MVC 项目 - How to build and run a .NET Framework MVC project from command line with MSBuild and IIExpress.exe 正确的MSBuild.exe位置,以使用命令行构建.net 4.5应用程序 - Correct location of MSBuild.exe to build .net 4.5 application using command line 通过命令行使用MSBuild而不是在Visual Studio上使用无效的令牌错误 - Invalid Token Errors when using MSBuild via Command Line but not on Visual Studio 解决方案重建在命令行中使用MSBuild失败,但Visual Studio重建工作正常 - Solution rebuild fails using MSBuild in command line but Visual Studio rebuild works fine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM