C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 307,175 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,578 people online right now. Registration is fast and FREE... Join Now!




change name of project

 

change name of project

izzahaf

12 Jun, 2009 - 05:48 PM
Post #1

D.I.C Head
**

Joined: 12 Mar, 2009
Posts: 98

hi all, need help like usual biggrin.gif


a have Project named A, i want to change to B
i have changed the name of folder project, but i must make adjusment in anywhere in my class.
but the namespace is still A.

How should i do.
thx for help.

User is offlineProfile CardPM
+Quote Post

 
Reply to this topicStart new topic
Replies(1 - 10)

papuccino1

RE: Change Name Of Project

12 Jun, 2009 - 06:01 PM
Post #2

C# Programmer
Group Icon

Joined: 2 Mar, 2008
Posts: 945



Thanked: 33 times
Dream Kudos: 50
My Contributions
Try this:
Click on your solution in the Solution Tab, and click a second time to change it's name. Once you change it, the IDE should promt you to update all references. I guess this would work biggrin.gif
User is offlineProfile CardPM
+Quote Post

izzahaf

RE: Change Name Of Project

12 Jun, 2009 - 06:33 PM
Post #3

D.I.C Head
**

Joined: 12 Mar, 2009
Posts: 98

QUOTE(papuccino1 @ 12 Jun, 2009 - 06:01 PM) *

Try this:
Click on your solution in the Solution Tab, and click a second time to change it's name. Once you change it, the IDE should promt you to update all references. I guess this would work biggrin.gif


i've tried that. but every i want to make new class, in header:

namespace A.Data
not my new name(cool.gif

and if i want add form, i must change it form class namespace and its designer.
how is it?
User is offlineProfile CardPM
+Quote Post

lesPaul456

RE: Change Name Of Project

12 Jun, 2009 - 06:49 PM
Post #4

D.I.C Regular
Group Icon

Joined: 16 Apr, 2009
Posts: 259



Thanked: 35 times
Dream Kudos: 175
My Contributions
From the "Project" menu, select "Properties". Then, select the "Application" tab. You will see two text boxes: Assembly Name, and Default Namespace.

Change these to the new name.

Now, when you add a new form, you will see the changes. You will have to manually edit any existing code, however.
User is offlineProfile CardPM
+Quote Post

izzahaf

RE: Change Name Of Project

12 Jun, 2009 - 07:35 PM
Post #5

D.I.C Head
**

Joined: 12 Mar, 2009
Posts: 98

QUOTE(lesPaul456 @ 12 Jun, 2009 - 06:49 PM) *

From the "Project" menu, select "Properties". Then, select the "Application" tab. You will see two text boxes: Assembly Name, and Default Namespace.

Change these to the new name.

Now, when you add a new form, you will see the changes. You will have to manually edit any existing code, however.



the folder project can't be changed sad.gif
if i change, when i open the project, there's attention:

"One or more project in the solution can't be loaded, because:
the project file or web has benn moved, rename, or isn't in your computer.
these project will be labeled as unavailable in solution explorer . .."


how how how ....
thx u.
User is offlineProfile CardPM
+Quote Post

lesPaul456

RE: Change Name Of Project

13 Jun, 2009 - 08:16 AM
Post #6

D.I.C Regular
Group Icon

Joined: 16 Apr, 2009
Posts: 259



Thanked: 35 times
Dream Kudos: 175
My Contributions
I think this may be because you didn't change the name project file.

In the Solution Explorer, click the solution line. Then, in the properties window, change the "Name" property to your new project name.

Then, select the Line for your project, and in the properties window, change the "Project File" property to the name of the new project with the extension ".csproj".
User is offlineProfile CardPM
+Quote Post

izzahaf

RE: Change Name Of Project

13 Jun, 2009 - 02:47 PM
Post #7

D.I.C Head
**

Joined: 12 Mar, 2009
Posts: 98

QUOTE(lesPaul456 @ 13 Jun, 2009 - 08:16 AM) *

I think this may be because you didn't change the name project file.

In the Solution Explorer, click the solution line. Then, in the properties window, change the "Name" property to your new project name.

Then, select the Line for your project, and in the properties window, change the "Project File" property to the name of the new project with the extension ".csproj".



what's the assembly information, how if i change it?
i think it can't change because assembly name not be changed yet.
thanks.
User is offlineProfile CardPM
+Quote Post

izzahaf

RE: Change Name Of Project

14 Jun, 2009 - 04:21 PM
Post #8

D.I.C Head
**

Joined: 12 Mar, 2009
Posts: 98

hi hello...
User is offlineProfile CardPM
+Quote Post

Mandrake1942

RE: Change Name Of Project

30 Jun, 2009 - 05:17 AM
Post #9

New D.I.C Head
*

Joined: 3 Apr, 2009
Posts: 15


My Contributions
Hello i need help i need to rename my project ... i followed the method above with little result i have changed the name of the properties from Web_Browser_v1._4.Properties to Web_Browser.properties but the old name is in all the forms ... how can i change that too i used the method above but did not work completly maybe you could explain a little better please
IPB Image

Can you please reply to my post or i need to make a new topic ?

This post has been edited by Mandrake1942: 30 Jun, 2009 - 07:26 AM
User is offlineProfile CardPM
+Quote Post

reCoded

RE: Change Name Of Project

30 Jun, 2009 - 10:19 AM
Post #10

D.I.C Regular
***

Joined: 25 Feb, 2008
Posts: 270



Thanked: 5 times
My Contributions
Create a new project with a new name. This time don't use A or B but something meaning ful
User is offlineProfile CardPM
+Quote Post

izzahaf

RE: Change Name Of Project

9 Jul, 2009 - 04:21 PM
Post #11

D.I.C Head
**

Joined: 12 Mar, 2009
Posts: 98

QUOTE(reCoded @ 30 Jun, 2009 - 10:19 AM) *

Create a new project with a new name. This time don't use A or B but something meaning ful



hehe, it's just an example.

anyway, i still get this problem. sad.gif
please, help.

QUOTE(lesPaul456 @ 12 Jun, 2009 - 06:49 PM) *

From the "Project" menu, select "Properties". Then, select the "Application" tab. You will see two text boxes: Assembly Name, and Default Namespace.

Change these to the new name.

Now, when you add a new form, you will see the changes. You will have to manually edit any existing code, however.


i'm sorry les, i've missed ur ': Assembly Name, and ... .' biggrin.gif

thx very much.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 07:10PM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month