Proxfield.Text.Ini 1.0.0

dotnet add package Proxfield.Text.Ini --version 1.0.0
                    
NuGet\Install-Package Proxfield.Text.Ini -Version 1.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="Proxfield.Text.Ini" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Proxfield.Text.Ini" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Proxfield.Text.Ini" />
                    
Project file
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 Proxfield.Text.Ini --version 1.0.0
                    
#r "nuget: Proxfield.Text.Ini, 1.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.
#:package Proxfield.Text.Ini@1.0.0
                    
#: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=Proxfield.Text.Ini&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Proxfield.Text.Ini&version=1.0.0
                    
Install as a Cake Tool

The Ini/Config/Conf reader library is a lightweight .ini file parser for DotNet.

GitHub License Nuget version Actions Nuget GitHub branch checks state GitHub code size in bytes NuGet Downloads

Nuget

PM> Install-Package Proxfield.Text.Ini

Visit out project at the Nuget Repository Page to know more.

How

The Ini files are commom type of document used to store key par values into section, it has wide adoption on confguration files, such as the example:

; this is just a comentary
[owner]
name = John Doe
organization = Acme Widgets Inc.

On the case above, the owner is a section. A section is composed of one or more key-par value, in this case name and organization.

Complex objects are handled in a tree format way, everytime a section (or object) has inside of it another section (object) it is displayed as object.propertyObject format.

var user = new User(){
    Email = "jose@outlook.com",
    Password = "1234",
    Name = "Jose",
    UserName = "jose",
    Address = new Address()
    {
        City = "Sao Paulo",
        State = "Sao Paulo",
        Street = "St 10"
    }
}

We can see that the Address object becames the section User.Address, because it is inside the object User.

[User]
UserId=cd1093f4-395d-460a-b66c-0b62af0e3d17
Name=Jose
Email=jose@outlook.com
Password=1234
UserName=jose
[User.Address]
Street=St 10
City=Sao Paulo
State=Sao Paulo

Usage

Serializing object:

string iniContent = IniSerializer.SerializeObject<User>(user);

Deserializing object:

var user = IniSerializer.DeserializeObject<User>(iniContent);

Platform Support

Porxfield.Text.Ini is compiled for DotNet 6, soon there will versions available for other plataforms.

  • DotNet 6
  • DotNet 5

License

The MIT License (MIT)

Copyright (c) 2022 Proxfield

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net5.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
1.0.0 594 9/23/2022
0.1.3 501 8/1/2022
0.1.2 505 7/25/2022
0.1.1 485 7/25/2022
0.1.0 488 7/25/2022