954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with renaming files

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.

arelius
Light Poster
28 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

This is part of my Project.sln file:

Microsoft Visual Studio Solution File, Format Version 10<strong>.</strong>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

sknake
Industrious Poster
4,954 posts since Feb 2009
Reputation Points: 1,764
Solved Threads: 735
 

Thanks again, it worked out great!

arelius
Light Poster
28 posts since Jul 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You