In the csproj file I've enabled XML documentation generation via the following tag:
<PropertyGroup>
<DocumentationFile>bin\xml\Project.Api.xml</DocumentationFile>
<NoWarn>1701;1702;1705;1591;1573</NoWarn>
</PropertyGroup>
This works and correctly builds xml docs. Now I need this XML file to be distributed with the application (for Swagger support among other things). So I added the following:
<ItemGroup>
<None Update="bin\xml\Project.Api.xml">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
</ItemGroup>
However, when I publish to a folder (or to azure) the XML doc is no where to be found.
What am I missing?