Rename a VB.Net Project

Posted on 2014-08-15
Medium Priority
Last Modified: 2014-08-15
I have a VB.net (2010) project that I want to use as a base for a new project. Can anyone direct me to a step-by-step procedure for copying and then renaming my old project to a new name?
I have considered just creating a new project and then coping all of the files from the old project into the new folder and adding each form and module but was wondering if there was an easier way.

Question by:charlieb01
  • 2
LVL 14

Accepted Solution

Brad Groux earned 1800 total points
ID: 40263757
Open the file up in Visual Studio and change the solution name in Solution Explorer and then SAVE AS... This should rename all of the areas where it is referenced throughout the solution. Unfortunately Visual Studio's Rename and Refactor only works with C#.

Author Comment

ID: 40263946
Your method appears to work but it does not rename the sln filename. Is there a step I am missing?
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 200 total points
ID: 40264199
The .sln file is the one from which all others are opened. It's name is not important, because no other file in your project opens it, You are the only one opening it. You can thus rename it through Windows Explorer after you have renamed the project with Brad's solution. The only handicap is that If you have opened that new solution once in VS, the old name will still hang in the Recent files list, but you will see, if you try to open it from there, that Visual Studio will be very nice to you.

Author Closing Comment

ID: 40264242
Thank you both for your help

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question