How to change a VB solution/project name?

B

Bill nguyen

I made a copy of an existing VB.NET project to a new folder and would like
to change the solution name to something else to avoid confusion.
What is the best way to do this so that I won't run into referencing
problem?

Thanks

Bill
 
C

Carlos J. Quintero [VB MVP]

Hi Bill,

You have to use the Solution Explorer, select the solution node and
right-click rename. If you have not renamed the project there is no need to
change the default namespace, output assembly and so on.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com
 
B

Bill Nguyen

Carlos;

Thanks for the tip. I tried it, and it seemed to work. However, when I build
the executable, it still compiled under the oldname OLDPROJECT.EXE. I want
it to be NEWPROEJCT.EXE instead.

Thanks

Bill
 
C

Carlos J. Quintero [VB MVP]

Hi Bill

From your original post I understood that you only moved a project from a
folder to another (without renaming the project) and that you wanted to
rename the solution. Anyway, if you can rename solutions and projects in the
Solution Explorer and I told you. If you want to change the output file
name, right-click the project in the Solution Explorer to open the Property
Pages, select Common Properties, General node and change the "Assembly
name", and surely the "Root namespace" too.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com
 
B

Bill nguyen

Carlos;
Thanks for your help.
Bill
Carlos J. Quintero said:
Hi Bill

From your original post I understood that you only moved a project from a
folder to another (without renaming the project) and that you wanted to
rename the solution. Anyway, if you can rename solutions and projects in
the Solution Explorer and I told you. If you want to change the output
file name, right-click the project in the Solution Explorer to open the
Property Pages, select Common Properties, General node and change the
"Assembly name", and surely the "Root namespace" too.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com
 

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