 |
| VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1).
** Please don't post code questions here **
For issues specific to a particular language in .NET, please see the other forum categories. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

May 4th, 2005, 12:21 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
Changing ASP Folder Name?
Is there some simple way to change the name of an existing ASP.NET project folder? Creating a new folder and copying the source code over was easy enough, of course, but then the project wouldn't load from the new location due to a HARD CODED reference to the old project folder in the project file. I manually edited the project file to reference the new folder, and the forms would load, but then nothing would run right. It seems there were other HARD CODED Folder references in the HTML files pointing to the old DLL created the last time I compiled from the old project folder. So now I've edited those HTML files, but am concerned there is some other obscure file I've missed. Another developer I spoke with about this said when he had a similar problem, the only solution he could find was to create a brand new project in VS and then reference all the project files one-by-one, also not a simple solution.
Is there no way to simply point a project to another folder without manually editing practically every &^%$# file in the project to remove hard coded folder references???
|
|

May 4th, 2005, 12:33 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Ron,
Depending on your setup and projects, it might help to edit the .sln, .csproj or .vbproj files directly.
Those file are just plain XML and describe the project structure and references. Don't forget to change the one in your web folder as well....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|

May 4th, 2005, 12:37 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
|
|
That's what I have been doing. I was hoping there might be a "Change Project Name/Folder" option buried somewhere, though...
|
|

May 4th, 2005, 12:40 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Ah, OK, I see.
Not sure if this is what you want, but you can rename a project in a solution by selecting it and pressing F2. You also have the option to Save As, both for a project and a solution....
You'll also have to rename the assemblies your projects are outputting...
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

December 21st, 2007, 06:59 AM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If developing an IIS Website, you can change the name of the source folder and update IIS accordingly. This will update your project name in VS.
There may be a similar solution for projects- but on that i'm not sure!
|
|
 |