Microsoft.Windows.Compatibility 9.0.3

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Windows.Compatibility --version 9.0.3
                    
NuGet\Install-Package Microsoft.Windows.Compatibility -Version 9.0.3
                    
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.Compatibility" Version="9.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Windows.Compatibility" Version="9.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Windows.Compatibility" />
                    
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.Compatibility --version 9.0.3
                    
#r "nuget: Microsoft.Windows.Compatibility, 9.0.3"
                    
#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.
#addin nuget:?package=Microsoft.Windows.Compatibility&version=9.0.3
                    
Install Microsoft.Windows.Compatibility as a Cake Addin
#tool nuget:?package=Microsoft.Windows.Compatibility&version=9.0.3
                    
Install Microsoft.Windows.Compatibility as a Cake Tool

Microsoft.Windows.Compatibility

The Microsoft.Windows.Compatibility package provides Windows-specific APIs to help you port your .NET Framework applications to .NET Core 2.0+, .NET 5+ or .NET Standard. This package offers a smoother transition for those looking to modernize their applications without losing access to familiar Windows functionalities.

Getting Started

To start using the Microsoft.Windows.Compatibility package, you'll first need to install it via NuGet Package Manager, Package Manager Console, or by editing your project file.

Usage

After installing the package, you can access Windows-specific APIs just like you would in a .NET Framework application. Below are some examples in both C# and VB:

Writing to the Windows Registry

C#
using Microsoft.Win32;

class Program
{
    static void Main()
    {
        using (RegistryKey key = Registry.CurrentUser.CreateSubKey("Software\\MyApp"))
        {
            key.SetValue("MySetting", "MyValue");
        }
    }
}
VB
Imports Microsoft.Win32

Module Program
    Sub Main()
        Using key As RegistryKey = Registry.CurrentUser.CreateSubKey("Software\MyApp")
            key.SetValue("MySetting", "MyValue")
        End Using
    End Sub
End Module

Using the Serial Port

C#
using System.IO.Ports;

class Program
{
    static void Main()
    {
        using (SerialPort port = new SerialPort("COM1", 9600))
        {
            port.Open();
            port.WriteLine("Hello, world!");
        }
    }
}
VB
Imports System.IO.Ports

Module Program
    Sub Main()
        Using port As New SerialPort("COM1", 9600)
            port.Open()
            port.WriteLine("Hello, world!")
        End Using
    End Sub
End Module

Additional Documentation

For more in-depth tutorials and API references, you can check the following resources:

Feedback

We value your feedback! Here are ways to get in touch with us:

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (216)

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

Package Downloads
Microsoft.PowerShell.SDK

Runtime for hosting PowerShell

Microsoft.PowerPlatform.ResourceStack

The Resource stack storage client libraries

BoldReports.Net.Core

Syncfusion Bold Reports for ASP.NET Core is a server-side helper package used to build ASP.NET Core Web API services. Key features: • Users can interactively provide report parameter inputs at run time to display reports based on the parameter. • SQL Server RDL specification expressions are supported. • Built-in SQL Query designer with a convenient user interface to create and view relationships between tables easily. • A rich selection of built-in report items, including charts, grids, pivot grids, subreports, textboxes, images, lines, and rectangles for better visual representation of data. • Report viewer supports multilevel grouping and sorting in data regions of report items such as tablixes, matrices and lists. • Interactive features in RDL specification like drill through, hyperlink, and interactive sorting to work with report at runtime. • Preview the report in print layout prior to printing. Page settings can be modified using page setup dialog. • All static texts within the report viewer and report designer can be localized to any desired language. • Displayed reports can be exported to popular file formats: PDF, Word, Excel, and HTML. Learn more: https://www.boldreports.com/features?utm_source=nuget&utm_medium=listing Documentation: https://help.boldreports.com/embedded-reporting/aspnet-core-reporting?utm_source=nuget&utm_medium=listing Support Questions: mailto:support@boldreports.com?utm_source=nuget&utm_medium=listing This is a commercial product and requires a paid subscription license for possession or use. Syncfusion’s Bold Reports services, including this component, is subject to the terms and conditions of Syncfusion's Bold Reports Software License Agreement and Terms of Service (https://www.boldreports.com/terms-of-use/?utm_source=nuget&utm_medium=listing). To acquire a license, you can start a subscription or start a free 15-day trial here (https://www.boldreports.com/pricing/?utm_source=nuget&utm_medium=listing). This server-side helper package provides services to the following components and libraries: • ASP.NET Core Report Viewer: https://www.boldreports.com/embedded-reporting/aspnet-core-report-viewer?utm_source=nuget&utm_medium=listing • ASP.NET Core Report Designer: https://www.boldreports.com/embedded-reporting/aspnet-core-report-designer?utm_source=nuget&utm_medium=listing • ASP.NET Core Report Writer: https://www.boldreports.com/embedded-reporting/aspnet-core-report-writer?utm_source=nuget&utm_medium=listing • Blazor Report Viewer: https://www.boldreports.com/embedded-reporting/blazor-report-viewer?utm_source=nuget&utm_medium=listing • Blazor Report Designer: https://www.boldreports.com/embedded-reporting/blazor-report-designer?utm_source=nuget&utm_medium=listing • Angular Report Viewer: https://www.boldreports.com/embedded-reporting/angular-report-viewer?utm_source=nuget&utm_medium=listing • Angular Report Designer: https://www.boldreports.com/embedded-reporting/angular-report-designer?utm_source=nuget&utm_medium=listing • JavaScript Report Viewer: https://www.boldreports.com/embedded-reporting/javascript-report-viewer?utm_source=nuget&utm_medium=listing • JavaScript Report Designer: https://www.boldreports.com/embedded-reporting/javascript-report-designer?utm_source=nuget&utm_medium=listing © Copyright 2025 Syncfusion, Inc. All Rights Reserved. The Syncfusion Bold Reports license and copyright applies to this distribution.

