Skip to content

Misleading reference to SetSourceRevisionId target #725

@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

docs/README.md claims that the SetSourceRevisionId target sets the SourceRevisionId property:

sourcelink/docs/README.md

Lines 141 to 144 in 4b584db

### SourceRevisionId
Set by target `SetSourceRevisionId` and consumed by NuGet `Pack` target and `GenerateAssemblyInfo` target.
May be used by custom targets that need this information.

However, there is no SetSourceRevisionId target. It seems the SourceRevisionId property is instead set by the InitializeSourceControlInformationFromSourceControlManager target, or without a target:

<Output TaskParameter="RevisionId" PropertyName="SourceRevisionId" Condition="'$(SourceRevisionId)' == ''" />

<Output TaskParameter="RevisionId" PropertyName="SourceRevisionId" />

<SourceRevisionId Condition="'$(SourceRevisionId)' == ''">$(STANDARD_CI_SOURCE_REVISION_ID)</SourceRevisionId>

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