Skip to content

Commit 554b2c7

Browse files
Fix conditions to bin place msquic.dll for Windows builds. (#81492)
Co-authored-by: Marie Píchová <[email protected]>
1 parent 3518cee commit 554b2c7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/libraries/System.Net.Quic/src/System.Net.Quic.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@
143143
<!-- Support for deploying msquic on Windows -->
144144
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows' and
145145
'$(TargetOS)' == 'windows' and
146-
'$(UseQuicTransportPackage)' == 'true' and
147146
'$(DotNetBuildFromSource)' != 'true'">
148147
<BinPlaceDir Include="$(MicrosoftNetCoreAppRuntimePackNativeDir)" ItemName="NativeBinPlaceItem" />
149148
<BinPlaceDir Include="$(NetCoreAppCurrentTestHostSharedFrameworkPath)" ItemName="NativeBinPlaceItem" />

src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,12 @@ public void UnsupportedPlatforms_ThrowsPlatformNotSupportedException()
1919
Assert.ThrowsAsync<PlatformNotSupportedException>(async () => await CreateQuicListener());
2020
Assert.ThrowsAsync<PlatformNotSupportedException>(async () => await CreateQuicConnection(new IPEndPoint(IPAddress.Loopback, 0)));
2121
}
22+
23+
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.SupportsTls13))]
24+
public void SupportedWindowsPlatforms_IsSupportedIsTrue()
25+
{
26+
Assert.True(QuicListener.IsSupported);
27+
Assert.True(QuicConnection.IsSupported);
28+
}
2229
}
2330
}

0 commit comments

Comments
 (0)