Alachisoft.NCache.SDK

This NCache SDK NuGet package is a complete package for using NCache Enterprise from .NET Framework and .NET Core applications.

Walter.Web.FireWall.EventLog

Reporting interface for the firewall and the windows to support structured logging to the windows EventLog. The Package extends the reporting functionality to NuGet package Walter.Web.Firewall and is easily activated by dependency injection during service configuration services.AddFireWall(FireWallTrial.License, FireWallTrial.DomainKey , domainName: new Uri("https://www.your-domain.com", UriKind.Absolute) , options => { //your firewall settings }).UseEventLogLogging(options=>{ options.LogName = "FireWall"; options.SourceName = "www.your-domain.com"; }); More information on how to use this Add-On is available in this manual https://www.asp-waf.com/download/ASP-WAF-FireWall-Getting-Started.pdf

GitHub repositories (88)

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

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
PowerShell/PowerShell
PowerShell for every system!
NickeManarin/ScreenToGif
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
subhra74/xdm
Powerfull download accelerator and video downloader
PrismLibrary/Prism
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
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.
dotnet/samples
Sample code referenced by the .NET documentation
RoundedTB/RoundedTB
Add margins, rounded corners and segments to your taskbars!
cairoshell/cairoshell
Cairo is a customizable, intuitive desktop environment for Windows.
microsoft/AttackSurfaceAnalyzer
Attack Surface Analyzer can help you analyze your operating system's security configuration for changes during software installation.
NuGetPackageExplorer/NuGetPackageExplorer
Create, update and deploy Nuget Packages with a GUI
thepirat000/Audit.NET
An extensible framework to audit executing operations in .NET and .NET Core.
shaked6540/YoutubePlaylistDownloader
A tool to download whole playlists, channels or single videos from youtube and also optionally convert them to almost any format you would like
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
zsh2401/AutumnBox
图形化ADB工具箱
SteamAutoCracks/Steam-auto-crack
Steam Game Automatic Cracker
MCCTeam/Minecraft-Console-Client
Lightweight console for Minecraft chat and automated scripts
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
microsoft/OpenAPI.NET
The OpenAPI.NET SDK contains a useful object model for OpenAPI documents in .NET along with common serializers to extract raw OpenAPI JSON and YAML documents from the model.
Version Downloads Last updated
10.0.0-preview.2.25163.3 1,817 22 days ago
10.0.0-preview.1.25080.4 1,067 2 months ago
9.0.4 556 a day ago
9.0.3 30,364 a month ago
9.0.2 52,479 2 months ago
9.0.1 181,095 3 months ago
9.0.0 182,991 5 months ago
9.0.0-rc.2.24474.4 20,497 6 months ago
9.0.0-rc.1.24452.1 7,991 7 months ago
9.0.0-preview.7.24405.2 5,712 8 months ago
9.0.0-preview.6.24327.6 11,414 9 months ago
9.0.0-preview.5.24306.8 4,995 10 months ago
9.0.0-preview.4.24267.11 2,591 5/21/2024
9.0.0-preview.3.24175.3 7,412 4/11/2024
9.0.0-preview.2.24128.10 811 3/12/2024
9.0.0-preview.1.24081.3 20,058 2/13/2024
8.0.15 370 a day ago
8.0.14 15,961 a month ago
8.0.13 19,158 2 months ago
8.0.12 127,882 3 months ago
8.0.11 163,509 5 months ago
8.0.10 870,318 6 months ago
8.0.8 629,931 8 months ago
8.0.7 305,703 9 months ago
8.0.6 398,987 5/28/2024
8.0.5 73,498 5/14/2024
8.0.4 579,195 4/9/2024
8.0.3 228,480 3/12/2024
8.0.2 216,852 2/13/2024
8.0.1 810,008 1/9/2024
8.0.0 1,620,171 11/14/2023
8.0.0-rc.2.23479.10 12,071 10/10/2023
8.0.0-rc.1.23420.5 8,736 9/12/2023
8.0.0-preview.7.23376.1 9,592 8/8/2023
8.0.0-preview.6.23329.4 909 7/11/2023
8.0.0-preview.5.23302.2 921 6/13/2023
8.0.0-preview.4.23260.1 10,109 5/16/2023
8.0.0-preview.3.23174.8 19,751 4/11/2023
8.0.0-preview.2.23128.3 3,011 3/14/2023
8.0.0-preview.1.23110.8 8,198 2/21/2023
7.0.6 59,486 3/12/2024
7.0.5 1,001,734 9/12/2023
7.0.4 778,521 6/22/2023
7.0.3 301,752 6/13/2023
7.0.1 443,611 4/11/2023 7.0.1 has at least one vulnerability with high severity.
7.0.0 1,667,528 11/7/2022 7.0.0 has at least one vulnerability with high severity.
7.0.0-rc.2.22472.3 9,138 10/11/2022
7.0.0-rc.1.22426.10 62,525 9/14/2022
7.0.0-preview.7.22375.6 10,469 8/9/2022
7.0.0-preview.6.22324.4 1,125 7/12/2022
7.0.0-preview.5.22301.12 1,242 6/14/2022
7.0.0-preview.4.22229.4 10,847 5/10/2022
7.0.0-preview.3.22175.4 2,497 4/13/2022
7.0.0-preview.2.22152.2 11,740 3/14/2022
7.0.0-preview.1.22076.8 2,209 2/17/2022
6.0.9 18,011 5 months ago
6.0.8 274,395 3/12/2024
6.0.7 1,338,943 6/22/2023
6.0.6 699,827 6/13/2023
6.0.4 103,132 4/11/2023 6.0.4 has at least one vulnerability with high severity.
6.0.3 250,537 2/14/2023 6.0.3 has at least one vulnerability with high severity.
6.0.2 228,617 12/13/2022 6.0.2 has at least one vulnerability with high severity.
6.0.1 487,746 10/27/2022 6.0.1 has at least one vulnerability with high severity.
6.0.0 8,206,862 11/8/2021 6.0.0 has at least one vulnerability with high severity.
6.0.0-rc.2.21480.5 4,493 10/12/2021
6.0.0-rc.1.21451.13 7,895 9/14/2021
6.0.0-preview.7.21377.19 2,679 8/10/2021
6.0.0-preview.6.21352.13 1,617 7/21/2021
6.0.0-preview.5.21301.5 5,501 6/15/2021
6.0.0-preview.4.21253.7 20,737 5/24/2021
6.0.0-preview.3.21201.4 7,629 4/8/2021
6.0.0-preview.2.21154.6 8,121 3/11/2021
6.0.0-preview.1.21102.12 2,393 2/12/2021
5.0.2 4,146,733 2/9/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 1,242,205 1/12/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 18,468,714 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 9,384 10/13/2020
5.0.0-rc.1.20451.14 4,425 9/14/2020
5.0.0-preview.8.20407.11 9,363 8/25/2020
5.0.0-preview.7.20364.11 18,702 7/21/2020
5.0.0-preview.6.20305.6 3,518 6/25/2020
5.0.0-preview.5.20278.1 4,149 6/10/2020
5.0.0-preview.4.20251.6 7,858 5/18/2020
5.0.0-preview.3.20214.6 33,012 4/23/2020
5.0.0-preview.2.20160.6 849 4/2/2020
5.0.0-preview.1.20120.5 891 3/16/2020
3.1.5 21,901 1/9/2024
3.1.4 28,026 12/13/2022
3.1.2 419,015 9/14/2021
3.1.1 2,619,923 8/11/2020
3.1.0 4,369,123 12/3/2019
3.1.0-preview3.19551.4 1,202 11/13/2019
3.1.0-preview2.19523.17 14,700 11/1/2019
3.1.0-preview1.19504.10 9,879 10/15/2019
3.0.1 101,045 11/18/2019
3.0.0 959,229 9/23/2019
3.0.0-rc1.19456.4 4,957 9/16/2019
3.0.0-preview9.19421.4 2,779 9/4/2019
3.0.0-preview9.19416.11 639 9/4/2019
3.0.0-preview8.19405.3 5,669 8/13/2019
3.0.0-preview7.19362.9 7,647 7/23/2019
3.0.0-preview6.19303.8 36,643 6/12/2019
3.0.0-preview6.19264.9 640 9/4/2019
3.0.0-preview5.19224.8 25,125 5/6/2019
3.0.0-preview4.19212.13 1,807 4/18/2019
2.1.1 1,559,403 5/14/2019 2.1.1 is deprecated because it is no longer maintained.
2.1.0-preview3.19128.7 7,471 3/6/2019
2.1.0-preview.19073.11 14,342 1/29/2019
2.1.0-preview.18571.3 13,762 12/3/2018
2.0.1 6,687,950 8/21/2018
2.0.0 1,496,583 5/29/2018
2.0.0-rc1 45,439 5/6/2018
2.0.0-preview2-26406-04 17,410 4/10/2018
2.0.0-preview1-26216-02 25,689 2/26/2018
2.0.0-preview1-25914-04 294,067 11/15/2017