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

Ted*_*nus 9 macos visual-studio .net-core

当我尝试在最新版本的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.
Run Code Online (Sandbox Code Playgroud)

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

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

Rob*_*eer 5

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


fat*_*han 3

  • 第 1 步:设置.net Core

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

    --> 如果您找不到donet new命令,请尝试以下操作:ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

  • 第 2 步:更新软件包

更新包