I have this:
/// <summary>
/// Foo
/// </summary>
/// <seealso href="https://www.example.com/foo?q=bar&qux=2"/>
That gives:
XML comment has badly formed XML -- 'Reference to undefined entity 'qux'.' csharp(CS1570)
The problem is the &
is invalid XML.
Workarounds:
- convert
&
to&
- disable the warning with a
#pragma warning disable CS1570
- from comments below:
<NoWarn>1570</NoWarn>
- from comments below: find (using regex) and replace
&
with&
These are non ideal and a waste of time - I just want to paste my URLs into the code and move on.
Is it possible to configure the analyzer to allow ampersands?