Description
The Source Link build tooling is included in the .NET SDK as of .NET SDK 8.0.100-preview.4, which enables packages and applications to embed information about the source control information of the built artifacts. As a side effect, by default commit information will be included in the InformationalVersion of build libraries and applications.
Version
.NET 8 Preview 6
Previous behavior
Prior to this change, the default InformationalVersion of a library or application would be the Version property.
New behavior
After this change, the default InformationalVersion of a library or application would be the Version property as well as the SourceRevisionId property.
Type of breaking change
Reason for change
Source Link enables very rich editor tooling, like go-to-definition support for non-local source files. We think this benefit is worth including by default for all artifacts.
Recommended action
If your build process or code is not expecting Source Revision information in the InformationalVersion, you can disable this behavior by setting the IncludeSourceRevisionInInformationalVersion property to false.
Feature area
SDK
Affected APIs
No response
Associated WorkItem - 177280
Description
The Source Link build tooling is included in the .NET SDK as of .NET SDK 8.0.100-preview.4, which enables packages and applications to embed information about the source control information of the built artifacts. As a side effect, by default commit information will be included in the InformationalVersion of build libraries and applications.
Version
.NET 8 Preview 6
Previous behavior
Prior to this change, the default
InformationalVersionof a library or application would be theVersionproperty.New behavior
After this change, the default
InformationalVersionof a library or application would be theVersionproperty as well as theSourceRevisionIdproperty.Type of breaking change
Reason for change
Source Link enables very rich editor tooling, like go-to-definition support for non-local source files. We think this benefit is worth including by default for all artifacts.
Recommended action
If your build process or code is not expecting Source Revision information in the InformationalVersion, you can disable this behavior by setting the
IncludeSourceRevisionInInformationalVersionproperty tofalse.Feature area
SDK
Affected APIs
No response
Associated WorkItem - 177280