Hello all,

This shouldn't be too hard to answer.

I have a bunch of folders, for example WarehouseApp, WarehouseLib, etc, were in each of these folders contains a project.

Whenever I try to rename one of these folders that contains a project, I get the following error and the project will not load properly into Visual Studio.

Error:

One or more projects in the solution could not be loaded for the following reason(s):
The project file or web has been moved, renamed or is not on your computer.
The projects will be labeled as unavailable in Solution Explorer.

Do you guys know how fix this issue so that I can rename my folders?

Thanks in advance.

Recommended Answers

All 2 Replies

This is part of my Project.sln file:

Microsoft Visual Studio Solution File, Format Version 10[B].[/B]00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp", "MyApp\MyApp.csproj", "{58F9C679-A58F-4942-AE06-C4B03E398256}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp.Core", "MyApp.Core\MyApp.Core.csproj", "{DD7B354E-20F2-405C-95BE-67E6E94EBB53}"
EndProject

You need to update the fields marked in red above. In this case the projects were housed in:
F:\DotNet\SomeProject\MyApp.sln
F:\DotNet\SomeProject\MyApp\MyApp.csproj
F:\DotNet\SomeProject\MyApp.Core\MyApp.Core.csproj

See how the second part is the relative file path from the .sln? That needs to be changed

Thanks again, it worked out great!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.