NuGet更新后核心Web App无法启动 [英] Core Web App fails to launch after NuGet Update

查看:96
本文介绍了NuGet更新后核心Web App无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新的Core Web应用,但未更改提供的模板.毫无问题地跑了.

I created a new Core Web app and made no changes to the template provided. Ran without any problem.

已更新的NuGet程序包,该程序需要许多更新会话.最终没有任何更新显示.建好了.尝试运行,失败并显示"net :: ERR_CONNECTION_REFUSED".将断点放在program.cs和start.cs中 他们永远不会受到打击.

Updated NuGet packages, which required many update sessions.  Finally got to no updates showing.  Built OK.  Try to run, fails with "net::ERR_CONNECTION_REFUSED".  Put breakpoints in program.cs and start.cs and they are never hit.

我的真实应用中也死水了.我认为我需要更新才能解决涉及NPM程序包加载的其他问题.

Dead in the water in my real app as well.  I think I need the updates to resolve other issue involving NPM package loading.

        public static void Main(string[] args)
        {
            var config = new ConfigurationBuilder()
                .AddCommandLine(args)
                .AddEnvironmentVariables(prefix: "ASPNETCORE_")
                .Build();



Craig





Craig

推荐答案

嗨CraigAP,

Hi CraigAP,

>>>>>尝试运行,失败并显示"net :: ERR_CONNECTION_REFUSED".将断点放在program.cs和start.cs中,它们永远不会被命中.

将软件包"Microsoft.NETCore.App"从1.0.1更新到最新版本1.1.0之后,我也遇到了同样的问题.这个问题已经解决. CLI带有.net core 1.0和1.1,但没有使版本与ASP.NET软件包中的方案保持一致. 可通过NuGet获得.有关更多详细信息,请参见GitHub上的同一问题.

I got the same issue as well after I update the package "Microsoft.NETCore.App" from 1.0.1 to latest version 1.1.0. This issue is already resolved. CLI carries .net core 1.0 and 1.1, but not keep versions aligned for scenarios on the ASP.NET packages, which available via NuGet. See The same issue on GitHub for more detail information.

https://github.com/dotnet/cli/pull/2946

要解决此问题,您可以创建一个新的Core Web应用程序,更新除软件包"Microsoft.NETCore.App"以外的所有NuGet软件包,或从此网站下载并安装.net core 1.1.

To resolve this issue, you can create a new Core Web app, update all the NuGet packages except the package "Microsoft.NETCore.App" or download and install the .net core 1.1 from this website.

https://www.microsoft.com/net/core#windowsvs2015

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于NuGet更新后核心Web App无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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