Skip to content

Commit

Permalink
Enable source link in nuget packages
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Ivan Matantsev committed Feb 18, 2021
1 parent 6f0d0e4 commit 095c5ba
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Directory.Build.props
Expand Up @@ -12,8 +12,9 @@
<DebugType>Portable</DebugType>
<LangVersion>9.0</LangVersion>
<HighEntropyVA>true</HighEntropyVA>
<EnableSourceLink Condition="$([MSBuild]::IsOSPlatform('osx'))">false</EnableSourceLink>
<EnableSourceControlManagerQueries>$(EnableSourceLink)</EnableSourceControlManagerQueries>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<!--This will target the latest patch release of the runtime released with the current SDK. -->
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<RuntimePackageVersion>5.0.0</RuntimePackageVersion>
Expand All @@ -22,12 +23,6 @@
<Hl7FhirVersion>1.9.0</Hl7FhirVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(EnableSourceLink)' == 'true' ">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<Choose>
<When Condition="$(MSBuildProjectName.Contains('Test'))">
<PropertyGroup>
Expand Down

0 comments on commit 095c5ba

Please sign in to comment.