[solved] Can't create new VB form-based projects in VS2022/26.

Mugsy's RapSheet 241 Reputation points
2026-08-15T14:23:52.4833333+00:00

I "suddenly" can't create (or even open most) VB Forms projects. I tried both VS2022 & 2026. Both tell me I need to update .Net, but doing so didn't help.

I even tried uninstalling/reinstalling the ".Net Desktop Environment" from the VS2026 Installer. No change.

About half of my existing projects open just fine. But I can't create any NEW VB Forms projects and have no idea why.

Even VS2022 can't create a new VB Forms project (both '22 & '26 CAN create Forms in C#.)

Any idea what's going on & how to fix this?

DonNet error Install DotNet6,0,36

TIA.

Developer technologies | Visual Studio | Setup
0 comments No comments

Answer accepted by question author
AgaveJoe 31,706 Reputation points
2026-08-15T22:17:38.0833333+00:00

Visual Studio's out-of-process Windows Forms designer relies on the 64-bit .NET Desktop Runtime to render the design surface.

Check installed runtimes

Open a Command Prompt and run:

dotnet --list-runtimes

Look for this entry:

Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

If this specific Microsoft.WindowsDesktop.App line is missing, or if it points to Program Files (x86) instead of Program Files, the 64-bit designer host cannot run.

Install the missing Desktop Runtime

Note: If you install it and the error persists, run

where dotnet

in Command Prompt to make sure C:\Program Files\dotnet\dotnet.exe appears above the Program Files (x86) path in your system PATH variable.

Was this answer helpful?

5 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Leon Tran (WICLOUD CORPORATION) 2,150 Reputation points Microsoft External Staff Moderator
    2026-08-17T01:27:06.9033333+00:00

    Hi @Mugsy's RapSheet ,

    Thank you for sharing your solution.

    Cleaning up the outdated .NET registry entries was an effective troubleshooting step in this case. A standard reinstallation may not always remove incorrect or leftover registry entries, which can continue to affect runtime detection.

    However, manually modifying or deleting registry entries can cause serious system issues if the wrong entry is changed. We recommend backing up the registry before making any modifications. I’m glad that you completed the steps carefully and resolved the issue successfully.

    Visual Studio allows some shared components, tools, and SDKs to be installed on another drive. However, if the custom installation location causes runtime detection or loading issues, reinstalling the affected components in the default location on the C: drive may help.

    Once again, thank you for contributing your solution. If possible, please use the available options on the page to mark or rate the helpful response. This will make the solution easier to find for others experiencing a similar issue.

    If you have any further questions, feel free to leave a comment.

    Was this answer helpful?


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.