Hyperbee.Resources
2.0.0
dotnet add package Hyperbee.Resources --version 2.0.0
NuGet\Install-Package Hyperbee.Resources -Version 2.0.0
<PackageReference Include="Hyperbee.Resources" Version="2.0.0" />
paket add Hyperbee.Resources --version 2.0.0
#r "nuget: Hyperbee.Resources, 2.0.0"
// 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 |
|
main |
Benchmarks
See Benchmarks
Help
See Todo
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.11.0)
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.