Microsoft released brand-new support for migrating old ASP.NET applications to the new order, ASP.NET Core.
The advice comes a couple of months after the launching of the open resource, cross-platform. WEB 6, where ASP.NET Core acts as the web-dev structure that laid hold of just plain old ASP.NET that featured the old, proprietary, Windows-only. NET Framework.
Particularly, the brand-new assistance deals with the “large investment” required for movement, supplying some code-sharing pointers that can make the endeavor much easier.
” Today we’ll share just how you can speed up the movement to ASP.NET Core,” said a March 2 blog post. “There are minor changes you can make today that can make it easier to move to ASP.NET Core tomorrow.”
Those changes are made in the context of a 10-year-old MVC Music Store app utilized to demo ASP.NET MVC3, where code is shared for Controllers, Designs and also Sights in the ShoppingCartController.cs file.
After expanding code sharing for the three MVC parts, Microsoft offered much more pointers, several of which can be found in Feb. 18 documents titled “Migrate from ASP.NET to ASP.NET Core.”
Update your NuGet bundles so you can use netstandard.
Adjustment your course collections to netstandard so you can share code in between ASP.NET and ASP.NET Core.
Discover referrals to System.Web in your course libraries build interfaces change them. Use reliance injection so you can conveniently switch in between ASP.NET and ASP.NET Core attributes.
” If you would certainly like much more detailed assistance to migrate the whole ShoppingCartController.cs you can comply with a complete walkthrough with samples at MvcMusicStoreMigration,” Microsoft stated. “The walkthrough will certainly also show exactly how you can run both ASP.NET as well as ASP.NET Core from the very same IIS Application Swimming pool to incrementally migrate your internet application one controller at a time.”