HotCoffee.Maui.Extensions 1.0.0

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

NuGet Package: HotCoffee.Maui.Extensions

Static Badge Static Badge

Overview

HotCoffee.Maui.Extensions is a powerful and easy-to-use library for .NET applications that simplifies [insert functionality, e.g., configuration, appconfig.json, etc.]. With a focus on configurability and usability, HotCoffee.Maui.Extensions allows developers to quickly integrate advanced features into their projects without hassle.

Features

  • Simple API: Intuitive methods that reduce boilerplate code.
  • High Performance: Optimized for speed and efficiency.
  • Cross-Platform: Compatible with .NET Core, MAUI.
  • Well-Documented: Comprehensive documentation and examples to get you started quickly.

Installation

You can install HotCoffee.Maui.Extensions via NuGet Package Manager Console:

Install-Package HotCoffee.Maui.Extensions

Or by using the .NET CLI:

dotnet add package HotCoffee.Maui.Extensions

Usage

Here's a quick example to demonstrate how to use HotCoffee.Maui.Extensions in your application:

  1. Import the Namespace

    Make sure to include the library in your file:

    using HotCoffee.Maui.Extensions;
    
  2. Create appconfig.json file in your project folder directory

    Make sure to create the appconfig.json file in you project directory. Below is a simple example where you need to create.

    Screenshot1

  3. Set build action as Embedded resource of appconfig.json file Below is a screenshot example where you create and reside your appconfig.json file in your project structure.

    Note : Its should be created under project root directory.

    Screenshot2

  4. Set some example values in the appconfig.json file to get the value into C# classes via IConfiguration dependency Filename should be save as appconfig.json

    {
        "BaseUrl": 
        {
             "DefaultUrl": "https://api.exampleproject.com/api/" //Example API Base Url
        }
    }
    
  5. Initialize and Use the Library

    Below is a simple example of how to use HotCoffee.Maui.Extensions to config the appconfig.json file to consume the configurable the values into the app:

     public static class MauiProgram
     {
         public static MauiApp CreateMauiApp()
         {
             var builder = MauiApp.CreateBuilder();
             builder
                 .UseMauiApp<App>()
                 .ConfigureAppConfiguration(typeof(MauiProgram) , "appconfig.json")
                 .ConfigureFonts(fonts =>
                 {
                     fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                     fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                 });
             return builder.Build();
         }
     }
    
  6. Consume the appconfig.json values into the code Below is the example code how we can use the appconfig.json values into our c# class using dependency injection of type IConfiguration just like below example.

    1. Import the Namespace Make sure to include the library in c# code file:
    using Microsoft.Extensions.Configuration;
    
    1. Inject the IConfiguration dependency in your C# class constructor Below is the sample example code how you can consume the appconfig.json files values into your C# code classes.
     public partial class MainPage : ContentPage
     {
         public MainPage(IConfiguration configuration)
         {
             InitializeComponent();
             var baseUrl = (string)configuration["BaseUrl:url"]!;
    
             //Here we can print the values for showing the output in console.
             Console.WriteLine(baseUrl);
         }
     }
    
  7. Final output should look like below

    Output : https://api.exampleproject.com/api/

Documentation

For detailed information on all features, configurations, and advanced usage, please refer to the official documentation.

Support

If you encounter any issues or have questions, please open an issue on our GitHub repository or contact on our email.


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 2/3/2026