Skip to content

Source root not calculated correctly in AzDo with ArtifactsPath set to Build.ArtifactStagingDirectory #1496

@clairernovotny

Description

@clairernovotny

In an AzDo pipeline, I have a project with UseArtifactOutput set to true and in the build step, it passes -p:ArtifactsPath=$(Build.ArtifactStagingDirectory) to put them in the AzDo arifacts staging dir. The side effect is that some generated files, like the .Version.cs are not properly scrubbed with the right roots and are thus not reproducible.

With the ArtifactsPath being outside the source dir:
Image

Without overridding the ArtifactsPath, the artifacts dir is under the source dir, so is scrubbed correctly.
Image

Tested with .NET 10 SDK RC2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions