2016-09-19 14 views
1

私はVisual Studio 2010と複数のビルドターゲットを持つビルドマシンを持っています。 私が使用している他のすべてのターゲットは期待通りに動作し、何らかの理由で.net 4.6.1のバージョン14の新しいビルドが動作しません。msbuild 14が完全な.netフレームワークインストールなしで動作しない

私は、コマンドラインからのビルドを実行するよ、私は次のエラーを取得する:

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1097,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

誰かがそれを解決する方法を私に説明できますか?

答えて

7

.NET 4.6.1用にコンパイルできるようにするには、.NET Framework(およびおそらくWindows)の正しいSDKをインストールする必要があります。

  • .NET 4.6.1 SDK hereがあります。
  • 最新のWindows SDKはthis page、WindowsスタンドアロンSDK for Windows 10にあります。
+2

.NET 4.6.1 SDKをインストールすると、Jenkins CIサーバーの問題が解決され、.NET 4.6.1またはマルチターゲティングパックのみをインストールしても問題は解決しませんでした。 – Woland

関連する問題