Search code examples
c#visual-studiosolutionsln-file

How to update .sln (solution) file within Visual Studio 2019


I am clean build-ing and rebuild-ing the project I am working with and I keep getting errors that is is unable to find the path/folder/filename because I ended up updating the name within file explorer.

I want to open the projectname.sln file and update the file path manually.

My current workaround is to right click .sln file and open with VS Code. Do my edits and then save. After saving it causes a trigger to reload in Visual Studio


Solution

  • You have to unload project by right-clicking on the project.

    Once unloaded you can right-click and edit project.csproj.

    Update the paths that are causing the problem.

    Save and reload.