Hyperbee.Resources 2.0.0

dotnet add package Hyperbee.Resources --version 2.0.0                
NuGet\Install-Package Hyperbee.Resources -Version 2.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="Hyperbee.Resources" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Hyperbee.Resources --version 2.0.0                
#r "nuget: Hyperbee.Resources, 2.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 Hyperbee.Resources as a Cake Addin
#addin nuget:?package=Hyperbee.Resources&version=2.0.0

// Install Hyperbee.Resources as a Cake Tool
#tool nuget:?package=Hyperbee.Resources&version=2.0.0                

Hyperbee.Resources

Usage

Implement IResourceLocator and set the implementation's namespace to your resource location.

Inject IResourceProvider<Implementation> to use.

For example:

this gives the path to the resources

public class MyResourceLocator : IResourceLocator { public string Namespace => typeof(MyResourceLocator).Namespace; }

register the provider

  • services.AddTransient<IResourceProvider<MyResourceLocator>>();
  • var locator = services.GetService<IResourceProvider<MyResourceLocator>>();
  • var resource = ResourceHelper.GetResource( locator, "resourceName" );

Build Requirements

  • To build and run this project, .NET 9 SDK is required.
  • Ensure your development tools are compatible with .NET 8 or higher.

Building the Project

  • With .NET 9 SDK installed, you can build the project using the standard dotnet build command.

Running Tests

  • Run tests using the dotnet test command as usual.

Status

Branch Action
develop Build status
main Build status

Benchmarks

See Benchmarks

Help

See Todo

Hyperbee.Resources

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Hyperbee.Resources:

Package Downloads
Hyperbee.Templating

A lightweight templating and variable substitution syntax engine. The library supports value replacements, code expressions, token nesting, in-line definitions, conditional flow, and looping.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 71 11/15/2024
1.0.0 795 4/11/2024