Mobile.BuildTools.AppSettings 2.1.0-pre.461

This is a prerelease version of Mobile.BuildTools.AppSettings.
dotnet add package Mobile.BuildTools.AppSettings --version 2.1.0-pre.461                
NuGet\Install-Package Mobile.BuildTools.AppSettings -Version 2.1.0-pre.461                
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="Mobile.BuildTools.AppSettings" Version="2.1.0-pre.461">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mobile.BuildTools.AppSettings --version 2.1.0-pre.461                
#r "nuget: Mobile.BuildTools.AppSettings, 2.1.0-pre.461"                
#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 Mobile.BuildTools.AppSettings as a Cake Addin
#addin nuget:?package=Mobile.BuildTools.AppSettings&version=2.1.0-pre.461&prerelease

// Install Mobile.BuildTools.AppSettings as a Cake Tool
#tool nuget:?package=Mobile.BuildTools.AppSettings&version=2.1.0-pre.461&prerelease                

Mobile.BuildTools.AppSettings

The Mobile.BuildTools.AppSettings is a re-invented implementation of the Classic Mobile.BuildTools that was originally generated as part of the Mobile.BuildTools project. This new implementation is significantly more powerful with an improved ability to control properties in Cross Compiled projects like those found in .NET MAUI and Uno Platform projects. This new implementation also provides an improved ability to bring in proeprties based on Prefixes and allows fuzzy matching for Configurations.

Configuration

Be sure to add a buildtools.json to your solution root directory.

{
  "$schema": "https://mobilebuildtools.com/schemas/v2/buildtools.schema.json",
  "appSettings": {
    "YourProjectName": [
      {
        "className": "AppSettings",
        "properties": [
          {
            "name": "PropertyName",
            "type": "String",
          },
          {
            "name": "SomeOtherProperty",
            "type": "String",
            "default": "Hello World"
          }
        ]
      }
    ]
  },
  "environment": {
    "defaults": {
      "SomeOtherProperty": "Hello Default Value"
    },
    "configuration": {
      "Debug": {
        "SomeOtherProperty": "Hello Debug Value"
      },
      "Android": {
        "SomeOtherProperty": "Hello Android Value"
      },
      "iOS_Debug": {
        "SomeOtherProperty": "Hello iOS Debug Value"
      }
    }
  }
}

As shown you can provide defaults either on the property or in the environment configuration in your buildtools.json. Additionally you can provide values in an appsettings.json file which can be anywhere between your project and your solution.

{
  "PropertyName": "Hello World"
}

You can also provide values in an appsettings.Debug.json file which can be anywhere between your project and your solution.

{
  "PropertyName": "Hello Debug World"
}
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Mobile.BuildTools.AppSettings:

Repository Stars
dansiegel/Mobile.BuildTools
The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
Version Downloads Last updated
2.1.0-pre.461 57 12/22/2024
2.1.0-pre.454 45 12/19/2024
2.1.0-pre.453 60 11/21/2024