PLP-SystemInfo 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package PLP-SystemInfo --version 2.0.0
NuGet\Install-Package PLP-SystemInfo -Version 2.0.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="PLP-SystemInfo" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PLP-SystemInfo --version 2.0.0
#r "nuget: PLP-SystemInfo, 2.0.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.
// Install PLP-SystemInfo as a Cake Addin
#addin nuget:?package=PLP-SystemInfo&version=2.0.0

// Install PLP-SystemInfo as a Cake Tool
#tool nuget:?package=PLP-SystemInfo&version=2.0.0

PLP-SystemInfo

A C# Library for getting several SystemInfos!

PLP-SystemInfo is compatible with the following frameworks:

  • .NET 5 or higher
  • .Net Core 2 - 3.1
  • .Net Standard 2.0 & 2.1
  • .Net Framework 4.6.1 or higher

Dependencies:

  • System.Management
  • System.Win32

Download

PLP-SystemInfo is available as a NuGet Package

Documentation

The package contains in the namespace PLP_SystemInfo two classes for reading system information, SystemInfo and ComponentInfo, these classes contain different methods for reading system information.

PLP_SystemInfo.SystemInfo

The class SystemInfo contains mainly methods to read general system values. Each method has a return value which simplifies the usage.

using PLP_SystemInfo;

string userName = SystemInfo.UserName;
//Retruns the username of the current user

string machineName = SystemInfo.MachineName;
//Retruns the name of the machine.

bool b = SystemInfo.IsDarkModeEnabled;
// Returns a bool value that reflects whether the Windows darkmode is enabled

string s = SystemInfo.GetWindowsAccentColor();
// Returns the Windows accent color as HEX value.

Color c = SystemInfo.GetAccentColor();
// Returns the Windows accent color as a Color value.

PLP_SystemInfo.ComponentInfo.*

The namespace PLP_SystemInfo.ComponentInfo contains different classes to read out the most important PC components. Again, each method has a return value for simple usage.

using PLP_SystemInfo.ComponentInfo;

Board b = BoardInfo.GetMotherboard();
// Returns an object of type **Board** with manufacturer and model.

BIOS bios = BoardInfo.GetBIOSInfo();
// Returns an object of type **BIOS** with manufacturer and version.

string os = OSInfo.GetOperatingSystemInfo();
// Returns a string with OS name and architecture.

ProcessorCollection processors = ProcessorInfo.GetProcessors();
// Returns a collection of type **Processor** containing information such as name, architecture, cores, threads, cache and clock speed.

RamCollection ram = RamInfo.GetRamInfo();
// Returns a collection of type **RAM** containing information for each installed ram module such as manufacturer, frequency, voltage and capacity.

long ram = RamInfo.GetInstalledRAMSize();
// Returns a long value of the installed GB of RAM.

GraphicsCollection graphics = GraphicsInfo.GetGraphicscardInfo();
// Returns a collection of type **GraphicsCard** containing information such as name and driver version.

To get the information from the collections, simply use a foreach loop, e.g:

foreach (var item in ram) //ram is a **RamCollection** from the example above
{
  Console.WriteLine(item.Manufacturer);
}

License

This software is released under the Apache 2.0 license

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.1.0 95 4/20/2024
2.0.0 80 4/19/2024
1.0.2 228 3/9/2023