Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving a project to a new location?
Message
 
 
To
25/06/2010 08:32:12
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01470309
Message ID:
01470559
Views:
22
>>
>>Maybe you can clarify something. Here is what I did. I renamed the MyProject.sln in the Old location. Therefore, when I open VS 2005 it says it cannot find a reference to the MyProject project and I choose to remove it from VS 2005. So far so good. Then I copied the entire folder MyProjFolder to a new location. Then I create a new solution in the VS 2005. And where I get stock is how do I add my project from the new location to the new location. I think I can do it one file at a time but I was under impression that it can be done in one step. What am I missing?
>>
>>Thank you
>
>Hi Dimtry,
>
>If you rename the solution in windows explorer (which is perfectly fine to do) then you cannot open it using the recent solutions or clicking on it in the startup page. You can however just click on File | Open project or solution and then navigate to it.
>
>Now to move the projects just copy them wherever you want them. Then when you open the solution, if the projects are there but don't open (most likely), you can remove them by right clicking and say remove from solution. Then right click on the solution and choose add existing project and navigate to where you moved it to.
>
>I typically organize my solutions and projects like this. Everything under my Development folder
>
>\MyApplicationName (folder) with the solution in here at the root.
>\MyApplication\ProjectOneFolder\
>\MyApplication\ProjectTwoFolder\
>
>
>Since VS does not just organize this way be default when you create the initial solution, I create an empty solution then close it and move it where I want. Then I have to do File | Open project or file and navigate to it. Then I just right click the solution and pick either add existing project or add new Project
>
>Tim

Tim,

First, thank you for detailed reply. But I am still confused (it is me, I know <g>). Let me describe the current setting I have:
1. Existing Solution which has just one project. All pages of this solution/project (since it is one) are in the folders:
c:\inetpub\wwwroot\MyProject
The solution file (MyProject.sln) is in the c:\MyDocuments\MyName\....\VS2005Projects\MyProject folder.

So the VS2005 points to the solution file (.sln) in the c:\MyDocument\Myname.. ..\MyProject folder

2. I want all project pages and the solution file (.sln) to be moved to a folder on drive d: (e.g. "D:\VS2005\MyProject")

I can copy all pages from the Old Folder to the New Folder (D:\VS2006\MyProject). Do I also need to copy the solution file .sln from the old location to the new one? Or recreate it?

The way I see is that VS relies on the .sln file (MyProject.sln) to find the pages and files of the project/solution. And I am having tough tough understanding how to "move" the solution file from one location to another.

Hopefully you what I am not seeing. Thank you.


"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform