【发布时间】:2017-02-22 09:20:34
【问题描述】:
我正在尝试使用 MSBuild 步骤在 Hudson 持续集成服务器上设置构建项。
这些是我传递的参数:
-p:FrameworkPathOverride="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6" /p:Configuration=Release
虽然这在我从控制台运行时有效,但在 Hudson 中却失败了:
Path To MSBuild.exe: C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe
Executing the command cmd.exe /C "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "-p:FrameworkPathOverride=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6" /p:Configuration=Release C:\Projects\MyProject\MyProject.sln && exit %%ERRORLEVEL%% from C:\Projects\MyProject
[NET-Examino] $ cmd.exe /C "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "-p:FrameworkPathOverride=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6" /p:Configuration=Release C:\Projects\MyProject\MyProject.sln && exit %%ERRORLEVEL%%
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
[DEBUG] Skipping watched dependency update for build: MyProject Countinuous Build #27 due to result: FAILURE
Finished: FAILURE
如何在不使用“执行 Windows 批处理命令”步骤的情况下解决此问题?
【问题讨论】:
-
在该命令周围加上额外的引号会导致 hudson(我认为)似乎删除了它们?
-
我已经尝试了所有我能想到的单引号/双引号组合。 Hudson 似乎非常坚定地删除它们并在参数周围放置自己的...
标签: .net msbuild hudson c#-6.0 .net-4.6