Skip to content

Commit

Permalink
Merge pull request #7371 from AvaloniaUI/fixes/disable-source-link-fo…
Browse files Browse the repository at this point in the history
…r-non-ci-builds

Only use DebugType=embedded for CI builds
  • Loading branch information
danwalmsley authored Jan 16, 2022
2 parents 936882a + adf88e7 commit 1468b35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/SourceLink.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>false</IncludeSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

Expand All @@ -15,6 +14,10 @@
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<PropertyGroup>
<DebugType Condition="$(ContinuousIntegrationBuild) == 'true'">embedded</DebugType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
Expand Down

0 comments on commit 1468b35

Please sign in to comment.