-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSourceLink.props
29 lines (26 loc) · 1.38 KB
/
SourceLink.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project>
<!--
SourceLink: Package Properties.
- https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/
-->
<PropertyGroup Condition="'$(EnableSourceLink)' != 'false'">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<!-- SourceLink: Disable Git queries for disabled / incompatible projects. -->
<PropertyGroup Condition="'$(EnableSourceLink)' == 'false'">
<!--
Disables `Microsoft.NET.Sdk.SourceLink.targets` from the .NET 8 SDK:
- https://github.com/dotnet/sdk/blob/b9a2752/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.CrossTargeting.targets#L15
-->
<SuppressImplicitGitSourceLink>true</SuppressImplicitGitSourceLink>
<!--
Disables the `_InitializeSourceControlInformationFromSourceControlManager`
and `_SetEmbeddedFilesFromSourceControlManagerUntrackedFiles` targets from
the SourceLink.Common SDK, disallowing Git queries on disabled projects:
- https://github.com/dotnet/sourcelink/blob/14a0a42/src/SourceLink.Common/build/InitializeSourceControlInformation.targets#L26
- https://github.com/dotnet/sourcelink/blob/14a0a42/src/SourceLink.Common/build/Microsoft.SourceLink.Common.targets#L24
-->
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
</PropertyGroup>
</Project>