Francesco
Francesco

Reputation: 964

VS2010: Change name of a project library

How do I change the name of a project library in such a way to affect:

1) Assembly Information name

2) Physical folder name

3) Referenced name

I tried with normal refactoring but it does not affect all the entries. I.e. old library name="Utilities", new library name = "DataLayer". "Datalayer" should substitute "Utilities" everywhere.

Upvotes: 4

Views: 4371

Answers (1)

Mark Redman
Mark Redman

Reputation: 24515

I would:

1) Rename the Project in the solution.

2) In the Project Properties, rename the "Assebly name" property

3) Remove the project from the solution

4) Close the solution

5) Rename/Move the Project Folder

6) Open the solution

7) Add Existing project to the solution

8) Re-establish the correct references

9) Delete old solution and project files from new/renamed folder

if I have understood the question (assuming multiple projects are in one solution)..

Upvotes: 7

Related Questions