ConfigTextFile 1.0.0
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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 | 813 | 11/15/2021 | |
1.11.4 | 717 | 3/23/2021 | |
1.11.3 | 475 | 3/17/2021 | |
1.11.2 | 528 | 3/9/2021 | |
1.11.1 | 506 | 1/9/2021 | |
1.11.0 | 545 | 1/8/2021 | |
1.10.0 | 558 | 12/22/2020 | |
1.9.1 | 613 | 12/6/2020 | |
1.9.0 | 398 | 12/2/2020 | |
1.8.3 | 610 | 11/18/2020 | |
1.8.2 | 452 | 11/9/2020 | |
1.8.1 | 525 | 11/9/2020 | |
1.8.0 | 409 | 11/5/2020 | |
1.7.1 | 445 | 10/3/2020 | |
1.7.0 | 440 | 10/1/2020 | |
1.6.2 | 440 | 8/27/2020 | |
1.6.1 | 452 | 8/26/2020 | |
1.6.0 | 516 | 7/29/2020 | |
1.5.0 | 533 | 7/28/2020 | |
1.4.0 | 446 | 6/26/2020 | |
1.3.0 | 503 | 6/6/2020 | |
1.2.0 | 471 | 5/21/2020 | |
1.1.0 | 518 | 5/4/2020 | |
1.0.0 | 468 | 4/21/2020 |
Initial Release