feat: Add build workflow for Windows Avalonia with Docker support
Some checks failed
Build Windows Avalonia / build (push) Failing after 1m15s
Build Windows Avalonia / release (push) Has been skipped

This commit is contained in:
MaddoScientisto 2026-03-16 22:14:49 +01:00
commit 3ddaf31340
2 changed files with 149 additions and 0 deletions

View file

@ -6,6 +6,7 @@
<!-- Default assembly name for regular builds -->
<AssemblyName>ImageCatalog</AssemblyName>
<LangVersion>default</LangVersion>
<AvaloniaWindowsCrossPublish Condition="'$(AvaloniaWindowsCrossPublish)' == ''">false</AvaloniaWindowsCrossPublish>
</PropertyGroup>
<!-- Windows: net10.0-windows TFM auto-defines WINDOWS preprocessor symbol -->
<PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows'))">
@ -20,6 +21,15 @@
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup Condition="'$(AvaloniaWindowsCrossPublish)' == 'true'">
<OutputType>WinExe</OutputType>
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == ''">win-x64</RuntimeIdentifier>
<UseAppHost>true</UseAppHost>
<SelfContained Condition="'$(SelfContained)' == ''">true</SelfContained>
<PublishSingleFile Condition="'$(PublishSingleFile)' == ''">true</PublishSingleFile>
<PublishTrimmed Condition="'$(PublishTrimmed)' == ''">false</PublishTrimmed>
<PublishReadyToRun Condition="'$(PublishReadyToRun)' == ''">false</PublishReadyToRun>
</PropertyGroup>
<PropertyGroup>
<!-- Keep MinVer package enabled but do NOT let it overwrite AssemblyVersion/FileVersion used at build-time.
This prevents MinVer from injecting a computed version into generated BAML/pack URIs which can cause