Old VB.net project form won't load. WTF is "NuGet"?

Mugsy's RapSheet 196 Reputation points
2025-04-28T21:31:20.5933333+00:00

I tried to load an "old" VB.Net project I wrote in 2023.

The form/designer won't load. I can see the code, but not the form. When I try to load it, I get the message:

"Loading Designer." but nothing ever loads. At the bottom of the screen it says:

"Restoring NuGet packages..."

...for about a minute before it finally times out with the following error:

"Timed out while connecting to named pipe."

A search online on how to fix this returned nothing helpful. I don't know what "NuGet" is, and if it's going to cause problems like this, I'd prefer to just get rid of it, but I'll reinstall whatever it is if necessary to get my project back.

Any ideas? TIA

PS: Even the old ".exe" of the project in the "debug" folder won't load.

(I get the following error upon opening my project. I did as it says and it made no difference.)
vs-error

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,074 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 58,701 Reputation points
    2025-04-29T13:51:41.99+00:00

    If you have an older NET 6 project then you'd need to install the NET 6 SDK to get it to load. That is what the error dialog is offering to do for you. But upgrading to NET 8 would be the easier route. To do that all you need to do is open your .vbproj file in a text editor (or simply click on the project in Solution Explorer if it will load far enough) and then find the <TargetFramework> element. Change net6.0 to net8.0 and it is "upgraded".

    But your project is relying on third party packages, like all of NET since NET Core came out, and so some of your dependencies (visible in the Dependencies node of Solution Explorer) will likely need to be updated as well. You can do that by right clicking the solution and selecting Manage NuGet Packages for Solution. Once the package manager loads there is an Update tab that will show you the packages that need to be updated. Switch to that tab, select all the packages and click Update. In general this just works but some packages may fail in more complex projects.

    After that rebuild your solution. If there are any errors and your form relies on either custom controls inside the project or third party controls provided from external packages then it may fail to load but it should tell you why.

    If that still doesn't work then post your .vbproj and we can update it for you. Still won't guarantee that your form will load in the designer since the form itself may have something wrong with it but it'll at least get you past the framework issue.

    0 comments No comments

Your answer

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