[英]MSBuild command line execution of Visual Studio 2010 Solution fails referencing VS2010 SDK to build an extension
msbuild JsExt.sln /t:Build /p:Configuration=Debug /p:OutDir=..\\..\\Binaries
MSBuild
添加/property:VsSDKInstall="C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v10.0\\VSSDK"
導致此異常... “VSCTCompiler”任務意外失敗。 C:\\ Program Files(x86)\\ MSBuild \\ Microsoft \\ VisualStudio \\ v10.0 \\ VSSDK \\ Microsoft.VsSDK.Common.targets(74,5):錯誤MSB4018:System.ArgumentNullException:值不能為null。
Microsoft.VsSDK.Common.targets
的路徑和文件確實存在。 x86
控制台和PowerShell窗口運行並加載了vcvarsall.bat (x86)
tmp_proj
是關於什么的。 Any CPU
MSBuild
命令。 /v:diag
不提供有關錯誤的更多信息。 任何想法,我缺少什么,調試的下一步是什么?
VSSDKInstall env變量是否在控制台中設置/顯示?
VSSDK100Install=C:\Program Files (x86)\Microsoft Visual Studio 2010 SDK SP1\
如果是這樣,那么將“/ v:diag”添加到cmd行以查看出現的情況。
看看下面的博客文章 - 第3步聽起來像是你的原始問題,第4步解釋了你剛剛遇到的后續VSCTCompiler問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.