Skip to content

Commit 4963c35

Browse files
Upgraded to .dotnet 9 and added github pages
1 parent 933c7da commit 4963c35

File tree

10 files changed

+129
-13
lines changed

10 files changed

+129
-13
lines changed

Hyperbee.Resources.sln

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
EndProject
1515
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Tests", "Solution Tests", "{3578FD7E-CD36-4C2B-974C-52C56F7B60AB}"
1616
EndProject
17-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{0837D817-CA17-4D78-8767-806079D4F0F0}"
18-
ProjectSection(SolutionItems) = preProject
19-
todo.md = todo.md
20-
EndProjectSection
21-
EndProject
2217
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{2D48C1F2-0FEE-4311-9A47-D547166735A3}"
2318
ProjectSection(SolutionItems) = preProject
2419
.github\dependabot.yml = .github\dependabot.yml
@@ -40,6 +35,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
4035
EndProject
4136
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hyperbee.Resources.Tests", "test\Hyperbee.Resources.Tests\Hyperbee.Resources.Tests.csproj", "{C9DFA58D-268B-4CCD-807C-ECB81053856B}"
4237
EndProject
38+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "docs", "docs\docs.shproj", "{0CBE4E5F-4F8C-40C8-84FC-1BFE89E9018D}"
39+
EndProject
4340
Global
4441
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4542
Debug|Any CPU = Debug|Any CPU
@@ -59,12 +56,15 @@ Global
5956
HideSolutionNode = FALSE
6057
EndGlobalSection
6158
GlobalSection(NestedProjects) = preSolution
62-
{0837D817-CA17-4D78-8767-806079D4F0F0} = {D9648393-6F08-43BB-A860-CE7E5518E23F}
6359
{2D48C1F2-0FEE-4311-9A47-D547166735A3} = {D9648393-6F08-43BB-A860-CE7E5518E23F}
6460
{3F11E2F8-DDBB-4CEC-8364-ADBC05A17E9D} = {2D48C1F2-0FEE-4311-9A47-D547166735A3}
6561
{C9DFA58D-268B-4CCD-807C-ECB81053856B} = {3578FD7E-CD36-4C2B-974C-52C56F7B60AB}
62+
{0CBE4E5F-4F8C-40C8-84FC-1BFE89E9018D} = {D9648393-6F08-43BB-A860-CE7E5518E23F}
6663
EndGlobalSection
6764
GlobalSection(ExtensibilityGlobals) = postSolution
6865
SolutionGuid = {D1BE373C-31C9-468E-8DCC-7C214765266B}
6966
EndGlobalSection
67+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
68+
docs\docs.projitems*{0cbe4e5f-4f8c-40c8-84fc-1bfe89e9018d}*SharedItemsImports = 13
69+
EndGlobalSection
7070
EndGlobal
File renamed without changes.

docs/_config.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
title: Hyperbee Resources
2+
description: Documentation for Hyperbee Resources.
3+
remote_theme: pmarsceill/just-the-docs
4+
baseurl: "/hyperbee.resources/"
5+
url: "https://stillpoint-software.github.io"
6+
7+
aux_links:
8+
"GitHub Repository":
9+
- "//github.com/Stillpoint-Software/hyperbee.resources"
10+
11+
footer_content: |
12+
<div>
13+
<span>&copy; <span id="copyright-year"></span> <a href='https://www.stillpointsoftware.net/'>Stillpoint Software</a>.</span>
14+
<script>
15+
document.getElementById("copyright-year").textContent = new Date().getFullYear();
16+
</script>
17+
</div>
18+
19+
# logo: "/assets/icon.png"
20+
search_enabled: true # Enable search
21+
22+
# External navigation links
23+
nav_external_links:
24+
- title: Stillpoint Software
25+
url: https://www.stillpointsoftware.net/
26+
opens_in_new_tab: true

docs/_includes/nav_footer_custom.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<footer class="site-footer">
2+
Hyperbee Resources Docs
3+
</footer>

