相关疑难解决方法(0)

未找到框架 .NETCore、Version=v5.0 的参考程序集

我有一个使用 Visual Studio 2017 创建的 UWP 项目。它在这台机器(机器 1)上构建得很好。

但是,当我将项目复制到仅安装了 Visual Studio 2017 构建工具的机器(机器 2)并尝试使用 MSBuild 构建它时,出现以下错误:

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets
(1126,5): error MSB3644: The reference assemblies for framework ".NETCore,Version=v5.0" 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 framewo
rk for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assemb
ly Cache …
Run Code Online (Sandbox Code Playgroud)

c# msbuild visual-studio .net-core

18
推荐指数
4
解决办法
3万
查看次数

标签 统计

.net-core ×1

c# ×1

msbuild ×1

visual-studio ×1