Skip to content

Commit

Permalink
Version 10.0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Urban committed Oct 2, 2022
1 parent 1b7f114 commit 400e5a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Hardware.Info/Hardware.Info.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PropertyGroup>
<PackageId>Hardware.Info</PackageId>
<Product>Hardware.Info</Product>
<Version>10.0.1.0</Version>
<Version>10.0.1.1</Version>
<Authors>Jinjinov</Authors>
<Description>Battery, BIOS, CPU - processor, storage drive, keyboard, RAM - memory, monitor, motherboard, mouse, NIC - network adapter, printer, sound card - audio card, graphics card - video card. Hardware.Info is a .NET Standard 2.0 library and uses WMI on Windows, /dev, /proc, /sys on Linux and sysctl, system_profiler on macOS.</Description>
<PackageTags>Computer;Device;Hardware;Info;Information;NET Standard;Windows;Linux;macOS</PackageTags>
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Battery, BIOS, CPU - processor, storage drive, keyboard, RAM - memory, monitor,
1. Include NuGet package from https://www.nuget.org/packages/Hardware.Info

<ItemGroup>
<PackageReference Include="Hardware.Info" Version="10.0.1.0" />
<PackageReference Include="Hardware.Info" Version="10.0.1.1" />
</ItemGroup>

2. Call `RefreshAll()` or one of the other `Refresh*()` methods:
Expand All @@ -18,6 +18,7 @@ Battery, BIOS, CPU - processor, storage drive, keyboard, RAM - memory, monitor,

static void Main(string[] _)
{
//hardwareInfo.RefreshOperatingSystem();
//hardwareInfo.RefreshMemoryStatus();
//hardwareInfo.RefreshBatteryList();
//hardwareInfo.RefreshBIOSList();
Expand All @@ -35,6 +36,8 @@ Battery, BIOS, CPU - processor, storage drive, keyboard, RAM - memory, monitor,

hardwareInfo.RefreshAll();

Console.WriteLine(_hardwareInfo.OperatingSystem);

Console.WriteLine(hardwareInfo.MemoryStatus);

foreach (var hardware in hardwareInfo.BatteryList)
Expand Down Expand Up @@ -180,6 +183,8 @@ Setting `includeNetworkAdapterConfiguration` to `false` has only a small impact

## Version history:

- 10.0.1.1:
- Added `GetOperatingSystem()` in Windows, macOS, Linux - thanks to [@adhip94](https://github.com/adhip94)
- 10.0.1.0:
- Added `GetBatteryList()` in macOS - by [@Tadelsucht](https://github.com/Tadelsucht)
- 10.0.0.1:
Expand Down

0 comments on commit 400e5a3

Please sign in to comment.