feature: add -p:EnablePortable=true option for dotnet publish command to store app data portable (#834)

This commit is contained in:
leo 2024-12-24 09:23:50 +08:00
parent 7028e08390
commit f53b71bfe7
No known key found for this signature in database
3 changed files with 21 additions and 3 deletions

View file

@ -30,6 +30,10 @@
<DefineConstants>$(DefineConstants);DISABLE_UPDATE_DETECTION</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(EnablePortable)' == 'true'">
<DefineConstants>$(DefineConstants);ENABLE_PORTABLE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="App.ico" />
<AvaloniaResource Include="Resources/Fonts/*" />