我要使用哪个dotnet核心下载进行升级(Windows 2016托管)

时间:2018-07-01 09:46:27

标签: asp.net-core upgrade windows-server-2016

在Windows 2016服务器上,我运行一个asp.net core 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进行的哪个下载才能将window 2016服务器升级到2.1?

“ Hosting Bundle安装程序运行时链接”下载名为“ dotnet-hosting-2.1.1-win”的文件。先前的下载文件名为“ DotNetCore.2.0.3-WindowsHosting”。 enter image description here

1 个答案:

答案 0 :(得分: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文件夹不存在的错误。