dotnet / dotnet/sourcelink

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

Open
#1,496 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.