【发布时间】:2017-12-11 15:49:03
【问题描述】:
我们在 RHPL 版本 7 中安装了dotnet sdk。当我们尝试构建我们的项目时,我们遇到了一些构建错误。我在 Linux 上的 dotnet 版本是 1.0.4。我们遇到这样的错误
error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5.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.
【问题讨论】:
-
您的项目是否针对 .Net Framework 4.5.1 而不是 .Net Core?