Microsoft.Windows.CsWinRT 2.2.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.

Requires NuGet 2.5 or higher.

dotnet add package Microsoft.Windows.CsWinRT --version 2.2.0
                    
NuGet\Install-Package Microsoft.Windows.CsWinRT -Version 2.2.0
                    
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="Microsoft.Windows.CsWinRT" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Windows.CsWinRT" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Windows.CsWinRT" />
                    
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 Microsoft.Windows.CsWinRT --version 2.2.0
                    
#r "nuget: Microsoft.Windows.CsWinRT, 2.2.0"
                    
#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 Microsoft.Windows.CsWinRT@2.2.0
                    
#: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=Microsoft.Windows.CsWinRT&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Windows.CsWinRT&version=2.2.0
                    
Install as a Cake Tool

C#/WinRT provides packaged WinRT projection support for the C# language. It is compatible with .NET 6 or later, and does not require any built-in knowledge of WinRT by the C# compiler.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.
  • net6.0

    • No dependencies.

NuGet packages (22)

Showing the top 5 NuGet packages that depend on Microsoft.Windows.CsWinRT:

Package Downloads
ReactiveUI.Maui

Contains the ReactiveUI platform specific extensions for Microsoft Maui

ReactiveUI.WinUI

Contains the ReactiveUI platform specific extensions for WinUI Desktop

Microsoft.CommandPalette.Extensions

Command Palette SDK provides support for creating Command Palette extensions on Windows.

Richasy.WinUIKernel.Share

多项目共享的基础 WinUI 实现

WindowsContracts.Net.Foundation.FoundationContract

适用于.Net 5的Windows.Foundation.FoundationContract程序集

GitHub repositories (54)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Windows.CsWinRT:

Repository Stars
microsoft/PowerToys
Microsoft PowerToys is a collection of utilities that help you customize Windows and streamline everyday tasks
files-community/Files
A modern file manager that helps users organize their files and folders.
marticliment/UniGetUI
UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
reactiveui/ReactiveUI
An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
BornToBeRoot/NETworkManager
A powerful tool for managing networks and troubleshoot network problems!
hanmin0822/MisakaTranslator
御坂翻译器—Galgame/文字游戏/漫画多语种实时机翻工具
mono/SkiaSharp
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
DGP-Studio/Snap.Hutao
实用的开源多功能原神工具箱 🧰 / Multifunctional Open-source Genshin Impact Toolkit 🧰
Kinnara/ModernWpf
Modern styles and controls for your WPF applications
MicaForEveryone/MicaForEveryone
Mica For Everyone is a tool to enable backdrop effects on the title bars of Win32 apps on Windows 11.
Richasy/Bili.Copilot
B站第三方 Windows 桌面客户端,使用 Windows App SDK 构建的原生应用
Scighost/Starward
Game Launcher for miHoYo - 米家游戏启动器
CommunityToolkit/dotnet
.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
microsoft/WinUI-Gallery
This app demonstrates the controls available in WinUI and the Fluent Design System.
Sergio0694/ComputeSharp
A .NET library to run C# code in parallel on the GPU through DX12, D2D1, and dynamically generated HLSL compute and pixel shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀
HotCakeX/Harden-Windows-Security
Harden Windows Safely, Securely using Official Supported Microsoft methods and proper explanation | Always up-to-date and works with the latest build of Windows | Provides tools and Guides for Personal, Enterprise, Government and Military security levels
Belphemur/SoundSwitch
C# application to switch default playing device. Download: https://soundswitch.aaflalo.me/
microsoft/AdaptiveCards
A new way for developers to exchange card content in a common and consistent way.
CollapseLauncher/Collapse
An Advanced Launcher for miHoYo/HoYoverse Games
0x5bfa/FluentHub
A stylish yet powerful GitHub client for Windows
Version Downloads Last Updated
2.3.0-prerelease.250720.1 1,540 8/6/2025
2.2.0 126,686 11/12/2024
2.1.6 28,000 10/15/2024
2.1.5 6,054 10/4/2024
2.1.3 6,749 9/10/2024
2.1.1 24,063 8/8/2024
2.1.0-prerelease.240801.1 533 8/2/2024
2.1.0-prerelease.240722.1 926 7/24/2024
2.1.0-prerelease.240602.1 1,615 6/4/2024
2.0.8 12,745 7/11/2024
2.0.7 53,964 2/8/2024
2.0.6 3,157 2/3/2024
2.0.4 74,389 10/17/2023
2.0.3 45,497 6/12/2023
2.0.2 24,468 3/31/2023
2.0.1 35,261 11/16/2022
2.0.0 68,454 8/17/2022
1.6.5 44,695 8/2/2022
1.6.4 38,653 5/28/2022
1.6.3 7,629 4/29/2022
1.6.1 11,974 3/15/2022
1.5.0 8,249 2/8/2022
1.5.0-prerelease.220124.4 1,274 1/25/2022
1.4.1 18,557 11/18/2021
1.4.0-prerelease.211028.1 1,655 11/2/2021
1.3.5 21,176 9/16/2021
1.3.3 13,054 7/25/2021
1.3.1 1,507 7/15/2021
1.3.0 16,484 6/18/2021
1.2.6 4,940 5/13/2021
1.2.5 8,910 4/22/2021
1.2.4 931 4/20/2021
1.2.3 1,216 4/19/2021
1.2.2 2,724 4/13/2021
1.2.1 1,911 4/8/2021
1.2.0 1,909 4/2/2021
1.1.4 2,563 3/17/2021
1.1.3 3,014 2/26/2021
1.1.2 1,359 2/17/2021
1.1.2-prerelease.210208.6 699 2/9/2021
1.1.1 3,106 1/20/2021
1.1.0 24,219 11/25/2020
1.1.0-prerelease.201111.6 688 11/12/2020
1.0.2-prerelease.201103.7 602 11/3/2020
1.0.2-prerelease.201103.4 567 11/3/2020
1.0.2-prerelease.201021.1 851 10/21/2020
1.0.1 17,836 10/20/2020
0.9.0 1,260 10/14/2020
0.8.0 1,320 10/12/2020
0.1.0 2,974 10/6/2020
0.1.0-prerelease.200928.7 1,277 9/29/2020
0.1.0-prerelease.200629.3 12,656 7/2/2020
0.1.0-prerelease.200512.7 21,912 5/13/2020

Release notes are available at https://github.com/microsoft/CsWinRT/releases