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

RSRP-292215: "Move declarations to namespace" doesn't work well with handler code files in ASP .NET

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Mar 29, 2012 5:40:54 PM
Updated Apr 5, 2012 3:17:45 AM
Priority Show-stopper
Type Bug
Fix versions 7.0 Preview
State Submitted
Assignee Slava Trenogin (derigel)
Subsystem No subsystem
Affected versions 6.1.1
Fixed in build No Fixed in build
Using the following steps you can see the issue:

Open the project.
Move the Handler1.aspx (and Handler1.aspx.cs) files into Folder1 Open the Handler1.aspx.cs file Mouse over the namespace Drop down the ReSharper widget that appears at the beginning of the line.
Choose the "Move declarations to namespace 'ResharperBugDemo.Folder1'" option.
Right click on Handler1.aspx in the Solution Explorer and choose 'View Markup'.
Notice that the Class="" attribute has not been changed to 'ReShareperBugDemo.Folder1.Hander1' as it should be.

If you now compile and deploy this project your handler will throw an error.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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