Error when resolving missing XAML namespaces

This bug is in R# since v7, maybe it was there even in v6, not sure.When pasting code into xaml file, sometimes the missing namespaces are are not recognized properly and I have to add them manually.  
How to reproduce this scenario:  

Create new empty Windows Phone 7 project. There is already empty MainPageAdd new Pivot page.  
Copy the <Grid>...</Grid> from the Pivot page and paste it into the Main page instead of the original Grid tag.  

dialog for adding missing namespaces shows up,I press Alt-Enter, I expect missing namespace is added for the controls:Pivot and controls:PivotItem  

when I press Alt + Enter, it changes these tags to phone:Pivot and phone:PivotItem where phone is  
but is should instead add the namespace  

Tested in VS2012 and WP8 SDK beta with WP7 project, but it should be reproducible in VS2010 and WP7 SDK too, maybe it's problem in WPF, Silverlight and WinRT projects as well.

Comment actions Permalink

Hi Martin,

I've forwarded this problem to the corresponding developer; he should take a look at it soon.
Thanks for the report!

Comment actions Permalink

Is this bug logged in YouTrack already? I just installed latest EAP v4 and the bug is still there.

Comment actions Permalink

Hi Martin,

Sorry for delay.
I've logged the bug here in YouTrack:

Thanks for the report once again!

Comment actions Permalink


The corresponding developer reported, that this issue should be fixed in the recent ReSharper 7.1 EAP builds:
Please try it out and let me know how it goes.


Comment actions Permalink

Not fixed in the v8 EAP. Typical reproduction, similar to the one I reported in my first post:

I got already
in namespaces.

I then add this to some panel or textblock:

This should be added to namespaces:

Instead when I use the Alt+Enter auto fix the pasted string changes to
which is wrong and it's still in red, offering auto fix that won't help.

Edit: just tested WP7.1 SDK in VS2010 and v8 EAP - same problem, so it's definitely not a problem with unfinished WP8 SDK for VS2012.

Comment actions Permalink

Hi Martin,

Thanks for the information! Great that this bug is now fixed for you!


Please sign in to leave a comment.