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

RSRP-272941: Incorrectly trying to resolve namespace symbol in custom attached property.

$
0
0
Reporter Chris Long (Squeeself) Chris Long (Squeeself)
Created Jun 21, 2011 9:09:36 PM
Updated Jan 4, 2012 3:38:31 AM
Priority Major
Type Bug
Fix versions Next
State Open
Assignee Alexander Shvedov (shvedov)
Subsystem Language - XAML
Affected versions 6.0, 5.1.3, 6.1
Fixed in build No Fixed in build
I have a custom attached dependency property in XAML. The attached property is a Uri with a custom Uri scheme. However, when specifying that Uri in XAML, Resharper incorrectly tries to resolve the scheme symbol and displays spurious errors.

Example:

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:MyNamespace;assembly=MyAssembly">
<Button my:MyClass.DocumentUri="wiki:internal/path+to+document"/>
</Page>

Resharper will have the following errors for the above XAML, even though Visual Studio will compile and run it correctly:

Cannot resolve symbol 'wiki'
Cannot resolve symbol 'internal'
Cannot resolve symbol 'path+to+document'

Viewing all articles
Browse latest Browse all 106942

Trending Articles