Migrating Microsoft.Net Framework assemblies to .Net Core framework

Implementing existing .Net Framework libraries as shared .Net Standard libraries inevitably requires a migration, similar to porting to .Net Core.

Microsoft’s API Port tool can tell you how much work this will involve. It is a command line tool that gives you a detailed breakdown of the types and members that will cause compatibility issues.

In some cases, they will require a particular version of the .Net Standard, while others will not be supported at all.

Microsoft think that more than 60% of the most commonly used .Net Framework packages on NuGet will be compatible with .Net Standard via the shim. This should make it easier to make a commitment to .Net Core as many legacy .Net Framework libraries will be accessible to via .Net Standard.

Windows Forms and WPF in particular will forever remain in the .Net Framework as Windows Universal applications have become the new UI creed. Anything that relies on platform-specific features will also be excluded.

Multi-targeting can help to widen the reach of shared libraries. This allows you to compile a single project natively for both .Net Standard and your preferred version of the .Net Framework, though it does come at a cost of having to manage multiple sets of compiled output.

To view or add a comment, sign in

More articles by Amit Kumar

  • Angular HttpInterceptor

    There are much easier ways to update all your Http request headers using HttpInterceptor class in TypeScript. Here is a…

  • Kubernetes vs Octopus Deployment tools:

    What are the differences? Kubernetes: Manage a cluster of Linux containers as a single system to accelerate Dev and…

  • Introduction to YAML and Creating a Kubernetes deployment

    Using YAML for K8s definitions gives you a number of advantages, including: Convenience: You’ll no longer have to add…

  • Fix AxoCover for not generating code coverage issue

    Find the assembly responsible to generate code coverage reports after test execution Open the folder below:…

  • Change Date formatting on JSON response from WebAPI

    Define a formatter object from JsonMediaTypeFormatter class as below: var formatter = new System.Net.

  • Versioning Issues and impacts

    WCF Contracts and Backward Compatibility WCF contracts are version tolerant by default. Figure 1 and Figure 2 summarize…

  • Basic Essentials for Microservices Architecture

    Autonomously grow, install and publish services If possible, services should have their own isolated data Keep Services…

  • Typescript debugging inside Chrome browser

    Trying to get hands on with Typescript, here is my first simple class Employee using Typescript class Employee {…

    3 Comments
  • ES6 – The Next Version of JavaScript

    Key Features in ES6 So what are some of the key features in ES6? Here’s a list of some of my favorites: Arrow functions…

  • AutoMapper for creating new objects

    The approach to create a new object from existing one is good with Automapper. It will not just create a new object for…

Explore content categories