History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-38162
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Sergey Coox
Reporter: Alexandr
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Illegal code format

Created: 30 Mar 07 05:28   Updated: 23 Apr 08 16:56
Component/s: Language - ASP.NET
Fix Version/s: 3.1.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File WebApplication1.rar (9 kb)


Build: 405


 Description  « Hide
Resharper 3.0.405.

Reformatting aspx code make it non compilable.
example:
before:

test.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="a.A"%>

test.aspx.cs:
namespace a
{
public partial class A : BaseA{..}
}

a.cs:
namespace a
{
public class A : Page{...}
}

after reformatting:
test.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="A" %>
<%@ Import namespace="a"%>

this code would not compile with vs2005.



 All   Comments   Work Log   Change History      Sort Order:
Sergey Coox - 02 Apr 07 14:50
I cannot reproduce the issue in 410.
Maybe you've mistaken somewhere? Could you send us the sample solution?

Alexandr - 19 Jun 07 02:53
Open solution, right click on WebApplication1 in Solution Explorer and choose Reformat Code. Select all checkboxes and press ok.
After refomating look at test.aspx page. The header of page is:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="test" %>
<%@ Import namespace="WebApplication1"%>

Joe - 23 Apr 08 16:40
<%@ Import namespace="WebApplication1"%>

I believe in this instance that "namespace" is case sensitive and should be "Namespace".

Just a thought.