Skip to content

Commit d2e4048

Browse files
committed
fix refs
1 parent c9ec0a5 commit d2e4048

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ConsumeMemoryWithNoTask/ConsumeMemoryWithNoTask.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
<TargetFrameworks>netstandard2.0</TargetFrameworks>
66
</PropertyGroup>
77
<ItemGroup>
8-
<!-- This project is specifically designed to guard against a mis-compile where System.Threading.Tasks.Extensions is referenced, but System.Memory is not. -->
9-
<PackageReference Include="System.Threading.Tasks.Extensions" />
8+
<PackageReference Include="System.Memory" Condition="$(TargetFramework) != '.NETStandard' or $(TargetFrameworkIdentifier) == '.NETFramework' or $(TargetFramework.StartsWith('netcoreapp'))" />
109
</ItemGroup>
1110
<Import Project="$(SolutionDir)\Polyfill\Polyfill.targets" />
1211
<Import Project="$(SolutionDir)\TestIncludes.targets" />

src/ConsumeTasksWithNoMemory/ConsumeTasksWithNoMemory.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<TargetFrameworks>netstandard2.0</TargetFrameworks>
66
</PropertyGroup>
77
<ItemGroup>
8-
<PackageReference Include="System.Memory" Condition="$(TargetFramework) != '.NETStandard' or $(TargetFrameworkIdentifier) == '.NETFramework' or $(TargetFramework.StartsWith('netcoreapp'))" />
8+
<PackageReference Include="System.Threading.Tasks.Extensions" />
99
</ItemGroup>
1010
<Import Project="$(SolutionDir)\Polyfill\Polyfill.targets" />
1111
<Import Project="$(SolutionDir)\TestIncludes.targets" />

0 commit comments

Comments
 (0)