Skip to content

Commit

Permalink
Enable source link in nuget packages (#1678)
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 19, 2021
1 parent 28d9962 commit b1a14a6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Directory.Build.props
Expand Up @@ -2,8 +2,7 @@

<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Product>Microsoft Health</Product>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Product>Microsoft FHIR Server for Azure</Product>
<RepositoryUrl>https://github.com/microsoft/fhir-server/</RepositoryUrl>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors />
Expand All @@ -12,8 +11,13 @@
<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>
<Authors>Microsot Health Team</Authors>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<Company>Microsoft Corporation</Company>
<Copyright>Copyright © Microsoft Corporation. All rights reserved.</Copyright>
<Deterministic>true</Deterministic>
<!--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 +26,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 b1a14a6

Please sign in to comment.