简体   繁体   English

面向.NET Core框架

[英]Targeting .NET Core framework

We have simple application using .NET Core. 我们有使用.NET Core的简单应用程序。 While running I am getting this error: 运行时出现此错误:

The specified framework 'Microsoft.NETCore.App', version '1.0.4' was not found. 找不到指定的框架'Microsoft.NETCore.App'版本'1.0.4'。
- Check application dependencies and target a framework version installed at: -检查应用程序依赖性并确定安装在以下位置的框架版本:
C:\\Program Files\\dotnet\\ C:\\ Program Files \\ dotnet \\
- Installing .NET Core prerequisites might help resolve this problem: http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409 -安装.NET Core先决条件可能有助于解决此问题: http : //go.microsoft.com/fwlink/?LinkID=798306&clcid=0x804

I have read all related posts but cannot fix the issue. 我已阅读所有相关文章,但无法解决此问题。

The browser says: 浏览器说:

HTTP Error 502.5 - Process Failure HTTP错误502.5-进程失败

I have .NET Core 2.0.2 SDK installed on the server. 我在服务器上安装了.NET Core 2.0.2 SDK。

My csproj is set to netcoreapp1.0 我的csproj设置为netcoreapp1.0

Apart from downloading/installing version 1.1.2 of .NET Core, is there any other way to fix this problem? 除了下载/安装.NET Core 1.1.2版本以外,还有其他方法可以解决此问题吗?

I presume you are on Windows Server trying to host aspnetcore apps. 我想您是在Windows Server上尝试托管aspnetcore应用程序。 Have you installed? 你安装好了吗? ASP.NET Core/.NET Core: Runtime & Hosting Bundle ASP.NET Core / .NET Core:运行时和托管包

Go into your .csproj file and update version to 1.0.4 (or the version you're currently using). 进入您的.csproj文件,并将版本更新为1.0.4(或您当前使用的版本)。 Make sure it's uniform elsewhere and attempt to reproduce. 确保它在其他地方统一并尝试复制。

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

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