Share via

The windows forms designer does not support my project as it targets .NET 5.0 which is out of support. how do I upgrade to a supported .NET version

jerryo 0 Reputation points
2026-04-29T19:43:44.8633333+00:00

forms designer does not support my project as it targets .NET 5.0 which is out of support. how do I upgrade to a supported .NET version

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-29T19:44:01.65+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Change the project to target a supported .NET version and then reload the Windows Forms designer.

    1. Open the project file (.csproj or .vbproj) in an editor (in Visual Studio, right-click the project → Edit Project File).
    2. Locate the <TargetFramework> (or <TargetFrameworks>) element that is currently set to net5.0 (or net5.0-windows).
    3. Replace it with a supported target framework, for example:
         <TargetFramework>net8.0-windows</TargetFramework>
      
      or another currently supported version according to the .NET support policy.
    4. Save the file and reload the project in Visual Studio.
    5. Rebuild the solution so that all references and designer-generated code are updated.
    6. Reopen the Windows Forms designer.

    If the project is Windows Forms or WPF and still uses the older WindowsDesktop SDK, update it to use the unified .NET SDK and a Windows-specific TFM. For example, change:

    <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
      <PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>netcoreapp3.1</TargetFramework>
        <UseWindowsForms>true</UseWindowsForms>
      </PropertyGroup>
    </Project>
    

    into something like:

    <Project Sdk="Microsoft.NET.Sdk">
      <PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>net8.0-windows</TargetFramework>
        <UseWindowsForms>true</UseWindowsForms>
      </PropertyGroup>
    </Project>
    

    .NET 5 is out of support, so targeting a later supported version (for example, .NET 8) both restores designer support and ensures continued security updates. If remaining on an out-of-support framework for a time is unavoidable, the SDK can suppress the end-of-support warning by setting CheckEolTargetFramework to false, but this does not restore support or security updates and is not recommended for long-term use.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.