Reporter | Werner Strydom (bloudraak) |
---|---|
Created | Jan 26, 2012 1:01:32 AM |
Updated | Jan 26, 2012 1:01:32 AM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Code Cleanup |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
See the attached solution. Open it in Visual Studio 2010 with ReSharper 6.1.37.86 installed. Now go to project "Sample" and "Map.cs" in the "Boostrap" folder. Select code cleanup and select "Full Cleanup". Notice that the ReSharper modifies the code from:
to
The latter is incorrect. This feature prevents me from globally performing a code cleanup.
namespace Sample.Boostrap { using AutoMapper; using Bootstrap.AutoMapper; public class Map : IMapCreator { public void CreateMap(IProfileExpression mapper) { mapper.CreateMap<Class1, Data.Security.Class1>(); mapper.CreateMap<Class2, Data.Security.Class2>(); mapper.CreateMap<Class3, Data.Security.Class3>(); mapper.CreateMap<Class4, Data.Security.Class4>(); } } }
to
namespace Sample.Boostrap { using AutoMapper; using Bootstrap.AutoMapper; public class Map : IMapCreator { public void CreateMap(IProfileExpression mapper) { mapper.CreateMap<Class1, Class1>(); mapper.CreateMap<Class2, Class2>(); mapper.CreateMap<Class3, Class3>(); mapper.CreateMap<Class4, Class4>(); } } }
The latter is incorrect. This feature prevents me from globally performing a code cleanup.