Skip to content

Commit

Permalink
Update to .NET 9
Browse files Browse the repository at this point in the history
Also update the GitHub action
  • Loading branch information
mcraiha committed Nov 21, 2024
1 parent 30211e2 commit 7b15fa0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/dotnet_publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
# This workflow will publish a .NET Blazor project and deploy it to CloudFlare

name: .NET publish

Expand All @@ -13,11 +12,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Install wasm-tools
run: dotnet workload install wasm-tools
- name: Add build info
Expand All @@ -26,13 +25,13 @@ jobs:
- name: Publish release
run: dotnet publish -c Release
- name: Remove .wasm files
run: rm bin/Release/net8.0/publish/wwwroot/_framework/*.wasm
run: rm bin/Release/net9.0/publish/wwwroot/_framework/*.wasm
- name: Remove .gz files
run: rm bin/Release/net8.0/publish/wwwroot/_framework/*.gz
run: rm bin/Release/net9.0/publish/wwwroot/_framework/*.gz
- name: Upload to pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages publish bin/Release/net8.0/publish/wwwroot --project-name=am5-smu-checker-blazor
command: pages publish bin/Release/net9.0/publish/wwwroot --project-name=am5-smu-checker-blazor

6 changes: 3 additions & 3 deletions AM5-SMU-Checker-blazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
Expand All @@ -11,8 +11,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Blazor version of **AM5 SMU Checker** that you can run in your browser to get so

## Requirements (end user)

You have to have newish [internet browser](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-8.0)
You have to have newish [internet browser](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-9.0)

## How to run / develop

### Requirements

You have to have [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) installed,
You have to have [.NET 9 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/9.0) installed,

### Actual run

Expand All @@ -40,7 +40,7 @@ Run
dotnet publish -c Release
```

and content should be in **bin\Release\net8.0\publish\wwwroot** folder.
and content should be in **bin\Release\net9.0\publish\wwwroot** folder.

## Credits

Expand Down
2 changes: 1 addition & 1 deletion wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2>AM5 SMU Checker v0.8 with Blazor</h2>
<hr>
<p>
<small>
AM5 SMU Checker v0.8 with Blazor - <time datetime="{0}">{0}</time> <a href="https://github.com/mcraiha/AM5-SMU-Checker-blazor/commit/{1}">#{1}</a>- <a href="about.html">About</a>
AM5 SMU Checker v0.8 with Blazor - <time datetime="{0}">{0}</time> <a href="https://github.com/mcraiha/AM5-SMU-Checker-blazor/commit/{1}">#{1}</a> - <a href="about.html">About</a>
</small>
</p>
</footer>
Expand Down

0 comments on commit 7b15fa0

Please sign in to comment.