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

RSRP-212056: Code Cleanup mistakenly removes Register directives in ASP.NET markup

$
0
0
Reporter Seth D (sdsbs) Seth D (sdsbs)
Created Feb 4, 2011 9:58:49 PM
Updated Jan 16, 2012 8:09:50 PM
Resolved Jan 16, 2012 2:19:46 PM
Priority Critical
Type Bug
Fix versions 6.1
State Fixed
Assignee Sergey Coox (coox)
Subsystem Code Cleanup
Affected versions 5.1.2
Fixed in build 6.5.1.2429
When the option "Optimize 'using' directives" is enabled, it seems that Code Cleanup will remove some register directives and thus cause the resulting page or control to fail.

Example of tag removed:
<%@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="radM" %>

Even though it was required by markup on the page;
<radM:RadMenu ID="RadMenu1" runat="server" SkinID="MainMenuSubMenu">
<Items>
<radm:RadMenuItem Text="My Account">


I'm aware that these can be moved to the web.config but this is a legacy application and that was beyond my control. Now it would have been amazing if Code Cleanup removed them AND added them to the web.config (pages/controls/add), but it did not perform the second part and thus left the app in a broken state.

I had to reset source control and keep running Code Cleanup with different options until I figured out it was "Optimize 'using' directives" causing the problem.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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