Reporter | Brandon Poe (Brandon.Poe) |
---|---|
Created | Jan 11, 2012 7:44:58 PM |
Updated | Jan 16, 2012 9:09:47 PM |
Resolved | Jan 16, 2012 4:55:34 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Can't Reproduce |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Code Cleanup |
Affected versions | 6.1.1 |
Fixed in build | 6.5.1.2439 |
When running the Code Cleanup tool with Optimize 'using' directives selected... usages of aliases are replaced with the type's full path.
Example Before Optimize (focus on Owner alias and Owner attribute use):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Owner = Microsoft.VisualStudio.TestTools.UnitTesting.OwnerAttribute;
[TestMethod]
[Owner("johnDoe")]
public void TestMe()
Example After Optimize (focus on Owner alias and Owner attribute use)::
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Owner = Microsoft.VisualStudio.TestTools.UnitTesting.OwnerAttribute;
[TestMethod]
[Microsoft.VisualStudio.TestTools.UnitTesting.Owner("johnDoe")]
public void TestMe()
Example Before Optimize (focus on Owner alias and Owner attribute use):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Owner = Microsoft.VisualStudio.TestTools.UnitTesting.OwnerAttribute;
[TestMethod]
[Owner("johnDoe")]
public void TestMe()
Example After Optimize (focus on Owner alias and Owner attribute use)::
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Owner = Microsoft.VisualStudio.TestTools.UnitTesting.OwnerAttribute;
[TestMethod]
[Microsoft.VisualStudio.TestTools.UnitTesting.Owner("johnDoe")]
public void TestMe()