InfHelper 0.12.1

dotnet add package InfHelper --version 0.12.1
NuGet\Install-Package InfHelper -Version 0.12.1
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="InfHelper" Version="0.12.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add InfHelper --version 0.12.1
#r "nuget: InfHelper, 0.12.1"
#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 InfHelper as a Cake Addin
#addin nuget:?package=InfHelper&version=0.12.1

// Install InfHelper as a Cake Tool
#tool nuget:?package=InfHelper&version=0.12.1

InfHelper

License NuGet

  • Nuget package for C# that makes it easy to parse .inf files, to store and work with information about system drivers.
  • This NuGet Package allows you to parse .inf files and browse them using object model wrappers (using the InfData class). You can browse categories and their keys by handling them as collections or simply using [id] operators. Currently, this package does not support installing drivers from inf files, only parsing and browsing through the file. The feature for creating an INF file will be added in later versions.

How to use

Init parsing

var helper = new InfUtil();
var data = helper.ParseFile(path);

Getting data

//obtain category by id
var version = data["Version"];

//get keys from the category
var providerKey = version["Provider"];
var classGuidKey = version["ClassGuid"];

//obtain key directely
var key = data["Strings"]["KeyId"];


// get list of vaues separated by comma
var values = key.KeyValues;

//get value
var value = values[0].Value;

if(value.IsDynamic){
//the key value refers to another key
}

//you can also ignore all wrappers and just get the primitive value (string)
var value = key.PrimitiveValue;

Custom driver info serialization

public class DriverInfo
    {
        [InfKeyValue("Version","Class")]
        public string Class { get; set; }
        [InfKeyValue("Version", "Provider")]
        public string Provider { get; set; }
    }

    // ....

    var helper = new InfUtil();
    var serilized = helper.SerializeFileInto<DriverInfo>(Path.Combine(testFolder, 
    "oem100.inf" out InfData data);
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.
  • .NETStandard 2.0

    • No dependencies.

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
0.12.1 214 1/25/2024
0.11.3 155 12/26/2023
0.11.2 97 12/26/2023
0.11.1 104 12/23/2023
0.10.1 110 12/4/2023
0.9.1 117 9/17/2023
0.8.1 189 7/24/2023
0.7.1 300 1/11/2023
0.6.6 30,863 9/10/2017
0.6.5 859 9/5/2017
0.6.0 861 9/5/2017
0.5.4 858 8/30/2017
0.5.3 873 8/29/2017
0.5.2 880 8/29/2017
0.5.1 947 8/28/2017
0.5.0 902 8/28/2017

This is a beta version, some features were not yet implemented or tested.
     Added case insensitivity.
     Can search key id across all categories.
     Can serialize driver information into custom model, using custom Attribute.
     Can dereference simple dynamic value keys while serializing.