DIBYA RANJAN ROUT
DIBYA RANJAN ROUT

Reputation: 1

Facing Issue while renaming a .NET application

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.

This is the image of project directory at the time of facing issue

Upvotes: 0

Views: 45

Answers (2)

DIBYA RANJAN ROUT
DIBYA RANJAN ROUT

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

Johannes Krackowizer
Johannes Krackowizer

Reputation: 660

If you rename the Folders and/or the *.csproj files. you need to do the following things:

  • open your *.sln file with an Text Editor and fix the paths and file names.
  • Open all your *.csproj files and fix the the paths of all proejct references
  • If you renamed namespace without using refactoring features, you probably will need to fix all the using-Statements in your *.cs files

Upvotes: 2

Related Questions