首页 文章

我升级哪个dotnet核心下载(windows 2016主机)

提问于
浏览
0

在Windows 2016服务器上,我运行一个asp.net核心2.03 IIS托管站点 . 服务器安装了dotnet core 2.03:

(dir(Get-Command dotnet).Path.Replace('dotnet.exe','shared\Microsoft.NETCore.App')) . 名称
enter image description here

在开发机器上,我已升级到dotnet core 2.1 .

https://www.microsoft.com/net/download/windows下载哪个必须用于将2016服务器窗口升级到2.1?

"Hosting Bundle Installer Runtime link"下载名为"dotnet-hosting-2.1.1-win"的文件 . 以前的下载名为"DotNetCore.2.0.3-WindowsHosting" .
enter image description here

1 回答

  • 2

    在您的服务器上,您将需要安装.NET Core Runtime Hosting Bundle . 可执行文件的名称在过去已经更改,所以是的,它过去是 DotNetCore.2.0.x-WindowsHosting.exe 但现在是 dotnet-hosting-2.1.x-win.exe

    托管包的正确链接位于this download page of the 2.1.1 runtime.NET Core 2.1.1 Hosting Bundle Installer .

    如果要运行在.NET Core 2.1上运行的ASP.NET Core应用程序,则必须在服务器上安装运行时 . 除非您在IIS中托管应用程序,否则您不一定需要托管包 . 否则,您也可以只下载运行时安装程序 .

    您不需要在服务器上安装SDK,因此您可以获得SDK文件夹不存在的错误 .

相关问题