を読み込まないVCBuild返しますのPowerShellからのMSBuildを使用すると、私はいくつかのVisual StudioでのPowerShellスクリプトから2005のソリューションをビルドを起動しようとしていると、それはこのエラーを返し、エラーが
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\path\to\solution\solutionToBuild.sln] Done Building Project "C:\path\to\solution\solutionToBuild.sln" (default targets) -- FAILED. Build FAILED. "C:\path\to\solution\solutionToBuild.sln" (default target) (1) -> (solutionToBuild target) -> MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the locati on of the component to the system path if it is installed elsewhere. [C:\path\to\solution\solutionToBuild.sln] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.84
私は本当に理由は分かりません私はMSVS 2005がインストールされているので、このメッセージが返され、私は、.NET V2がインストールされている:
PSChildName Version Release Product ----------- ------- ------- ------- v2.0.50727 2.0.50727.5420 v3.0 3.0.30729.5420 Windows Communication Foundation 3.0.4506.5420 Windows Presentation Foundation 3.0.6920.5011 v3.5 3.5.30729.5420 Client 4.6.01590 394806 4.6.2 Full 4.6.01590 394806 4.6.2 Client 4.0.0.0
それは私が私のシステム環境パスに何かを追加する必要がありますが、エラー・メッセージが追加して何を言っていないということかもしれません私はここで少し迷っています。
私が正しく覚えていれば、これはコマンドラインビルド環境を起動していないときのエラーです。 VS2005はかなり古く、私はそれがインストールされていません。ビルド環境でこれを起動するためのbatファイルはおそらくC:\ Program Files(x86)\ Microsoft Visual Studio xx \ CommonX \ Tools \ VsMSBuildCmd.batの下にあります。 もちろん、 'X'バージョンは2005年に表示されます –
おそらく@DavidDaughertyが言うことでしょう。 PATHなどが正しく設定されていない場合は、おそらく 'msbuild solutionToBuild.sln'を実行できません。例えばここで2番目と3番目の答え:https://stackoverflow.com/questions/2124753/how-can-i-use-powershell-with-the-visual-studio-command-prompt – stijn