VB-101: Changing project names

G

Guest

I saved a project accepting the defaults name “ConsoleApplication2â€. After
adding the code, I changed the name using “Rename†in the file directory.
After opening the file, the project name is indeed changed, but the solution
name (in the Solution explorer window) is still listed as
‘ConsoleApplication2’. How to I change that? What is the recommended way to
change the names of the various file types?

Thanks for your help,

Regards,
 
H

Herfried K. Wagner [MVP]

John Pass said:
but the solution name (in the Solution explorer window) is still listed as
‘ConsoleApplication2’. How to I change that? What is the recommended way
to
change the names of the various file types?

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

Guest

Thanks for your reply Herfried,

I did that and it changes the name of the solution but makes no changes to
the name of the file folder in My Documents/Visual Studio Project. I guess
that I have to make the name changes twice, once for each file and once for
the folder name.

I wonder why that is the case since initially (by default) the name
WindowsApplication1 is given to both automatically. Does it serve a function
to have different names for each.

Regards,
 
C

Crouchie1998

Yes, you will need to close your project folder & rename it manually - What
hardships :))

Crouchie1998
BA (HONS) MCP MCSE
 
G

Guest

And even after changing the solution and the folder name, the files with
extension .sln and .suo still have name "ConsoleApplication1".

Also, are there negative consequences of changing files names within a
project; will the program look for the "old" files names and crash or other?

I guess that one better assigns the final name to a new project while
generating the new project name.

Thanks,
 
H

Herfried K. Wagner [MVP]

John Pass said:
I did that and it changes the name of the solution but makes no changes to
the name of the file folder in My Documents/Visual Studio Project. I guess
that I have to make the name changes twice, once for each file and once
for
the folder name.

Yes, you'll have to rename the folder in explorer.
 

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