Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created an ASP.NET website.

I'm trying to consolidate the website and all of it's child projects. Some of these projects have been created in different locations on my filesystem because either I created it in a location without paying attention or I decided to refactor/rename later on.

I'm trying to put all of these projects into a brand new directory. Then I want to zip up the directory and give it to the client. I'd like the client to be able to unzip the projects into any directory/subdirectory of their choice.

So far this seems to work well for all of the class libraries. However, the files belonging directly to the main website are still getting opened from the old location even though I copied the website to a new location.

What can I do to make Visual Studio open up the website files from the new location? I opened up the website sln file with notepad and found the following path for the website:

"..\..\..\..\..\..\PROJECTS\MyWebSite\"

So this appears to be a relative path but I'm not sure what it's relative to. If I knew what this path was supposed to be relative to then I could probably change it.

So if I want the website to open from "C:\MyClientDirectory\MyWebsite\" then what should I update the path to in the sln file? Also, is there a UI to make this change to the sln for the website or am I just supposed to make this change in notepad?
Posted
Updated 8-Jul-10 14:42pm
v2

Hi,

I think the path you ar seeing is relative to the .sln file ,

howerver you can open the web site directly in VS, file>open>website

on specifying only the web site folder
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900