Environs 2.0.25
See the version list below for details.
dotnet add package Environs --version 2.0.25
NuGet\Install-Package Environs -Version 2.0.25
<PackageReference Include="Environs" Version="2.0.25" />
paket add Environs --version 2.0.25
#r "nuget: Environs, 2.0.25"
// Install Environs as a Cake Addin #addin nuget:?package=Environs&version=2.0.25 // Install Environs as a Cake Tool #tool nuget:?package=Environs&version=2.0.25
Environs
Environs is a small C# library that provides a simplified interface for working with Windows Management Instrumentation (WMI), Lightweight Directory Access Protocol (LDAP), and related functionality. It aims to make it easier to perform common operations and tasks in these areas without the need for extensive knowledge of the underlying protocols and APIs.
Features
- WMI: Simplifies querying and managing WMI classes, objects, and properties.
- LDAP: Provides an intuitive interface for interacting with LDAP directories, searching for entries, and performing CRUD operations.
- System Helper Classes Provides a simple to use class to manage printers, discovering IP addresses, and application discovery.
Installation
The library can be installed via NuGet Package Manager or by manually including the DLL in your project.
NuGet Package Manager
- Open the Console.
- Run the following command:
dotnet add package Environs
Usage
Below are some examples of how to use the Environs library in your C# code:
// Example of using the Environment class to query WMI for printers on the local machine
// using impersonation
var ExampleObject = new Environment(options: new AuthenticationOptions { Impersonate = true });
// Call the Execute method to get the results of the query
IEnumerable<dynamic> Results = ExampleObject.Execute(CommonClasses.Printers, "root\\cimv2");
// Iterate through the results and print them to the console
foreach (dynamic Result in Results)
{
Console.WriteLine(Result.Name);
}
Contributing
Contributions are welcome! If you find a bug, have a feature request, or want to contribute code, please open an issue or submit a pull request. Make sure to follow the guidelines outlined in the CONTRIBUTING file.
License
This library is licensed under the Apache 2 License.
Product | Versions 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 was computed. 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. |
-
net6.0
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Windows.Compatibility (>= 8.0.8)
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.0.27 | 71 | 10/29/2024 |
2.0.26 | 75 | 10/9/2024 |
2.0.25 | 133 | 8/14/2024 |
2.0.24 | 95 | 7/10/2024 |
2.0.23 | 101 | 6/17/2024 |
2.0.22 | 96 | 5/29/2024 |
2.0.21 | 90 | 5/14/2024 |
2.0.20 | 96 | 5/6/2024 |
2.0.19 | 86 | 5/1/2024 |
2.0.18 | 110 | 4/29/2024 |
2.0.17 | 114 | 4/10/2024 |
2.0.16 | 121 | 3/13/2024 |
2.0.15 | 122 | 3/4/2024 |
2.0.14 | 126 | 2/14/2024 |
2.0.13 | 149 | 1/10/2024 |
2.0.12 | 191 | 11/16/2023 |
2.0.11 | 121 | 11/6/2023 |
2.0.10 | 124 | 10/30/2023 |
2.0.9 | 134 | 9/18/2023 |
2.0.8 | 163 | 9/13/2023 |
2.0.7 | 141 | 9/4/2023 |
2.0.6 | 159 | 8/30/2023 |
2.0.5 | 155 | 8/28/2023 |
2.0.4 | 162 | 8/7/2023 |
2.0.3 | 184 | 7/9/2023 |
2.0.1 | 311 | 12/12/2022 |
1.0.24 | 437 | 6/6/2022 |
1.0.23 | 460 | 1/11/2022 |
1.0.22 | 431 | 1/6/2021 |
1.0.19 | 559 | 9/13/2020 |
1.0.18 | 532 | 12/23/2019 |
1.0.15 | 756 | 11/6/2018 |
1.0.14 | 953 | 5/22/2018 |
1.0.13 | 969 | 1/11/2018 |
1.0.11 | 955 | 8/18/2017 |