【发布时间】:2017-09-06 18:48:04
【问题描述】:
我为 Visual Studio 2017 (msbuild 15) 安装了构建工具,但在构建解决方案时遇到了问题。我在安装构建工具之前安装了框架(4.6.1),所以它存在。
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1122,5): error 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.
编辑:请注意,在这种情况下,我实际上是在尝试静默安装 msbuild;所以我无权访问用户界面。
【问题讨论】:
标签: .net msbuild continuous-integration