By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,761 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

VB-101: Changing project names

P: n/a
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,
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"John Pass" <Jo******@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
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,
"Herfried K. Wagner [MVP]" wrote:
"John Pass" <Jo******@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

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

Crouchie1998
BA (HONS) MCP MCSE
Nov 21 '05 #4

P: n/a
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,

"Herfried K. Wagner [MVP]" wrote:
"John Pass" <Jo******@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

P: n/a
"John Pass" <Jo******@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.