Enable AoT in csproj rather than in CI

This commit is contained in:
Jarrod Doyle 2025-01-14 20:32:35 +00:00
parent be95907352
commit 8682942102
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
2 changed files with 3 additions and 4 deletions

View File

@ -20,7 +20,7 @@ jobs:
with: with:
dotnet-version: '9.0.x' dotnet-version: '9.0.x'
- name: Build Windows - name: Build Windows
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/win-x64 -r win-x64 -p:PublishAot=true --nologo run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/win-x64 -r win-x64 --nologo
- name: Upload Windows - name: Upload Windows
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -40,7 +40,7 @@ jobs:
with: with:
dotnet-version: '9.0.x' dotnet-version: '9.0.x'
- name: Build - name: Build
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/linux-x64 -r linux-x64 -p:PublishAot=true --nologo run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/linux-x64 -r linux-x64 --nologo
- name: Upload Linux - name: Upload Linux
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

@ -8,8 +8,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<SelfContained>true</SelfContained> <SelfContained>true</SelfContained>
<PublishTrimmed>true</PublishTrimmed> <PublishTrimmed>true</PublishTrimmed>
<!-- <PublishSingleFile>true</PublishSingleFile>--> <PublishAot>true</PublishAot>
<!-- <PublishAot>true</PublishAot>-->
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>