Reputation: 1
I have a .NET application and I want to rename it
I have multiple class libraries inside it. I have renamed the class libraries inside it and the references inside it. It was running as expected
But the folders name were unchanged
Before the application name was "HeyReady" And I want to change "SkillConnect".
While renaming the folder I am facing the following Issue:
Unable to find project information for 'D:\PROJECTS\SKILL CONNECT\SKILL-CONNECT-BACKEND\SkillConnect.Services\SkillConnect.Services.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore.
Unable to find project information for 'D:\PROJECTS\SKILL CONNECT\SKILL-CONNECT-BACKEND\SkillConnect.ApplicationContext\SkillConnect.ApplicationContext.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore.
Unable to find project information for 'D:\PROJECTS\SKILL CONNECT\SKILL-CONNECT-BACKEND\SkillConnect.MiddleWare\SkillConnect.MiddleWare.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore.
Thank you
I have changed the reference in the project which includes the program.cs file
<ItemGroup>
<ProjectReference Include="..\SkillConnect.ApplicationContext\SkillConnect.ApplicationContext.csproj" />
<ProjectReference Include="..\SkillConnect.MiddleWare\SkillConnect.MiddleWare.csproj" />
<ProjectReference Include="..\SkillConnect.Services\SkillConnect.Services.csproj" />
</ItemGroup>
But It is not working.
Upvotes: 0
Views: 45
Reputation: 1
I have renamed the project references still it was giving error
After some R & D: I unloaded the projects and removed the associated class-library. Then, I readded the projects along with their references. This resolved the issue.
Upvotes: 0
Reputation: 660
If you rename the Folders and/or the *.csproj files. you need to do the following things:
Upvotes: 2