繁体   English   中英

Visual Studio Preview for Mac 2017 .NET Core构建错误

[英]Visual Studio Preview for Mac 2017 .NET Core build error

当我尝试在最新版本的Visual Studio Preview for Mac上运行.NET核心项目时,我得到下一个错误:

The specified framework 'Microsoft.NETCore.App', version '1.0.1' was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/local/share/dotnet/shared/Microsoft.NETCore.App
  - The following versions are installed:
  1.1.0
  - Alternatively, install the framework version '1.0.1'.
The application was terminated by a signal: SIGQUIT

WARNING: The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use Microsoft.NETCore.App 1.0.0 or newer. This may be expected if the target process did not run .NET code.

我打开了项目设置,在'目标框架'下拉列表中没有.NETCoreApp 1.1,只有1.0(未安装)

我应该在项目或工作室配置中更改项目以便成功运行? 或者我必须等待VS更新? 谢谢你的回复。

更新您的nuget包,即Project - > Update Nuget Packages。 Microsoft.NetCore.App包已过期。

  • 第1步:设置.net Core

    - > https://www.microsoft.com/net/core#macos

    - >如果你没有找到donet new命令,试试这个: ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

  • 第2步:更新包

更新包

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM