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

RSRP-284928: Non existant namespace is not removed when refactoring

$
0
0
Reporter Marius (geimas5) Marius (geimas5)
Created Dec 4, 2011 2:58:35 AM
Updated Apr 23, 2018 3:38:44 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Open
Type Unspecified
Fix version Backlog
Affected versions 2018.1, 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
If i move a .cs file to another folder and use the refactoring to update the namespace. The namespace is not removed from the classes that is referencing it as a using.

Example:
Lets say i have a single .cs file in <project root>/Drawing/test and move it to <project root>/Drawing. I then have the option to update the namespace for the classes inside that file to match the filepath.

When i do this the namespace is not removed from the folders referencing it as a using at the top of the file.

If the namespace is no longer in use, this results in code that no longer compiles because the namespace no longer exists.

I am using the latest nightly build. Versjon 6.1.20

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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