I'm writing a library with source code common to the server and the client.
The problem I have is inside XML comments, where sometimes the client and server documentation differs, something like:
/// <summary>
/// Does something.
/// </summary>
/// <remarks>
/// Common info.
#if Client
/// Additional info for client only.
#endif
/// </remarks>
When I compile without the Client
symbol defined, I have the following warning:
Warning CS1570: XML comment has badly formed XML -- 'Expected an end tag for element 'remarks'.'
CS1570: XML comment has badly formed XML -- 'End tag was not expected at this location.'
Warning CS1587: XML comment is not placed on a valid language element
Is there a solution for this, or no hope?