Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit a45f246

Browse files
committed
Downgrades to .Net5 as .Net6 doesn't compile to a single file in the same way
1 parent 0755242 commit a45f246

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN apt-get update; \
3535
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
3636

3737
# Build the app
38-
RUN dotnet publish -c Release --self-contained true -r linux-x64 -o ./publish
38+
RUN dotnet publish -c Release -r linux-x64 -o ./publish
3939

4040
# Copy the app to a minimal Linux build
4141
FROM mcr.microsoft.com/dotnet/aspnet:6.0

VirtualGloomhavenBoard/VirtualGloomhavenBoard.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net5.0</TargetFramework>
44
<DefaultItemExcludes>$(DefaultItemExcludes);.DS_Store</DefaultItemExcludes>
55
<EnableDefaultContentItems>false</EnableDefaultContentItems>
66
<ApplicationIcon>wwwroot/img/favicons/app.ico</ApplicationIcon>
@@ -12,9 +12,11 @@
1212
<PublishReadyToRun>true</PublishReadyToRun>
1313
<PublishTrimmed>true</PublishTrimmed>
1414
<PublishSingleFile>true</PublishSingleFile>
15+
<SelfContained>true</SelfContained>
1516
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
1617
<PublishReadyToRunShowWarnings>true</PublishReadyToRunShowWarnings>
1718
<DefineConstants>RELEASE</DefineConstants>
19+
<PublishDir>$(ProjectDir)bin/$(Configuration)/publish</PublishDir>
1820
</PropertyGroup>
1921
<ItemGroup>
2022
<Watch Include="**\*.cs;**\*.js;**\*.html;**\*.elm;**\*.scss" Exclude="bin\**\*;obj\**\*;Elm\tests\*;Elm\elm-stuff;\*;wwwroot\js\main.min.js;wwwroot\js\creator.min.js" />
@@ -118,7 +120,7 @@
118120
</ItemGroup>
119121

120122
<ItemGroup>
121-
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="6.0.2" />
123+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="5.0.14" />
122124
</ItemGroup>
123125

124126
<Target Name="BuildDebug" BeforeTargets="BeforeBuild" Condition="'$(Configuration)'=='Debug'">

build-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if [ ! -d build ]; then
22
mkdir build
33
fi
4-
dotnet publish -c Release --self-contained true -r linux-x64 VirtualGloomhavenBoard
5-
cp VirtualGloomhavenBoard/bin/Release/net5.0/linux-x64/publish/VirtualGloomhavenBoard build/vgb-linux-x64
4+
dotnet publish -c Release -r linux-x64 VirtualGloomhavenBoard
5+
cp VirtualGloomhavenBoard/bin/Release/publish/VirtualGloomhavenBoard build/vgb-linux-x64

build.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dotnet publish -c Release --self-contained true -r win-x64 VirtualGloomhavenBoard
2-
copy VirtualGloomhavenBoard\bin\Release\net5.0\win-x64\publish\VirtualGloomhavenBoard.exe build\vgb-win-x64.exe
1+
dotnet publish -c Release -r win-x64 VirtualGloomhavenBoard
2+
copy VirtualGloomhavenBoard\bin\Release\publish\VirtualGloomhavenBoard.exe build\vgb-win-x64.exe
33

4-
dotnet publish -c Release --self-contained true -r win-x86 VirtualGloomhavenBoard
5-
copy VirtualGloomhavenBoard\bin\Release\net5.0\win-x86\publish\VirtualGloomhavenBoard.exe build\vgb-win-x86.exe
4+
dotnet publish -c Release -r win-x86 VirtualGloomhavenBoard
5+
copy VirtualGloomhavenBoard\bin\Release\publish\VirtualGloomhavenBoard.exe build\vgb-win-x86.exe

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if [ ! -d build ]; then
22
mkdir build
33
fi
4-
dotnet publish -c Release --self-contained true -r osx-x64 VirtualGloomhavenBoard
5-
cp VirtualGloomhavenBoard/bin/Release/net5.0/osx-x64/publish/VirtualGloomhavenBoard build/vgb-osx-x64
4+
dotnet publish -c Release -r osx-x64 VirtualGloomhavenBoard
5+
cp VirtualGloomhavenBoard/bin/Release/publish/VirtualGloomhavenBoard build/vgb-osx-x64

0 commit comments

Comments
 (0)