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

Update RC1 dependencies to RC2 dependencies #4

Closed dazinator closed 8 years ago

dazinator commented 8 years ago

Under the dependencies section:

The following packages should be explicitly migrated to new names, and the packages of package type == build need to be changed to the expanded format that lists the version number and the type:

RC1 Package Name RC2 Package Name Package Type
EntityFramework.MicrosoftSqlServer Microsoft.EntityFrameworkCore.SqlServer -
EntityFramework.SqlServer Microsoft.EntityFrameworkCore.SqlServer -
Microsoft.AspNet.Identity.EntityFramework Microsoft.AspNetCore.Identity.EntityFrameworkCore -
Microsoft.AspNet.IISPlatformHandler Microsoft.AspNetCore.Server.IISIntegration -
Microsoft.AspNet.Diagnostics.Entity Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -
Microsoft.AspNet.Tooling.Razor Microsoft.AspNetCore.Razor.Tools Build
EntityFramework.Commands Microsoft.EntityFrameworkCore.Tools Build
Microsoft.Extensions.CodeGenerators.Mvc Microsoft.VisualStudio.Web.CodeGenerators.Mvc Build
Microsoft.ApplicationInsights.AspNet Microsoft.ApplicationInsights.AspNetCore -
Microsoft.Extensions.Configuration.FileProviderExtensions Microsoft.Extensions.Configuration.FileExtensions -

The following packages can be removed:

RC1 Package Name
Microsoft.Dnx.Runtime

Should then apply the following heuristic to update all microsoft RC1 packages to RC2 version numbers:

RC1 Package Name / Pattern New RC2 Version Number
Microsoft.* 1.0.0-rc2-final
Microsoft.VisualStudio.Web.BrowserLink.Loader 14.0.0-rc2-final

I think this is a decent heuristic to migrate most of the packages from RC1 to RC2, however there may be exceptions so this won't cover all packages,and this logic may need to be extended in the future.