One or more projects cannot be loaded, but VS, but do not say which

I have a pretty big solution with several subprojects (mostly C # with 1 or 2 C ++ projects), each of which is in its own folder. I renamed the folders and project names, and then started editing the solution file using the same process as described here: The correct way to rename the solution (and directories) in Visual Studio

After that, I wanted to check if everything was correct, so I opened the solution file. VS2008 complains:

One or more projects in the solution cannot be loaded for the following reasons (reasons):

The project file or network has been moved, renamed or computer.

These projects will be marked as unavailable in Solution Explorer. Expand the node project to show the reason the project could not be loaded.

So, I tried to do as the bold text says. However, there are no inaccessible projects in Solution Explorer. All subprojects are there, and I do not see any warnings or errors or missing links or anything else. The solution also compiles fine, and I can run the application just fine.

The problem is that when opening the solution, an error appears, and I try to stop it, because ultimately it will go into the original control.

Has anyone come across this before? Is there something I could miss?

+6
source share
3 answers

I seem to have found an unloaded project, noticing that it is missing, manually counting and comparing it with the number of projects that the solution researcher reported. It was deep inside another folder in the solution explorer that I never used, and suggested that it was worthless.

Thanks for the tips.

-1
source

There is one simple job, open the solution file in notepad and check the address of the subprojects (exp "dtproj") if you just changed the name of the folder or solution file, and then see if it is correctly displayed in the solution file. There are several solutions to this problem that are simpler and less problematic, but still I find it straightforward and easy to manage.

+6
source

Look in the output window:

View-> Exit

There should be more information about projects that did not load.

0
source

Source: https://habr.com/ru/post/952184/


All Articles