3
  1. Is there a way to automatically set the namespaces for classes according to a new folder structure, project-wide, so that refactored folders and files align with the default convention of

namespace project.folder.subfolder

within Visual Studio 2010?

  1. After restructuring a project, and changing the namespaces, is there a facility to adjust the using code lines automatically, project-wide with the new namespaces?

2 Answers 2

2

ReSharper handles this nicely with the Adjust Namespaces functionality.

Sign up to request clarification or add additional context in comments.

Comments

0

Within Visual Studio itself, not that I am aware.

The Resharper add-in has an "Adjust Namespaces" feature which will go through a solution and match up namespaces with folder structure. This will also resolve reference re-mapping as well.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.