Skip to content

Commit

Permalink
Don't reference M.Bcl.AsyncInterfaces on netstandard2.1
Browse files Browse the repository at this point in the history
Microsoft.Bcl.AsyncInterfaces provides API that is already inbox on netstandard2.1. Don't reference the package for that framework to reduce the dependency graph.
  • Loading branch information
ViktorHofer authored Jan 3, 2024
1 parent 3ec3e25 commit 6f2e201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nerdbank.Streams/Nerdbank.Streams.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="all" />
<PackageReference Include="Microsoft.VisualStudio.Threading" PrivateAssets="build;analyzers;compile" />
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" PrivateAssets="all" />
Expand Down

0 comments on commit 6f2e201

Please sign in to comment.