XAML path not found error

Hi @all,


in my current project there is a class called HelpProvider with a property HelpUri. The property contains the path to a help file. When I set the property in XAML like this

 <Setter

 Property="help:HelpProvider.HelpUri"

 Value="FwCommon/ttp_001_navi-stack.htm"

 />

ReSharper (I'm forced to use version 5.1, because we need the Settings Manager plugin) complains that the path can't be found. This is true, because it is a relative URI which is expanded to the absolute URI at runtime. Furthermore the URI will be only valid on the target machine.

Is it possible to avoid the error message or at least to set the severity to warning or suggestion? I already spend some hours searching the internet, but I didn't found a solution.

Thanks in advance.

Best regards,

Carsten

2 comments
Comment actions Permalink

Hello Carsten,

You can easily disable this warning by setting 'Path error' inspection to
'Do not show' under ReSharper | Options | Code Inspection | Inspection Severity.
Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi @all,

in my current project there is a class called HelpProvider with a
property HelpUri. The property contains the path to a help file. When
I set the property in XAML like this

<Setter
Property="help:HelpProvider.HelpUri"
Value="FwCommon/ttp_001_navi-stack.htm"
/>
ReSharper (I'm forced to use version 5.1, because we need the Settings
Manager plugin) complains that the path can't be found. This is true,
because it is a relative URI which is expanded to the absolute URI at
runtime. Furthermore the URI will be only valid on the target machine.

Is it possible to avoid the error message or at least to set the
severity to warning or suggestion? I already spend some hours
searching the internet, but I didn't found a solution.

Thanks in advance.

Best regards,
Carsten
---
Original message URL:
http://devnet.jetbrains.net/message/5441679#5441679



0
Comment actions Permalink

Hi Andrey,

thank you for the quick response. Is this setting really available in ReSharper 5.1.3? That was I was looking for on yesterday and I Just searched again all Inspection Severity setting, - I can't find it :-(. I found a Path error setting for ASP.NET which is turned off, but not in the XAML or any other section. Did I miss something?

Best regards,

Carsten

0

Please sign in to leave a comment.