Reporter | 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'
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'