Skip to content

FastUpToDateCheck does not work when CopyDocumentationFileToOutputDirectory is false #9706

Open
@janthomasQS

Description

@janthomasQS

Visual Studio Version

17.14

Summary

Set <GenerateDocumentationFile>true</GenerateDocumentationFile> and <CopyDocumentationFileToOutputDirectory>false</CopyDocumentationFileToOutputDirectory>

When building, the FastUpToDateCheck will always say Output 'B:\mypath\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.xml' does not exist, not up-to-date.

An explanation why this situation would occur. If you want to get rid of unused usings you need to enable documentation file generation for correct reporting but you might not want the DocumentationFile in the output.
See: dotnet/roslyn#41640

Expected Behavior

FastUpToDateCheck should know that no documentation file will be in the output and still consider the project up to date when it is missing

Actual Behavior

FastUpToDateCheck always thinks the project is out of date

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