2 Replies - 2481 Views - Last Post: 04 September 2013 - 05:06 AM Rate Topic: -----

#1 solorize   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 53
  • Joined: 28-February 12

How to rename an existing vb.net project and folder

Posted 03 September 2013 - 11:59 PM

Hi,

Does anyone know the correct way to rename a vb.net project and assosiated
project files and project folder?

As when I first created my new project it was just a test project. But now
the program has fledged into a fully blown program and I really would like
to be able to rename the project to a more meaningfull name rather than the
test name I had used when I first created the project.

I had tried renaming various files in windows explorer but this does not
work and the program ended up not loading.

If someone could explain how to rename a project correctly I would be greatful.

Thanks in advance

Mark

Is This A Good Question/Topic? 0
  • +

Replies To: How to rename an existing vb.net project and folder

#2 Luc001   User is offline

  • D.I.C Addict

Reputation: 85
  • View blog
  • Posts: 617
  • Joined: 04-May 09

Re: How to rename an existing vb.net project and folder

Posted 04 September 2013 - 12:27 AM

Hi,

You can try this:

Open the project file (*.vbproj) in a text editor, and add the following line inside the first <PropertyGroup> element:

<AppDesignerFolder>NewName</AppDesignerFolder>


Now when Visual Studio regenerates the folder, it will call it "NewName", and anything it generates that it would put in My Project (such as AssemblyInfo.vb) will be put there.

You can then move (in Explorer, not Visual Studio) the contents of "My Project" to that folder, delete "My Project", and everything should work as expected.
Was This Post Helpful? 0
  • +
  • -

#3 solorize   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 53
  • Joined: 28-February 12

Re: How to rename an existing vb.net project and folder

Posted 04 September 2013 - 05:06 AM

Hi,

Thanks for your reply.

I will have a go tonight and see if that work.


Regards

Mark

This post has been edited by solorize: 04 September 2013 - 05:08 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1