将Microsoft.NETCore.App更新到v1.1.0会导致-2147450749(0x80008083) [英] Updating Microsoft.NETCore.App to v1.1.0 causes -2147450749 (0x80008083)
问题描述
我按照以下说明在Visual Studio 2015中创建了一个新的.NET Core项目: https: //www.microsoft.com/net/core#windowsvs2015
I created a new .NET Core project in Visual Studio 2015 by following the instructions at: https://www.microsoft.com/net/core#windowsvs2015
工作正常,我可以添加断点等。
It works OK, and I can add breakpoints etc. no problem.
然后我运行了工具-> NuGet软件包管理器->管理NuGet软件包以获取解决方案...
Then I ran Tools->NuGet Package Manager->Manage NuGet Packages for Solution...
我可以选择将Microsoft.NETCore.App更新到最新的稳定版本v1.1.0。
I got the option to update Microsoft.NETCore.App to the latest stable release v1.1.0.
我遇到的第一个问题是错误:
The first issue I got was the error:
找不到与目标运行时之一兼容的框架'.NETCoreApp,Version = v1.0'的运行时目标:'win10-x64,win81-x64,win8-x64,win7-x64'。
这似乎是由于更新删除了project.json中的行,因此我重新添加了缺少的行并将版本更改为1.1。 0,所以我的project.json现在看起来像这样:
This appeared to be due to the update removing lines from the project.json, so I added the missing lines back in and changed the version to 1.1.0, so my project.json now looks like this:
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.1.0"
}
},
"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
}
该程序随后构建成功,但是当我运行该程序时出现错误:
The program then built without issue, but when I run the program I get the Error:
程序 [13048] dotnet.exe已退出,代码为-2147450749(0x80008083)。
有什么想法吗?
推荐答案
感谢Adrien提供了解决方案。
Thanks to Adrien for providing the solution.
管理器控制台我运行了命令:
In the package Manager Console I ran the command:
dotnet --info
响应为:
.NET命令行工具(1.0.0-preview2-003131)
因此我从以下位置安装了.NET Core 1.1 SDK:
So I installed the .NET Core 1.1 SDK from:
https://www.microsoft.com/net/download/core
现在我得到响应:
.NET命令行工具(1.0.0-preview2-1- 003177)
我认为版本信息非常混乱,因为我看不到它与1.1.0有什么关系,但是控制台应用程序运行正常。
I think the versioning information is quite confusing as I don't see how this relates to 1.1.0, but the console application runs OK.
再次感谢。
这篇关于将Microsoft.NETCore.App更新到v1.1.0会导致-2147450749(0x80008083)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!