Skip to content

Commit eb00b3d

Browse files
.NET 9 (#59)
1 parent 46693a3 commit eb00b3d

28 files changed

+34
-27
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup .NET
1313
uses: actions/setup-dotnet@v1
1414
with:
15-
dotnet-version: 8.0.x
15+
dotnet-version: 9.0.x
1616
- name: Version Increment
1717
id: version
1818
uses: reecetech/version-increment@2024.4.4

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@
33
[![](../../workflows/gh-pages/badge.svg)](../../actions)
44

55

6-
This project is an example of using GitHub Actions to automatically deploy a .NET 8 [MudBlazor](https://mudblazor.com/) WebAssembly SPA (Single Page Application) to GitHub Pages. For a live demo, check the following link:
6+
This project is an example of using GitHub Actions to automatically deploy a .NET 9 [MudBlazor](https://mudblazor.com/) WebAssembly SPA (Single Page Application) to GitHub Pages. For a live demo, check the following link:
77

88
https://mudblazorgithubpages.github.io
99

1010
Microsoft Docs already contains a [general overview](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-8.0#github-pages)
1111
of the steps needed for a successful deploy.
1212

1313
## How to deploy
14-
1. Create a repository based on this template via the "Use this template" button (you don't fork, a fork is for contributing to this template or creating your own template)
15-
2. Go to your repository Settings > GitHub Pages > set the source branch to `gh-pages-from-actions`
14+
# How to Fork
15+
1. Fork this repository
16+
2. Go to the repository you just created, then go to: `Settings` > `GitHub Pages` > set the source branch to `gh-pages-from-actions`
1617
3. [Set permissions for GitHub Actions](https://stackoverflow.com/questions/73687176/permission-denied-to-github-actionsbot-the-requested-url-returned-error-403)
17-
4. Enable Dependabot: `Insights` > `Dependency graph` > `Dependabot` > Enable Dependabot
18-
5. View your site at https://[ `your user name` | `your organization name` ].github.io
18+
4. View your site at https://`your_user_name | your_organization_name`.github.io/`name_you_used_in_step1`
19+
5. (optional) Enable Dependabot
20+
1. `Insights` > `Dependency graph` > `Dependabot` > Enable Dependabot
21+
2. Create a branch named `dev` (branched from the `main` branch)
1922

2023
## How it works
2124

src/MudBlazorPages.sln renamed to src/MudBlazorGitHubPages.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.8.34525.116
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MudBlazorPages", "MudBlazorPages\MudBlazorPages.csproj", "{0B5E541E-C8DE-48FD-BBEF-F927CFF7925B}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MudBlazorGitHubPages", "MudBlazorGitHubPages\MudBlazorGitHubPages.csproj", "{79CD2E3C-F834-B948-0EFA-914C4C93CB52}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{0B5E541E-C8DE-48FD-BBEF-F927CFF7925B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{0B5E541E-C8DE-48FD-BBEF-F927CFF7925B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{0B5E541E-C8DE-48FD-BBEF-F927CFF7925B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{0B5E541E-C8DE-48FD-BBEF-F927CFF7925B}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{79CD2E3C-F834-B948-0EFA-914C4C93CB52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{79CD2E3C-F834-B948-0EFA-914C4C93CB52}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{79CD2E3C-F834-B948-0EFA-914C4C93CB52}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{79CD2E3C-F834-B948-0EFA-914C4C93CB52}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
File renamed without changes.

src/MudBlazorPages/AppSettings.cs renamed to src/MudBlazorGitHubPages/AppSettings.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Text.Json.Serialization;
22

3-
namespace MudBlazorPages;
3+
namespace MudBlazorGitHubPages;
44

55
public enum ExampleEnum
66
{
@@ -11,18 +11,22 @@ public enum ExampleEnum
1111
public class AppSettings
1212
{
1313
[JsonPropertyName("stringValue")]
14+
[ConfigurationKeyName("stringValue")]
1415
public string? StringValue { get; set; }
1516

1617
[JsonPropertyName("intValue")]
18+
[ConfigurationKeyName("intValue")]
1719
public int IntValue { get; set; }
1820

1921
[JsonPropertyName("enumValue")]
22+
[ConfigurationKeyName("enumValue")]
2023
public ExampleEnum EnumValue { get; set; }
2124

2225
/// <summary>
2326
/// This property simply demonstrates that non-existent enum values will not cause an exception during deserialization.
2427
/// See <see cref="Util.UnknownEnumConverter"/>
2528
/// </summary>
2629
[JsonPropertyName("nonexistentEnumValue")]
30+
[ConfigurationKeyName("nonexistentEnumValue")]
2731
public ExampleEnum NonexistentEnumValue { get; set; }
2832
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/MudBlazorPages/MudBlazorPages.csproj renamed to src/MudBlazorGitHubPages/MudBlazorGitHubPages.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
@@ -15,12 +15,12 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
18-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.10" />
19-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.10" PrivateAssets="all" />
18+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.4" />
19+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.4" PrivateAssets="all" />
2020
<PackageReference Include="MudBlazor" Version="7.10.0" />
2121
<PackageReference Include="Serilog" Version="4.2.0" />
2222
<PackageReference Include="Serilog.Sinks.BrowserConsole" Version="8.0.0" />
23-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
23+
<PackageReference Include="System.Text.Json" Version="9.0.4" />
2424
</ItemGroup>
2525

2626
</Project>
File renamed without changes.

0 commit comments

Comments
 (0)