Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287713: Code Cleanup with Optimize 'using' directives replaces alias instances with full path

$
0
0
Reporter Brandon Poe (Brandon.Poe) 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()

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>