CodeFoxtrot.WindowsHelpers
1.0.7
dotnet add package CodeFoxtrot.WindowsHelpers --version 1.0.7
NuGet\Install-Package CodeFoxtrot.WindowsHelpers -Version 1.0.7
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="CodeFoxtrot.WindowsHelpers" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeFoxtrot.WindowsHelpers" Version="1.0.7" />
<PackageReference Include="CodeFoxtrot.WindowsHelpers" />
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 CodeFoxtrot.WindowsHelpers --version 1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeFoxtrot.WindowsHelpers, 1.0.7"
#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 CodeFoxtrot.WindowsHelpers@1.0.7
#: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=CodeFoxtrot.WindowsHelpers&version=1.0.7
#tool nuget:?package=CodeFoxtrot.WindowsHelpers&version=1.0.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WindowsHelpers
Useful set of helper methods for C# in the Microsoft Windows environment.
Installation
dotnet add package CodeFoxtrot.WindowsHelpers
Features
- Registry, Services, Processes, and Privileges
- File System, Hosts file, and Page file management
- Network adapters and WMI queries
- Native P/Invoke wrappers and unsafe helpers
- Group Policy support (
LocalPolicyLibrary)
Quick Example
using WindowsLibrary;
var winHelper = new WindowsHelper(logger, registryHelper);
winHelper.RebootSystem(delaySeconds: 30, comment: "Scheduled maintenance");
Target Frameworks
- .NET 8.0 / 9.0 / 10.0 (Windows)
License
MIT © CodeFoxtrot
Repository: https://github.com/CodeFontana/WindowsHelpers-Net-Core
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- CodeFoxtrot.FileLogger (>= 1.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- System.DirectoryServices.AccountManagement (>= 10.0.7)
- System.IO.FileSystem.AccessControl (>= 5.0.0)
- System.Management (>= 10.0.7)
- System.ServiceProcess.ServiceController (>= 10.0.7)
-
net8.0-windows7.0
- CodeFoxtrot.FileLogger (>= 1.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- System.DirectoryServices.AccountManagement (>= 9.0.4)
- System.Management (>= 9.0.4)
- System.ServiceProcess.ServiceController (>= 10.0.7)
-
net9.0-windows7.0
- CodeFoxtrot.FileLogger (>= 1.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.15)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.15)
- System.DirectoryServices.AccountManagement (>= 9.0.4)
- System.Management (>= 9.0.4)
- System.ServiceProcess.ServiceController (>= 10.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.