Skip to content

Commit 095c5ba

Browse files
author
Ivan Matantsev
authored
Enable source link in nuget packages
It was disabled in #262, but instead of been disabled only for OSx it was never set to be true at first place, so it was off for all platforms. Regarding OSx it looks like bug was fixed somewhere around 2019 (dotnet/sourcelink#288)
1 parent 6f0d0e4 commit 095c5ba

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Directory.Build.props

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
<DebugType>Portable</DebugType>
1313
<LangVersion>9.0</LangVersion>
1414
<HighEntropyVA>true</HighEntropyVA>
15-
<EnableSourceLink Condition="$([MSBuild]::IsOSPlatform('osx'))">false</EnableSourceLink>
16-
<EnableSourceControlManagerQueries>$(EnableSourceLink)</EnableSourceControlManagerQueries>
15+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
16+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
17+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
1718
<!--This will target the latest patch release of the runtime released with the current SDK. -->
1819
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
1920
<RuntimePackageVersion>5.0.0</RuntimePackageVersion>
@@ -22,12 +23,6 @@
2223
<Hl7FhirVersion>1.9.0</Hl7FhirVersion>
2324
</PropertyGroup>
2425

25-
<PropertyGroup Condition=" '$(EnableSourceLink)' == 'true' ">
26-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
27-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
28-
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
29-
</PropertyGroup>
30-
3126
<Choose>
3227
<When Condition="$(MSBuildProjectName.Contains('Test'))">
3328
<PropertyGroup>

0 commit comments

Comments
 (0)