|
-
Jul 9th, 2013, 04:58 AM
#1
Thread Starter
Member
VS 2010- Moving files
Hello to the communtiy.
A few days ago, I installed VS 2010, using Visual Basic as the primary language.
Since I am still new to this, I have faced a problem.
I have created a new project and they have been created all the neccessary files/ folders
on desktop. I decided to move some of the files to a new folder, but project cannot
find those files unless I place them on desktop.
The error i get is something like this: "Unable to start program "C:\.............." .Specified file cannot be found".
What can I do?
Thanks
Stratos
-
Jul 9th, 2013, 06:40 AM
#2
Lively Member
Re: VS 2010- Moving files
Have U tried. Tools - Options - Projects and solutions and then adjusted the Project location?
-
Jul 9th, 2013, 07:13 AM
#3
Re: VS 2010- Moving files
Another thread that lacks code.
-
Jul 9th, 2013, 08:06 AM
#4
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.
-
Jul 9th, 2013, 02:39 PM
#5
Thread Starter
Member
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
-
Jul 9th, 2013, 02:53 PM
#6
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.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jul 9th, 2013, 06:46 PM
#7
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.
-
Jul 13th, 2013, 03:08 AM
#8
Thread Starter
Member
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|