Project fails to load after changing the name of the project folde

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I needed to change the name of the project folders, e g.

|-MyProject
|
|-MyProject

to something else. Now it doesn't matter what I do - even if I rename the
folders to the original name the project fails to load. The error message is

"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.

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

How can I solve this problem without having to recreate my project?
I have checked the project node and it contains no additional information.
 
Note that I have also tried to change the .sln file. Here's the content


Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNewProj",
"MyNewProj\MyNewProj.csproj", "{553A8179-1AD4-41E3-B39A-BEEB4E2C4094}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{553A8179-1AD4-41E3-B39A-BEEB4E2C4094}.Debug|Any CPU.ActiveCfg = Debug|Any
CPU
{553A8179-1AD4-41E3-B39A-BEEB4E2C4094}.Debug|Any CPU.Build.0 = Debug|Any CPU
{553A8179-1AD4-41E3-B39A-BEEB4E2C4094}.Release|Any CPU.ActiveCfg =
Release|Any CPU
{553A8179-1AD4-41E3-B39A-BEEB4E2C4094}.Release|Any CPU.Build.0 =
Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

and the name of the .csproj file.
 
The project file or web has been moved, renamed or is not on your
computer.


I have had this in similar circumstances. I was able to fix it bye
removing the original project from the solution then adding it back
from its new location.
 
Joachim said:
I needed to change the name of the project folders, e g.

|-MyProject
|
|-MyProject

to something else. Now it doesn't matter what I do - even if I rename the
folders to the original name the project fails to load. The error message is

"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.

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

How can I solve this problem without having to recreate my project?
I have checked the project node and it contains no additional information.

Just open the solution. If you right click on the projects that are
marked as unavalable, you should have the option to locate them manually.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top