ХабрПостыНовостиМегапосты?

Porting desktop apps to .NET Core

Since I’ve been working with the community on porting desktop applications from .NET Framework to .NET Core, I’ve noticed that there are two camps of folks: some want a very simple and short list of instructions to get their apps ported to .NET Core while others prefer a more principled approach with more background information. Instead of writing up a “Swiss Army knife”-document, we are going to publish two blog posts, one for each camp:



If you prefer watching videos instead of reading, here is the video where I do everything that is described below.



Step 0 – Prerequisites


To port your desktop apps to Core, you’ll need .NET Core 3 and Visual Studio 2019.


Step 1 – Run portability analyzer


Before porting, you should check how compatible your application is with .NET Core. To do so, download and run .NET Portability Analyzer.




Step 2 – Migrate to SDK-style .csproj


In Solution Explorer right-click on your project (not on the solution!). Do you see Edit Project File? If you do, you already use the SDK-style project file, so you should move to Step 3. If not, do the following.


@msgeek
10.06.2019 12:00 UTC
Первоисточник