[英]Visual Studio Preview for Mac 2017 .NET Core build error
When I try to run the .NET Core Project on last version of Visual Studio Preview for Mac, I get next 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.
I opened Project Settings, and in the 'Target Framework' Dropdown there is no .NETCoreApp 1.1, only 1.0 (which is not installed) 我打开了项目设置,在'目标框架'下拉列表中没有.NETCoreApp 1.1,只有1.0(未安装)
What should I change in project or Studio configs for project to run successfully? 我应该在项目或工作室配置中更改项目以便成功运行? Or I just must wait for VS update?
或者我必须等待VS更新? Thanks for response.
谢谢你的回复。
Update your nuget packages ie Project -> Update Nuget Packages. 更新您的nuget包,即Project - > Update Nuget Packages。 The Microsoft.NetCore.App package is out of date.
Microsoft.NetCore.App包已过期。
Step 1: setup .net Core
第1步:设置
.net Core
--> https://www.microsoft.com/net/core#macos - > https://www.microsoft.com/net/core#macos
--> if you get donet new
command not found, try this: ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
- >如果你没有找到
donet new
命令,试试这个: ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
Step 2: update packages 第2步:更新包
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.