嗨,我正在尝试使用 MSBuild 和 Psake 编译我的项目,但将 /m 传递给 MSBuild 时遇到问题。这是我的代码:
Exec {
MSBuild $solutionFile "/p:Configuration=$buildConfiguration;Platform=$buildPlatform;OutDir=$tempPath /m"
}
MSBuild 输出:
"C:\Users\mabre\Source\Psake\Psake.sln" (默认目标) (1) -> "C:\Users\mabre\Source\Psake\src\Psake.Library\Psake.Library.xproj" (默认目标)(5)-> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(262,5): 错误:找不到一部分路径“C:\Users\mabre\Source\Psake.build\temp \m \src\Psake.Library\obj\Release\netstandard1.6”。[C:\Users\mabre\Source\Psake\src\Psake.Library\Psake.Library.xproj]
0 Warning(s) 4 Error(s)
请注意,/m现在是输出路径的一部分
错误:2016 年 7 月 22 日上午 12:39:04:在 C:\Users\mabre.nuget\packages\psake\4.6.0\tools\psake.psm1:156 char:17 + throw ("Exec:" + $errorMessage) +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] 异常:Exec:执行错误命令 MSBuild $solutionFile "/p:Configuration=$buildConfiguration;Platform=$buildPlatform;OutDir=$tempPath /m" 。构建退出代码:1
提前致谢