@@ -27,6 +27,7 @@ public static void SetMsQuicPath(string msquicPath)
2727 }
2828
2929 [ SupportedOSPlatform ( "windows" ) ]
30+ [ SupportedOSPlatform ( "linux" ) ]
3031 public static async Task < string > SendRequestAsync (
3132 bool enableRedirects ,
3233 bool enableCertificateValidation ,
@@ -93,6 +94,7 @@ string body
9394 }
9495
9596 [ SupportedOSPlatform ( "windows" ) ]
97+ [ SupportedOSPlatform ( "linux" ) ]
9698 public static async Task < string > PerfMeasureAsync (
9799 string executionName ,
98100 bool enableRedirects ,
@@ -184,12 +186,16 @@ public static async Task<string> GetDiffAsync(string file1, string file2)
184186
185187
186188 [ SupportedOSPlatform ( "windows" ) ]
189+ [ SupportedOSPlatform ( "linux" ) ]
187190 private static Version ParseHttpVersion ( string version )
188191 {
189192 var parsedVersion = VersionParser . Map ( version ) ;
190193#pragma warning disable CA2252 // This API requires opting into preview features
191194 if ( parsedVersion == HttpVersion . Version30 && ! QuicConnection . IsSupported )
192- throw new InvalidOperationException ( $ "QUIC is not supported or not available in folder { AppContext . BaseDirectory } ") ;
195+ if ( Environment . OSVersion . Platform == PlatformID . Unix )
196+ throw new InvalidOperationException ( $ "QUIC is not supported or not available. Install libmsquic.so from your package registry.") ;
197+ else
198+ throw new InvalidOperationException ( $ "QUIC is not supported or not available in folder { AppContext . BaseDirectory } .") ;
193199#pragma warning restore CA2252 // This API requires opting into preview features
194200 return parsedVersion ;
195201 }
0 commit comments