Skip to content

Commit

Permalink
No need to reference Microsoft.SourceLink.GitHub for target framework…
Browse files Browse the repository at this point in the history
…s >= .NET 8. In fact, it seems to break sourcelink.
  • Loading branch information
danielcweber committed Dec 18, 2024
1 parent 62eec15 commit e16168b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
<ItemGroup Condition="'$(Configuration)' == 'Release'" >
<None Include="$(PackageLicenseDirectory)$(PackageLicenseFile)" Pack="true" PackagePath="\" />
<None Include="$(MSBuildThisFileDirectory)..\README.md" Pack="true" PackagePath="\" />
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />

<PackageReference Condition="'$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net5.0' or '$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0'" Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit e16168b

Please sign in to comment.