ASPNETCoreModule not installed with .NET Core SDK

落花浮王杯 提交于 2019-12-21 07:15:21

问题


I installed VSenter code here2017 along with .NET Core SDK on Windows 10. But it did not install ASPNETCoreModule as shown in figure 2 below. I thought .NET Core SDK should have installed it implicitly - and one does not have to install it separately. NOTE: I'm trying to publish my asp.net core app to IIS and the publish process requires ASPNETCoreModule as explained in the above link and also in this official MSDN article.

ASPNETCoreModule is missing:


回答1:


ASP.NET Core Module is installed separately from the SDK. You can download the current version 2.0.0 here. https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md#windows-server-hosting

See https://github.com/dotnet/core/blob/master/release-notes/download-archive.md for a list of other releases.




回答2:


ASP.NET Core Module is installed separately from the SDK

It's not true since release of 2.1 . I'm experiencing the same issue on Windows Server 2016. Module was installed on developer PC after uninstalling old versions / installing 2.1 few time, but still struggling with the same issue on 2016. %SystemRoot%\system32\inetsrv\aspnetcore.dll is still missing.




回答3:


In order to run .net core apps on IIS you need to have installed the ASP.NET Core Module ( the way it works is explained here ) that comes:
1 - with the SDK 2.1,
2 - With the Hosting Bundle Installer that bundles the .Net Core and the ASP.NET Core Runtime into a single bundler.

you can have both from the download page

If you are a developer computer you already have the Module with the SDK, I think is better to have on Sever computer only the hosting bundle



来源:https://stackoverflow.com/questions/45722081/aspnetcoremodule-not-installed-with-net-core-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!