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

Key: RSRP-63572
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Joshua McKinney
Votes: 0
Watchers: 0
Operations

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

Move namespace breaks winforms designer

Created: 03 Apr 08 10:06   Updated: 04 Apr 08 14:12
Component/s: Refactorings - Move Type
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 765


 Description  « Hide
4.0.765.1 nightly
repro steps:
Create a new winforms app project
Create a button
Double click button to add handler
enter:
Person p = new Person();
press Alt+Enter for quick-fix create class Person
press F6 on new class to move to another namespace (e.g. DomainModel)
resharper moves class to top of file in new namespace.
Ctrl+Tab to form designer gives the following error: The class Form1 can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again.
In the code window, the partial class does not pick up that it has a second part.

Probably the easiest way to fix this is by ensuring 'move to namespace' moves class to buttom of file, rather than the top.



 All   Comments   Work Log   Change History      Sort Order:
Joshua McKinney - 03 Apr 08 19:50
p.s. using VS 2008 if that adds any significance.