0
大家好我写一个PowerShell脚本来自动执行该调试模式的PowerShell自动化构建版本的x86
清洁工作正常构建
$Configuration = "Debug"
$BuildArgs = @{
FilePath = $MsBuild
ArgumentList = $SlnFilePath, "/t:clean", ("/p:Configuration=" + $Configuration), "/v:minimal"
RedirectStandardOutput = $BuildLog
Wait = $true
}
Start-Process @BuildArgs
构建
$Configuration = "Debug"
$BuildArgs = @{
FilePath = $MsBuild
ArgumentList = $SlnFilePath, "/t:rebuild", ("/p:Configuration=" + $Configuration), "/v:minimal"
RedirectStandardOutput = $BuildLog
Wait = $true
}
Start-Process @BuildArgs
但是,当我更改参数列表如下
ArgumentList = $SlnFilePath, "/t:clean", ("/p:Configuration=Release /p:PlatformTarget=86"), "/v:minimal"
这不是清洗并重建该解决方案能够有人帮助我