Change Project name

H

Hugh

Hi there,

An existing solution is used to create a new solution. It
is easy to change the names of individual forms and
modules. However, how to change the name of project
folder? Thanks in advance for your help.

Hugh
 
C

Chris Dunaway

The folder name is irrelevant. You can change that using Windows
Explorer. To change the name of the project you can right click on it.
 
H

hugh

Chris,

Thanks for your message. I knew it is irrelavant and I
could change using Windows Explorer. But whole solution
will not work if I change only project folder name.

Hugh
 
H

Herfried K. Wagner [MVP]

hugh said:
Thanks for your message. I knew it is irrelavant and I
could change using Windows Explorer. But whole solution
will not work if I change only project folder name.

Select the solution in solution explorer, press the F2 key and enter the new
name.
 
H

Hugh

Thank you, Herfried, for your help. The method you
metioned will enable to change "Solution name" not project
name. I have project under solution. Project name is
invisible in solution explorer window.

Hugh
 
R

rawCoder

In my IDE, I can change the 'Project' name and it is visible in the Solution
Explorer View.
On Selecting the Project name the property window shows the name of the
Project File.
And I can change the name from there.

May b u r missing something.
HTH
rawCoder
 
H

Hugh

I might not make it clear. The name in solution explorer
can be changed. However, folder name in the hard disk (or
in windows explorer) is not. How to I change the folder
name?

Hugh
 
H

Herfried K. Wagner [MVP]

Hugh said:
I might not make it clear. The name in solution explorer
can be changed. However, folder name in the hard disk (or
in windows explorer) is not. How to I change the folder
name?

Close the project in VS.NET and change the folder's name in Windows
Explorer.
 
H

Hugh

Hi Herfried,
Thanks for your reply again. The solution will not be able
to find specified path when lauched if project (folder's
name) is changed outside of IDE.

Hugh
 
F

Fernando

Hugh, you must be talking about a web application, because a windows
applications do not hard code paths. It should allows you to change solution
name and directory. If it's a web application, open ***.sln file in notepad
and change the application path. You will need to change path in IIS too.
Fer
 
H

Herfried K. Wagner [MVP]

Hugh said:
Thanks for your reply again. The solution will not be able
to find specified path when lauched if project (folder's
name) is changed outside of IDE.

You may want to re-add the project to the solution or edit the solution file
using notepad (don't forget to make a backup...).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top