Unofficial.MsQuic 2.4.10

dotnet add package Unofficial.MsQuic --version 2.4.10
                    
NuGet\Install-Package Unofficial.MsQuic -Version 2.4.10
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Unofficial.MsQuic" Version="2.4.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unofficial.MsQuic" Version="2.4.10" />
                    
Directory.Packages.props
<PackageReference Include="Unofficial.MsQuic" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unofficial.MsQuic --version 2.4.10
                    
#r "nuget: Unofficial.MsQuic, 2.4.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Unofficial.MsQuic@2.4.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unofficial.MsQuic&version=2.4.10
                    
Install as a Cake Addin
#tool nuget:?package=Unofficial.MsQuic&version=2.4.10
                    
Install as a Cake Tool

MsQuic

NuGet Version NuGet Downloads

MsQuic is Microsoft implementation of Quic porotocol. The library version shipped with dotnet runtime only works on windows 11. Fortunately they compile it for Windows 10 and Linux, but there is no official nuget package for it.

Usage

  1. Install the package

    dotnet add package Unofficial.MsQuic
    
  2. Patch library loading method to use msquic.dll from this package

    Unofficial.MsQuic.HarmonyMsQuicLoadFix.Apply(Console.WriteLine);
    

    Explanation: System.Net.Quic loads msquic.dll from dotnet sdk installation directory, which is compatible only with windows 11. The only way to load custom msquic.dll is to patch NativeLib.TryLoad to replace library path. Maybe in dotnet 10 it will be fixed (see pull request #103351).

Build

  1. Download latest release from MsQuic repository
    • msquic_windows_x64_Release_openssl.zip
    • msquic_linux_x64_Release_openssl.zip
    • msquic_linux_arm64_Release_openssl.zip
  2. Extract
    • msquic_windows_x64_Release_openssl.zip/bin/msquic.dllruntimes/win-x64/native/msquic.dll
    • msquic_linux_x64_Release_openssl.zip/bin/libmsquic.so.*runtimes/linux-x64/native/libmsquic.so
    • msquic_linux_arm_Release_openssl.zip/bin/libmsquic.so.*runtimes/linux-arm64/native/libmsquic.so
  3. dotnet pack -o bin
    
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.4.10 271 5/9/2025
2.4.6 277 10/21/2024
2.4.5 201 10/21/2024