docs/docs.projitems

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MSBuildAllProjects Condition="'$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' &lt; '16.0'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5+
<HasSharedItems>true</HasSharedItems>
6+
<SharedGUID>0cbe4e5f-4f8c-40c8-84fc-1bfe89e9018d</SharedGUID>
7+
</PropertyGroup>
8+
<PropertyGroup Label="Configuration">
9+
<Import_RootNamespace>docs</Import_RootNamespace>
10+
</PropertyGroup>
11+
<ItemGroup>
12+
<None Include="$(MSBuildThisFileDirectory).todo.md" />
13+
<None Include="$(MSBuildThisFileDirectory)index.md" />
14+
<None Include="$(MSBuildThisFileDirectory)resource-locator.md" />
15+
<None Include="$(MSBuildThisFileDirectory)_config.yml" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<Content Include="$(MSBuildThisFileDirectory)_includes\nav_footer_custom.html" />
19+
</ItemGroup>
20+
</Project>

docs/docs.shproj

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Label="Globals">
4+
<ProjectGuid>0cbe4e5f-4f8c-40c8-84fc-1bfe89e9018d</ProjectGuid>
5+
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
6+
</PropertyGroup>
7+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
9+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
10+
<PropertyGroup />
11+
<Import Project="docs.projitems" Label="Shared" />
12+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
13+
</Project>

docs/index.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
layout: default
3+
title: Hyperbee Resources
4+
nav_order: 1
5+
---
6+
7+
# Welcome to Hyperbee Resources
8+
9+
Hyperbee Resources is a library that provides a way to access resources in a project.
10+
11+
12+
13+
## Getting Started
14+
15+
To get started with Hyperbee.Resources, refer to the documentation for detailed instructions and examples. Install the library via NuGet:
16+
17+
Install via NuGet:
18+
19+
```bash
20+
dotnet add package Hyperbee.Resources
21+
```
22+
23+
## Contributing
24+
25+
We welcome contributions! Please see our [Contributing Guide](https://github.com/Stillpoint-Software/.github/blob/main/.github/CONTRIBUTING.md)
26+
for more details.

docs/resource-locator.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
layout: default
3+
title: Resource Locator
4+
nav_order: 2
5+
---
6+
7+
# Resource Locator
8+
9+
Implement IResourceLocator and set the implementation's namespace to your resource location.
10+
11+
Inject IResourceProvider<Implementation> to use.
12+
13+
14+
**For example:**
15+
16+
17+
*this gives the path to the resources*
18+
19+
`public class MyResourceLocator : IResourceLocator
20+
{
21+
public string Namespace => typeof(MyResourceLocator).Namespace;
22+
}`
23+
24+
*register the provider*
25+
26+
* `services.AddTransient<IResourceProvider<MyResourceLocator>>();`
27+
* `var locator = services.GetService<IResourceProvider<MyResourceLocator>>();`
28+
* `var resource = ResourceHelper.GetResource( locator, "resourceName" ); `

src/Hyperbee.Resources/Hyperbee.Resources.csproj

+3-3
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>
@@ -39,7 +39,7 @@
3939
<PrivateAssets>all</PrivateAssets>
4040
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4141
</PackageReference>
42-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.10.0" />
42+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

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

+4-4
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

@@ -22,9 +22,9 @@
2222
<PrivateAssets>all</PrivateAssets>
2323
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2424
</PackageReference>
25-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
26-
<PackageReference Include="MSTest.TestAdapter" Version="3.5.0" />
27-
<PackageReference Include="MSTest.TestFramework" Version="3.5.0" />
25+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
26+
<PackageReference Include="MSTest.TestAdapter" Version="3.6.3" />
27+
<PackageReference Include="MSTest.TestFramework" Version="3.6.3" />
2828
</ItemGroup>
2929

3030
<ItemGroup>

0 commit comments

Comments
 (0)