简体   繁体   中英

Different sets of target frameworks in Visual Studio 2019

I have two C# console applications. In one project, under Properties -> Application -> Target Framework, I can choose .NET Core 1.0 through .NET Core 3.1 and .NET 5.0. In a different project, I have none of those choices. Instead I have .NET Framework 2.0 through .NET Framework 4.7.2. (In addition, the csproj files of the two projects look very different.) If I wanted to change one project to a framework only listed for the other, is that possible?

This page showed that .NET Core is a cross-platform, open-source successor to .NET Framework. https://learn.microsoft.com/en-us/do.net/core/introduction.net-core-and.net-5

If you want to change .NET Core project to .NET Framework project, you can refer to this page. https://learn.microsoft.com/en-us/do.net/core/porting/ https://learn.microsoft.com/zh-cn/do.net/architecture/modernize-desktop/example-migration

By the way, VS2022 can modify the target framework directly in the properties.

在此处输入图像描述

You can also refer to this. How to change .NET version in Visual Studio 2019 to .NET Framework 4.7.2?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM