question

DavidDaigle-7820 avatar image
0 Votes"
DavidDaigle-7820 asked TimonYang-MSFT answered

Convert parts of .NET Framework solution to .NET 5?

Hello, I have a .NET Framework 4.7.2 solution with many projects. Most are fairly simple, and would be easy to port to NET 5. Some projects in the solution are WPF.

I'd like to convert as much as I can to .NET 5 and compile as many projects/libraries as I can to native.

Is this possible?

Thanks!

dotnet-csharp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Compile to native? What are you talking about? Some Core and some remain as .NET Framework and .NET Core 5 projects set reference to .NET Framework projects?

I took I migrated an ASP.NET Core 3.x version solution including all of the classlib projects all of it that was Core 3.x to .NET 5. I did that becuase I learned the hard way that a Core 3 project was incompatible with a Core 2 project. So I was not going down that path again and just took everything to .NET 5 and never looked back.

Just FYI...

0 Votes 0 ·

1 Answer

TimonYang-MSFT avatar image
0 Votes"
TimonYang-MSFT answered

Please check this document to learn how to convert a WPF project of .Net Framework to .Net 5.

Upgrade a WPF App to .NET 5 with the .NET Upgrade Assistant

It should be noted that if the project contains some third-party nuget packages that do not support .Net 5, the project may fail to upgrade.

In addition, other problems may be encountered during the upgrade process.

If you encounter other issues, please check the GitHub repository of the tool first to see if it is a known issue. If it is a new issue, you can also raise it there.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.