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"
這不是清洗並重建該解決方案能夠有人幫助我