Monthly Archives: November 2017
In 2016, Microsoft redesigned the core architecture of ASP.NET to meet the emerging trends in web application development. It released ASP.NET Core as an open source and cross-platform framework for developing web application, web services, and cloud-based applications. Hence, you can use ASP.NET Core as an open source framework to curtail web development cost significantly. Also, you can run the ASP.NET Core applications in three distinct platforms – Windows, Linux and MacOS. You even have option to deploy the applications in a number of ways.
Microsoft further allows you to migrate your existing applications to ASP.NET Core. While migrating to the redesigned version of ASP.NET, you have to follow the multiple step process recommended by Microsoft. Also, you can use Visual Studio 2017 to upgrade your existing applications to ASP.NET Core. But you must remember that ASP.NET Core is comes with a myriad of new features and enhancements. Hence, it becomes essential to prepare a checklist of points to upgrade the existing applications to ASP.NET Core smoothly.
Checklist of Key Points for Upgrading Existing Applications to ASP.NET Core
Unified Programming Model
ASP.NET Development allows you to create both web applications and web APIs using a single framework – ASP.NET Core MVC. In addition to supporting model-view-controller (MVC) programming paradigm, ASP.NET Core MVC also comes with several robust features like routing, filters, dependency injection, web APIs, tag helpers, Razor view engine, and model binding and validation. You must understand the important features of ASP.NET Core MVC, and follow specific steps to upgrade your existing ASP.NET MVC applications properly.
In addition to supporting three major platforms, ASP.NET Core allows you to host and deploy the applications in a number of ways. You still have option to publish the applications to IIS. But ASP.NET Core enables you to publish the applications as self-contained apps containing all resources required to run seamlessly on multiple platform runtimes. At the same time, you can even deploy the application in the cloud, and choose from popular cloud platforms like Microsoft Azure and Amazon Web Services (AWS). Hence, you must decide the right deployment option to run the application smoothly and make it deliver richer user experience.
Unlike ASP.NET, ASP.NET Core supports three major operating systems. But ASP.NET is a mature and popular web framework. While developing cross-platform web applications, you have to target .NET Core instead of .NET Framework. You still have option to create Windows-based web applications by targeting .NET Framework. Hence, you have option to choose from two targeted frameworks – .NET Framework and .NET Core – while using ASP.NET Core. But .NET Core does not support some of the legacy APIs provided by .NET Framework. Hence, you must check the compatibility of the APIs used by your existing application with .NET Core and ASP.NET Core.
As mentioned earlier, ASP.NET Core allows you to choose from multiple deployment options. It even allows you to choose from several web servers. You can deploy the Windows-based applications on a cross-platform and lightweight web server like Kestrel. Likewise, you can also deploy the applications on WebListener which supports both .NET Framework and .NET Core. However, each web server has its own pros and cons. For instance, Kestrel does not support multi-port binding, whereas WebListener does not require you to use a reverse proxy server. That is why; you must choose the right web server before migrating the existing applications to ASP.NET Core.
Integrated Development Environment (IDE)
While migrating to ASP.NET Core, you can take advantage of a robust IDE like Visual Studio 2017. The latest version of Visual Studio is cross-platform. But it was originally developed for Windows platform. Hence, you have to look for alternatives while using platforms like MacOS or Linux. You can always accelerate cross-platform ASP.NET Core application development by opting for Visual Studio Code. You have option to download specific edition of Visual Studio Code according to your targeted platform. Also, the IDE is designed with features to deliver optimal coding and debugging experience across Windows, Linux, and MacOS.
Multi Step Migration Process
Microsoft requires you to follow multi step migration process to port the existing applications to ASP.NET Core. You must understand the migration process clearly to understand the changes included in the revamped version of ASP.NET. Also, you need to understand the right way to migrate identity and authentication. At the same time, you also need to follow the process exactly to migrate various HTTP modules to HTTP middleware. You must spend some time to learn the migration process to upgrade your existing applications to ASP.NET Core in a faster and more efficient way.
Tools to Analyze Application Portability
As mentioned earlier ASP.NET Core is completely different from ASP.NET. It does not support several language features and APIs provided by ASP.NET. Hence, you must assess the portability of the existing application using .NET Portability Analyzer. You have option to choose from three distinct editions of .NET Portability Analyzer – Console Application, Visual Studio Extension and .NET Core Application. As a command-line interface (CLI) based tool, the Console Application enables you to assess application portability on Windows using command shells.
At the same time, Visual Studio Extension enables you to evaluate application portability using the robust IDE. But .NET Core Application, unlike other editions, supports three major platforms. It further targets .NET Core instead of .NET Framework. .NET Core Application determines the portability of the application to a specific platform by analyzing the assemblies stored in various folders. It further determines application portability by sending the required information to a web service – .NET Portability Service. You must determine the portability of your existing application to a particular platform before starting the migration process.
However, you must remember that Microsoft has been updating ASP.NET Core to meet the emerging trends in web development. The company recently released beta preview versions of ASP.NET Core 2.0. ASP.NET Core 2.0 will come with new project templates, server constraint configuration options, and option to set the maximum number of HTTP/HTTPS requests for the application. Hence, you must keep in mind the features provided by both current and upcoming versions of ASP.NET Core while migrating the existing applications.