I've searched around a bit for this and tried a few things and can't get it to work without turning some stuff off that I want on.
Normally I let Resharper have its way with namespace optimizations. In a Service implementation that's mapping DTO's to Domain Model objects it's a nice visual to create an alias for each. That way when it's late and you're sleep deprived seeing Dtos.Customer
and DomainModel.Customer
helps.
using DomainModel = MyProduct.Core.Domain.Model;
using Dtos = MyProduct.ServiceModel.Dtos;
When I run code cleanup it changes those to:
using DomainModel = MyProduct.Core.Domain.Model;
using Customer = MyProduct.Core.Domain.Model.Customer;
Does anyone do this or something similar and keep R# from whacking it?