Skip to content

Explicit DocumentationFile=path instead of GenerateDocumentationFile=true leads to build race #1599

@nguerrera

Description

@nguerrera

Previously, C# projects would set an explicit intermediate path for the documentation file. This leads to using the same intermediate path for different TFMs that are built in parallel. We implemented GenerateDocumentationFile=true, but users porting existing projects might not know about it.

While the fix is simple (use GenerateDocumentationFile), the error is intermittent and doesn't at all hint at the fix: "cannot write to obj\Debug\Something.xml: already in use".

We should detect when the DocumentationFile is going to be written to the intermediate output path minus TFM in a multi-targeted project and issue an error. Alternatively, we could implement a fixup to insert the TFM in to the DocumentationFile path.

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions