Skip to content

Commit 88c1a5e

Browse files
Merge branch 'develop'
2 parents 38f46d4 + 30cba85 commit 88c1a5e

9 files changed

Lines changed: 77 additions & 17 deletions

File tree

.github/workflows/Create Release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Create Release
1+
name: Create Release
2+
23
on:
34
workflow_dispatch:
45
inputs:

.github/workflows/Format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- develop
1616

1717
env:
18-
DOTNET_VERSION: '8.0.x'
18+
DOTNET_VERSION: '9.0.x'
1919

2020
jobs:
2121
format:

.github/workflows/Publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
BRANCH_NAME: ${{ github.event.release.target_commitish }}
1010
SOLUTION_NAME: ${{ vars.SOLUTION_NAME }}
11-
DOTNET_VERSION: '8.0.x'
11+
DOTNET_VERSION: '9.0.x'
1212
NUGET_SOURCE: 'https://api.nuget.org/v3/index.json'
1313
BUILD_CONFIGURATION: ''
1414
VERSION_SUFFIX: ''

.github/workflows/Test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
env:
1818
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1919
SOLUTION_NAME: ${{ vars.SOLUTION_NAME }}
20-
DOTNET_VERSION: '8.0.x'
20+
DOTNET_VERSION: '9.0.x'
2121

2222
jobs:
2323
test:

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<!-- Solution version numbers -->
33
<PropertyGroup>
4-
<MajorVersion>1</MajorVersion>
4+
<MajorVersion>2</MajorVersion>
55
<MinorVersion>0</MinorVersion>
66
<PatchVersion>0</PatchVersion>
77
</PropertyGroup>

README.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,58 @@
11
# Hyperbee.Resources
22

3-
Provides a dependency injection pattern for embedded resources
3+
## Usage
4+
5+
Implement IResourceLocator and set the implementation's namespace to your resource location.
6+
7+
Inject IResourceProvider<Implementation> to use.
8+
9+
10+
**For example:**
11+
12+
13+
*this gives the path to the resources*
14+
15+
`public class MyResourceLocator : IResourceLocator
16+
{
17+
public string Namespace => typeof(MyResourceLocator).Namespace;
18+
}`
19+
20+
*register the provider*
21+
22+
* `services.AddTransient<IResourceProvider<MyResourceLocator>>();`
23+
* `var locator = services.GetService<IResourceProvider<MyResourceLocator>>();`
24+
* `var resource = ResourceHelper.GetResource( locator, "resourceName" ); `
25+
426

527

628
# Build Requirements
729

830
* To build and run this project, **.NET 9 SDK** is required.
9-
* Ensure your development tools are compatible with .NET 9.
31+
* Ensure your development tools are compatible with .NET 8 or higher.
1032

1133
## Building the Project
1234

13-
* With .NET 8 SDK installed, you can build the project using the standard `dotnet build` command.
35+
* With .NET 9 SDK installed, you can build the project using the standard `dotnet build` command.
1436

1537
## Running Tests
1638

1739
* Run tests using the `dotnet test` command as usual.
1840

41+
1942
# Status
2043

2144
| Branch | Action |
2245
|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
23-
| `develop` | [![Build status](https://github.com/Stillpoint-Software/Hyperbee.Resources/actions/workflows/publish.yml/badge.svg?branch=develop)](https://github.com/Stillpoint-Software/Hyperbee.Resources/actions/workflows/publish.yml) |
24-
| `main` | [![Build status](https://github.com/Stillpoint-Software/Hyperbee.Resources/actions/workflows/publish.yml/badge.svg)](https://github.com/Stillpoint-Software/Hyperbee.Resources/actions/workflows/publish.yml) |
46+
| `develop` | [![Build status](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml/badge.svg?branch=develop)](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml) |
47+
| `main` | [![Build status](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml/badge.svg)](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml) |
2548

2649

27-
# Help
50+
# Benchmarks
51+
See [Benchmarks](https://github.com/Stillpoint-Software/Hyperbee.Resources/test/Hyperbee.Resources.Benchmark/benchmark/results/Hyperbee.Resources.Benchmark.ResourcesBenchmark-report-github.md)
52+
2853

29-
See [Todo](https://github.com/Stillpoint-Software/Hyperbee.Resources/blob/main/docs/todo.md)
54+
# Help
3055

56+
See [Todo](https://github.com/Stillpoint-Software/hyperbee.resources/blob/main/docs/todo.md)
3157

32-
[![Hyperbee.Resources](https://github.com/Stillpoint-Software/Hyperbee.Resources/blob/main/assets/hyperbee.svg?raw=true)](https://github.com/Stillpoint-Software/Hyperbee.Resources)
58+
[![Hyperbee.Resources](https://github.com/Stillpoint-Software/Hyperbee.Resources/blob/main/assets/hyperbee.svg?raw=true)](https://github.com/Stillpoint-Software/Hyperbee.Resources)

src/Hyperbee.Resources/Hyperbee.Resources.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@@ -12,7 +12,7 @@
1212
<PackageTags>resources;NET;embedded resources</PackageTags>
1313
<PackageIcon>icon.png</PackageIcon>
1414
<PackageProjectUrl>https://github.com/Stillpoint-Software/Hyperbee.Resources/</PackageProjectUrl>
15-
<TargetFrameworks>net8.0</TargetFrameworks>
15+
<TargetFrameworks>net9.0</TargetFrameworks>
1616
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1717
<Copyright>Stillpoint Software, Inc.</Copyright>
1818
<Title>Hyperbee Resources</Title>

src/Hyperbee.Resources/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,36 @@ Inject IResourceProvider<Implementation> to use.
2323
* `var locator = services.GetService<IResourceProvider<MyResourceLocator>>();`
2424
* `var resource = ResourceHelper.GetResource( locator, "resourceName" ); `
2525

26+
27+
28+
# Build Requirements
29+
30+
* To build and run this project, **.NET 9 SDK** is required.
31+
* Ensure your development tools are compatible with .NET 8 or higher.
32+
33+
## Building the Project
34+
35+
* With .NET 9 SDK installed, you can build the project using the standard `dotnet build` command.
36+
37+
## Running Tests
38+
39+
* Run tests using the `dotnet test` command as usual.
40+
41+
42+
# Status
43+
44+
| Branch | Action |
45+
|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
46+
| `develop` | [![Build status](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml/badge.svg?branch=develop)](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml) |
47+
| `main` | [![Build status](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml/badge.svg)](https://github.com/Stillpoint-Software/hyperbee.resources/actions/workflows/publish.yml) |
48+
49+
50+
# Benchmarks
51+
See [Benchmarks](https://github.com/Stillpoint-Software/Hyperbee.Resources/test/Hyperbee.Resources.Benchmark/benchmark/results/Hyperbee.Resources.Benchmark.ResourcesBenchmark-report-github.md)
52+
53+
54+
# Help
55+
56+
See [Todo](https://github.com/Stillpoint-Software/hyperbee.resources/blob/main/docs/todo.md)
57+
58+
[![Hyperbee.Resources](https://github.com/Stillpoint-Software/Hyperbee.Resources/blob/main/assets/hyperbee.svg?raw=true)](https://github.com/Stillpoint-Software/Hyperbee.Resources)

test/Hyperbee.Resources.Tests/Hyperbee.Resources.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

0 commit comments

Comments
 (0)