【发布时间】:2016-03-31 08:56:53
【问题描述】:
我有这个 powershell 脚本
$msbuildSettings="/p:Configuration=Release /p:VisualStudioVersion=12.0";
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe ..\Sol.sln /t:"Clean;Admin" $msbuildSettings
导致此错误的原因
The specified solution configuration "Release /p:VisualStudioVersion=12.0|Mixed Platforms" is invalid.
Msbuild 认为
/p:Configuration=Release /p:VisualStudioVersion=12.0
是一个属性。
如果我不使用变量 msbuildsettings,构建工作,即
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe ..\WeConnectSol.sln /t:"Clean;WeConnectAdmin" /p:Configuration=Release /p:VisualStudioVersion=12.0
如何告诉 powershell 不要合并属性?
【问题讨论】:
标签: powershell msbuild