Re: VS 2010- Moving files
Have U tried. Tools - Options - Projects and solutions and then adjusted the Project location?
Re: VS 2010- Moving files
Another thread that lacks code.
Re: VS 2010- Moving files
Why would you create a project on the desktop in the first place? Visual Studio has a dedicated Projects folder and there's really no reason not save all your projects to that folder.
Regardless of that, what files did you move, where to, how and why? You can move files but you have to do it in the right way. If there location is recorded somewhere and you move the file without changing that reference then of course the project won't work.
Re: VS 2010- Moving files
@Tonyallan8128. It didn't help your suggestion.
@jmcilhinney. I copy-paste the files from desktop to the new folder. I moved the form.vb, form.resx and the Form.Designer.vb
Re: VS 2010- Moving files
Well that's not going to work. You need to copy the entire project folder to a new location so that the solution file can be opened in the right relationship to the remainder of the files.
Re: VS 2010- Moving files
The VBPROJ file contains the relative path of each file in the project. If you move a file then you have to change that reference too. If you move a file in the Solution Explorer then the IDE does that for you. If you move the files in Windows Explorer then you can edit the project file by hand but I would recommend against that. What I would recommend is that you put your projects in the Projects folder in the first place and, if you move anything outside the IDE, move the solution folder and everything in it as a group and nothing else unless you absolutely have to.
Re: VS 2010- Moving files
Thanks for the replies guys.
I think a found an easier solution. I have just deleted the form from the solution explorer, I moved the form to the new folder and then added the form once again from the project menu.