简体   繁体   English

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

[英]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.

相关问题 Visual Studio for Mac 2017 RC上的ASP.NET Web API 2 - ASP.NET Web API 2 on Visual Studio for Mac 2017 RC 在Visual Studio for Mac和Asp.net Core 2.0 Web API中生成后无法运行解决方案 - Unable to run solution after build in Visual Studio for Mac and Asp.net Core 2.0 Web API Visual Studio for Mac上的Docker构建错误-当前上下文中没有构建阶段 - Docker build error on Visual Studio for Mac - No build stage in current context 适用于Mac的Visual Studio的Dot NET Core托管环境 - Dot NET Core Hosting Environment for Visual Studio for Mac 在Mac上的Visual Studio 2017中启动过程 - Starting process in Visual Studio 2017 on Mac Visual Studio For Mac .net Core 2.0 Ajax将模型传递给控制器 - Visual Studio For Mac .net Core 2.0 Ajax passing model to controller Visual Studio for Mac控制台应用程序.net Core 2命令行参数 - Visual Studio for Mac Console Application .net Core 2 command line arguments Visual Studio 2017无法连接到MAC代理 - Visual Studio 2017 can not connected to MAC Agent Visual Studio Community 2017 for Mac发布选项 - Visual Studio Community 2017 for Mac Publish Option Visual Studio Code Mac OS X .NET构建和部署 - Visual Studio Code mac os x .net build and deploy
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM