简体   繁体   English

.net核心API错误

[英].net Core API ERRORS

I have recently update my nuget packages and now I am receiving these four errors. 我最近更新了我的nuget软件包,现在我收到了这四个错误。 I have no Idea where to begin or where to start debugging this issue. 我不知道从哪里开始或从哪里开始调试此问题。 Here are the errors... 这是错误...

在此处输入图片说明

I am confused as to where the 'runtime section' is located. 我对“运行时部分”的位置感到困惑。 I would be happy to share code it is posted on my git here . 我会很乐意分享它在我的Git代码贴在这里 Thank you for any of your time and help! 感谢您的宝贵时间和帮助!

your project.json file defines what frameworks you are saying that your app targets. 您的project.json文件定义您要说的是应用程序定位的框架。 If you're set on targetting net core (which you don't have to do in an asp.net core application), you can add the runtimes section: 如果你在网上靶向核心(这你不必在一个asp.net核心应用做)设置,您可以添加运行时间段:

"runtimes": {
    "win7-64": {}
}

like it says. 就像它说的那样。

Or you can choose to target a different framework. 或者,您可以选择针对其他框架。 For example, if you want to target simply .NET 4.6.2, you can change the frameworks section to: 例如,如果只想定位.NET 4.6.2,则可以将frameworks部分更改为:

"frameworks": {
    "net462": {}
},

The docs page can help clear up all the different frameworks you can target. docs页面可以帮助清除您可以定位的所有不同框架。

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

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