我正在尝试使用MSBuild步骤在Hudson持续集成服务器上设置构建项。
这些是我传递的参数:
-p:FrameworkPathOverride="C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6" /p:Configuration=Release
当我从控制台运行它时,它可以工作,但在Hudson中失败:
Path To MSBuild.exe: C:Program Files (x86)MSBuild14.0BinMSBuild.exe
Executing the command cmd.exe /C "C:Program Files (x86)MSBuild14.0BinMSBuild.exe" "-p:FrameworkPathOverride=C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6" /p:Configuration=Release C:ProjectsMyProjectMyProject.sln && exit %%ERRORLEVEL%% from C:ProjectsMyProject
[NET-Examino] $ cmd.exe /C "C:Program Files (x86)MSBuild14.0BinMSBuild.exe" "-p:FrameworkPathOverride=C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.6" /p:Configuration=Release C:ProjectsMyProjectMyProject.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批处理命令"步骤,我如何解决这个问题?
您的参数似乎没有正确指定。应该是/p:
,但你有-p: