Paul Krill
Editor at Large

Now you can port code from .Net Framework to .Net Core

news
Nov 20, 20172 mins

The beta of Windows Compatibility Pack adds 20,000 APIs to .Net Core for Windows, Linux, and MacOS web app developers, making it more like the Windows-only .Net Framework

Computerworld - Scary Tech [Slide-12] - Language translation systems run by big brother
Credit: Thinkstock

Microsoft is looking to help developers move code from the Windows-oriented .Net Framework to cross-platform .Net Core via extended API access. But whether developers should actually make the move depends on their affinity for Windows.

Microsoft has made available a beta of Windows Compatibility Pack, adding access to APIs previously available just to .Net Framework. As a result, .Net Core developers gain access to an additional 20,000 APIs. You can get Windows Compatibility Kit via a NuGet package.

.Net Framework emphasizes Windows desktop development; the open source .Net Core is optimized for building web applications for Windows, Linux, and MacOS.

There are reasons to port to .Net Core as well as reasons not to do so. On the plus side, .Net Core enables web applications that can scale and can run on Linux; the addition of the .Net Framework APIs makes .Net Core more useful. On the minus side, developers who want to use Microsoft desktop technologies such as WinForms, Windows Presentation Foundation, or ASP.Net should stick with .Net Framework.

Migration should be done as a series of steps rather than all at once. For example, to migrate from an ASP.Net MVC application deployed on a Windows Server to an ASP.Net Core application on Linux on the Azure cloud, Microsoft advises migrating to ASP.Net Core while still targeting .Net Framework. Then, you would move to .Net Core while still on Windows. Finally, you would move to Linux and Azure. (ASP.Net Core extends .Net Core for web development.)

Note that the actual order of steps may vary. Microsoft offers guidance on migrations that includes identifying third-party dependencies and use of the company’s API Portability Analyzer tool.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author