ConfigTextFile 1.0.0

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

// Install ConfigTextFile as a Cake Tool
#tool nuget:?package=ConfigTextFile&version=1.0.0

ConfigTextFile

A .NET library which allows you to load plain-text files, which can be used as configuration files.

Examples

Strings, Collections, Comments

Here is a config file with some keys, strings, and string collections, and descriptive comments.

# Syntax is simple
Key=Hello World!

# Keys can have spaces, and so can values. Quotes aren't even required!
Key With Spaces= Hello again, World!

# Strings can span multiple lines, but only if they are quoted. You can use "double quotes", 'single quotes', or `backticks` to quote strings
MultiLine="This is a multiline string
It spans many lines"

# Keys can have the = sign in them if you quote them
"Keys = Can be Quoted" = "And so can the values"

# Quotes work with both Keys and Values! You can use different quotes within strings
'Single"Quoted"Key'=`This string has backticks, so we don't get screwed by "different" quotes`

# Quotes only have an effect if they are the very first thing in the string. You can use all kinds of quotes all you want so long as they're not the first character of the string.
Doesn't Cause Problems=We're using "quotes" `just` fine!

# String Collections are defined as per below. Be careful to not use an equals sign; that will cause it to be interpreted as a string!
"My Array" [StringOne, String two, "String Three", "Multiline
within an array"]

"Interpreted as a string"=[Not Actually, An Array]

Scope

Scopes are defined by {braces}. Using scopes will give the keys a prefix. This can be configured but by default, the separator is a colon.

global{
	# When loaded, this becomes global:ValueOne
	ValueOne = Hello Scope!

	nested{
		# You can nest scope, too. This will become global:nested:ValueTwo
		ValueTwo = Deeper Scope!
	}
}
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 (1)

Showing the top 1 NuGet packages that depend on ConfigTextFile:

Package Downloads
ConfigTextFile.ConfigurationSource

A ConfigTextFile configuration provider for Microsoft.Extensions.Configuration

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.12.0 743 11/15/2021
1.11.4 676 3/23/2021
1.11.3 450 3/17/2021
1.11.2 495 3/9/2021
1.11.1 474 1/9/2021
1.11.0 511 1/8/2021
1.10.0 514 12/22/2020
1.9.1 572 12/6/2020
1.9.0 375 12/2/2020
1.8.3 568 11/18/2020
1.8.2 428 11/9/2020
1.8.1 494 11/9/2020
1.8.0 385 11/5/2020
1.7.1 415 10/3/2020
1.7.0 415 10/1/2020
1.6.2 415 8/27/2020
1.6.1 426 8/26/2020
1.6.0 491 7/29/2020
1.5.0 505 7/28/2020
1.4.0 419 6/26/2020
1.3.0 475 6/6/2020
1.2.0 445 5/21/2020
1.1.0 491 5/4/2020
1.0.0 443 4/21/2020

Initial Release