Skip to content

Commit

Permalink
Added prerendering
Browse files Browse the repository at this point in the history
  • Loading branch information
EngstromJimmy committed Sep 6, 2024
1 parent 7737246 commit 7688473
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name: Compile the web
env:
PUBLISH_DIR: StageCoderWeb/StageCoderWeb/bin/Release/net7.0/publish/wwwroot
PUBLISH_DIR: StageCoderWeb/StageCoderWeb/bin/Release/net8.0/publish/wwwroot

# Controls when the workflow will run
on:
Expand All @@ -29,7 +29,7 @@ jobs:

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'
include-prerelease: true

- name: Publish application
Expand Down
10 changes: 6 additions & 4 deletions StageCoderWeb/StageCoderWeb/StageCoderWeb.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<BlazorWasmPrerenderingDeleteLoadingContents>true</BlazorWasmPrerenderingDeleteLoadingContents>
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'https' ">
Expand All @@ -13,9 +14,10 @@
<ExternalConsole>true</ExternalConsole>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.3" PrivateAssets="all" />
<PackageReference Include="Markdig" Version="0.31.0" />
<PackageReference Include="BlazorWasmPreRendering.Build" Version="4.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.8" PrivateAssets="all" />
<PackageReference Include="Markdig" Version="0.37.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
</ItemGroup>

Expand Down

0 comments on commit 7688473

Please sign in to comment.