Mobile.BuildTools.AppSettings
2.1.0-pre.461
dotnet add package Mobile.BuildTools.AppSettings --version 2.1.0-pre.461
NuGet\Install-Package Mobile.BuildTools.AppSettings -Version 2.1.0-pre.461
<PackageReference Include="Mobile.BuildTools.AppSettings" Version="2.1.0-pre.461"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Mobile.BuildTools.AppSettings --version 2.1.0-pre.461
#r "nuget: Mobile.BuildTools.AppSettings, 2.1.0-pre.461"
// 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"
}
Learn more about Target Frameworks and .NET Standard.
-
- Mobile.BuildTools.Core (>= 2.1.0-pre.461)
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 |