Skip to content

Commit

Permalink
upgrade to .net 9
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Dec 25, 2024
1 parent 4d9e09a commit c9d38db
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'

- name: Build Program
run: dotnet publish -c Release -p:Version=${{ github.event.release.tag_name }} -p:PublishProfile=Web.pubxml DragonFruit.Sakura.Host
Expand Down
2 changes: 1 addition & 1 deletion DragonFruit.Sakura.Host/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine

WORKDIR /app

Expand Down
8 changes: 4 additions & 4 deletions DragonFruit.Sakura.Host/DragonFruit.Sakura.Host.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
</PropertyGroup>
Expand All @@ -11,9 +11,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.11" />
<PackageReference Include="Sentry.Extensions.Logging" Version="4.13.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0" />
<PackageReference Include="Sentry.Extensions.Logging" Version="5.0.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion DragonFruit.Sakura.Host/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static Task Main(string[] args)
var app = builder.Build();

app.UseBlazorFrameworkFiles();
app.UseStaticFiles();
app.MapStaticAssets();

app.UseRouting();
app.MapControllers();
Expand Down
12 changes: 6 additions & 6 deletions DragonFruit.Sakura/DragonFruit.Sakura.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>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>true</IsPackable>
</PropertyGroup>
Expand All @@ -24,15 +24,15 @@
<ItemGroup>
<PackageReference Include="DragonFruit.Data" Version="4.1.2" />
<PackageReference Include="DragonFruit.Data.Roslyn" Version="4.1.2" PrivateAssets="all" />
<PackageReference Include="Google.Protobuf" Version="3.29.1" />
<PackageReference Include="Google.Protobuf" Version="3.29.2" />
<PackageReference Include="Grpc.Tools" Version="2.68.1" PrivateAssets="all">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Markdig" Version="0.38.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="8.0.11" />
<PackageReference Include="Markdig" Version="0.39.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="9.0.0" />
<PackageReference Include="MudBlazor" Version="7.15.0" />
<PackageReference Include="Sentry.Extensions.Logging" Version="4.13.0" />
<PackageReference Include="Sentry.Extensions.Logging" Version="5.0.0" />
<PackageReference Include="SharpYaml" Version="2.1.1" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion DragonFruit.Sakura/Wiki/Wiki.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private List<BreadcrumbItem> GenerateBreadcrumbs()

// split the url into a set of segments representing the location of each page (i.e. the topmost page has to include all the parents)
var segmentArrays = Enumerable.Range(1, pathSegments.Length).Select(i => new ArraySegment<string>(pathSegments, 0, i));
return segmentArrays.Select(x => new BreadcrumbItem(x.Last(), $"/{string.Join("/", x)}")).ToList();
return segmentArrays.Select(x => new BreadcrumbItem(x.Last(), $"/{string.Join('/', (IEnumerable<string>)x)}")).ToList();
}
}
}

0 comments on commit c9d38db

Please sign in to comment.