Automate refactor import/using directives, using ReSharper and Visual Studio 2010
        Posted  
        
            by Mendy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mendy
        
        
        
        Published on 2010-04-30T05:19:03Z
        Indexed on 
            2010/04/30
            5:57 UTC
        
        
        Read the original article
        Hit count: 362
        
I want to automate the Visual Studio 2010 / Resharper 5 auto inserting import directives to put my internal namespaces into the namespace sphere. Like this:
using System;
using System.Collections.Generic;
using System.Linq;
using StructureMap;
using MyProject.Core;          // <--- Move inside.
using MyProject.Core.Common;   // <--- Move inside.
namespace MyProject.DependencyResolution
{
    using Core;
    using Core.Common;   // <--- My internal namespaces to be here!
    public class DependencyRegistrar
    {
        ...........
    }
}
        © Stack Overflow or respective owner