将 Microsoft.NETCore.App 更新到 v1.1.0 导致 -2147450749 (0x80008083) [英] Updating Microsoft.NETCore.App to v1.1.0 causes -2147450749 (0x80008083)

查看:32
本文介绍了将 Microsoft.NETCore.App 更新到 v1.1.0 导致 -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.

然后我运行 Tools->NuGet Package Manager->Manage NuGet Packages for Solution...

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