Skip to content

Commit

Permalink
Fix Microsoft.Bcl.AsyncInterfaces references (dotnet#49716)
Browse files Browse the repository at this point in the history
  • Loading branch information
halter73 authored Aug 1, 2023
1 parent 36ce70a commit c64d745
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Microsoft.Extensions.Diagnostics.HealthChecks.IHealthChecksBuilder
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />

<!-- See: https://github.com/dotnet/aspnetcore/issues/46683 -->
<Reference Include="Microsoft.Bcl.AsyncInterfaces" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
<Reference Include="Microsoft.Bcl.AsyncInterfaces" Condition="'$(TargetFramework)' != '$(DefaultNetCoreTargetFramework)'" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</PropertyGroup>

<ItemGroup>
<Reference Include="Microsoft.Bcl.AsyncInterfaces" Condition="'$(TargetFramework)' != '$(DefaultNetCoreTargetFramework)'" />

<Reference Include="Microsoft.Extensions.Features" />
<Reference Include="System.IO.Pipelines" />

Expand All @@ -24,11 +26,4 @@
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Unshipped.txt" />
</ItemGroup>

<!-- Special case building from source because Microsoft.Bcl.AsyncInterfaces isn't available for source builds. -->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR
'$(TargetFramework)' == '$(DefaultNetFxTargetFramework)' OR
('$(MSBuildRestoreSessionId)' == '' AND '$(DotNetBuildFromSource)' != 'true') ">
<Reference Include="Microsoft.Bcl.AsyncInterfaces" />
</ItemGroup>

</Project>

0 comments on commit c64d745

Please sign in to comment.