Search code examples
c#winformsvisual-studio-2019.net-framework-version

How to update solution to .NET Framework 4.8?


I am using VS2019 and C# (win form) in a solution containing 390 projects using .NET Framework 4. Is there a way to upgrade all projects to .NET Framework 4.8 together or do I have to manually change all single project?

I started trying to manually change every single project but it's very long thanks a lot


Solution

  • In Visual Studio 2019, there is no direct built-in feature to upgrade multiple projects to a new .NET Framework version in a single action. You will need to manually upgrade each project individually. However, you may try to create a PowerShell or command-line script to automate the task.

    If possible, take your time with each project and build the solution frequently so that when there is an issue, it will be easy to isolate based on your previous changes.