dazinator / AspNetSolutionUpgradeTool

A utility that can be used to upgrade an ASP.NET 5 RC1 or RC2 based solution to ASP.NET Core 1.0.0 RTM.
MIT License
5 stars 2 forks source link

Add Microsoft.AspNetCore.Hosting package where appropriate #29

Closed dazinator closed 8 years ago

dazinator commented 8 years ago

This tool currently migrates and dependencies on the Microsoft.AspNet.IISPlatformHandler package, to the newer Microsoft.AspNetCore.Server.IISIntegration package (which is correct) - but as part of this change there are also implications for startup.cs. In RC2, you now have to create and configure your own host in the entry point Main(args) for your application, and some of the methods to do this configuration are found in a new package - Microsoft.AspNetCore.Hosting which you have to then add. This tool should automatically add this package for you to save you the hassle, whenever it detects a project that references Microsoft.AspNetCore.Server.IISIntegration