Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

DocumentationFile outputs both to project root as in output folder (when only specifying filename) #614

@Styxxy

Description

@Styxxy

When specifying only a filename in the DocumentationFile in the csproj, the generated xml documentation file will be outputted to both the root of the project as well as in the output path.

Given following csproj:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>net47;netstandard2.0</TargetFrameworks>
    <DocumentationFile>my_library.xml</DocumentationFile>
  </PropertyGroup>

</Project>

And we have one class in our class libary:

namespace my_library
{
    /// <summary>
    /// Test
    /// </summary>
    public class Test
    {
    }
}

The documentation file is generated in following directories:

  • project-root
  • project-root/bin/$(Configuration)/net47
  • project-root/bin/$(Configuration)/netstandard2.0

In the old csproj format, the documentation file would be only outputted to the output folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions