Brogdogg.Configuration.Xml 1.1.0

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

Brogdogg.Configuration.Xml

Overview

This project provides an extension library for use with IConfigurationBuilder, providing a writable XML configuration source/provider.

It extends the XmlConfigurationSource and XmlConfigurationProvider defined in the Microsoft.Extensions.Configuration.Xml library.

Due to the nature of how the XmlConfigurationProvider reads the data from the XML file, the writer will not preserve XML attributes when writing the XML file.

Building

Prerequisites

At least .NET 6.0.100 is required.

CLI

Brogdogg.Configuration.Xml> dotnet build
Brogdogg.Configuration.Xml> dotnet test
Microsoft (R) Test Execution Command Line Tool Version 17.0.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:    13, Skipped:     0, Total:    13, Duration: 385 ms - Brogdogg.Configuration.Xml.Tests.dll (net6.0)

Usage Example

using Brogdogg.Configuration.Xml;

namespace Test 
{
  public class Program
  {
    public static void Main(string[] args)
    {
      CreateHostBuilder(args).Build().Run();
    }

    public static IHostBuilder CreateHostBuilder(string[] args)
      => Host.CreateDefaultBuilder(args)
                 .ConfigureHostConfiguration(config =>
                 {
                   // Add the writable XML configuration source for the
                   // example.xml file.
                   config.AddWritableXml(@"C:\example.xml");
                 });

  }


  public class ExampleService
  {
    private IConfiguration Configuration { get; }

    public ExampleService(IConfiguration configuration) => Configuration = configuration;

    public void SetVersion()
    {
      // Set the value of the version to 1.0.0.0, which persists the changes
      // to the XML source for reading next time.
      Configuration["Version"] = "1.0.0.0";
    }
  }
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  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 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 is compatible.  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.

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.1.0 383 12/5/2021
1.0.1 498 11/12/2020