2017-03-15 11 views
1

私はtfsでアプリケーションをビルドしようとしていますが、ターゲットとしているプラ​​ットフォームツールセットがサーバーにインストールされていないために失敗します。ビジュアルスタジオのバージョンがないためにTFSでビルドが失敗する

私の完全なエラーメッセージは、私は私のビルド定義でのVisual Studio 2017を選択してい

Visual Studio version '15.0' not found. Looking for the latest version. 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets (57, 5) 
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): Error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". 

です。このサーバーを適切に構成して構築するには、何をする必要がありますか?

答えて

2

MsBuildタスクを使用している場合は、ビルドツールをインストールするだけで十分です。ビルドサーバーでVisual Studio 2017 Build tools installerを起動し、少なくとも "Msbuild"と "CPP"パッケージをインストールします。

は、Visual Studioのタスクとビルドツールによってインストールされていないパッケージの一部に依存している場合は、ビルドにVisual Studio 2017をインストールする必要がありますサーバ。

+0

Visual Studioをインストールすると、実際に問題が解決されます。それは少し悪化しますが、必要なすべての図書館を手で適切な場所に置くよりも簡単です。 –

関連する問題