views:

14

answers:

2

Hello,

How do I change the folder of my existing sln file?

It's right now inside one of my project's folder

if I cut the sln file and paste it in the root folder,it doesn't load any of my projects

Thanks

A: 

The solution file is just a text file. You should be able to move it and then edit it to make sure that any relative paths referenced in the file are correct.

I've also been able to right-click on the solution file in the solution explorer and then use save-as to save it in a different location. That doesn't seem to work everytime for me though.

RWGodfrey
any other way please?
Josh
Edited my answer with a different method that seems to work - sometimes.
RWGodfrey
A: 

if I cut the sln file and paste it in the root folder,it doesn't load any of my projects

Do this anyway, and try to open the solution. It will tell you that some projects couldn't be loaded: ignore the warning.

Then, go ahead and delete all the projects from the solution. After this right click the solution and select Add => Existing project and browse to your project file. Repeat for all projects in your solution.

Krevan