|
10 | 10 | <LangVersion>preview</LangVersion>
|
11 | 11 | <AssemblyName>yabal</AssemblyName>
|
12 | 12 | <ApplicationIcon>icon.ico</ApplicationIcon>
|
| 13 | + <EnableTrimAnalyzer>true</EnableTrimAnalyzer> |
| 14 | + </PropertyGroup> |
| 15 | + |
| 16 | + <PropertyGroup Condition="'$(DesktopAot)' == 'true'"> |
| 17 | + <!-- Workaround for https://github.com/dotnet/runtime/issues/94406 --> |
| 18 | + <PublishAot>true</PublishAot> |
| 19 | + </PropertyGroup> |
| 20 | + |
| 21 | + <PropertyGroup Condition="'$(PublishAot)' == ''"> |
| 22 | + <PublishAot>false</PublishAot> |
13 | 23 | </PropertyGroup>
|
14 | 24 |
|
15 | 25 | <PropertyGroup>
|
| 26 | + <DebugType>embedded</DebugType> |
| 27 | + <InvariantGlobalization>true</InvariantGlobalization> |
| 28 | + </PropertyGroup> |
| 29 | + |
| 30 | + <PropertyGroup Condition="'$(PublishAot)' == 'true'"> |
| 31 | + <DebugSymbols>false</DebugSymbols> |
| 32 | + <DebugType>None</DebugType> |
| 33 | + <NativeDebugSymbols>false</NativeDebugSymbols> |
| 34 | + <DebuggerSupport>false</DebuggerSupport> |
| 35 | + <EventSourceSupport>false</EventSourceSupport> |
| 36 | + <EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization> |
| 37 | + <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport> |
| 38 | + <UseSystemResourceKeys>true</UseSystemResourceKeys> |
| 39 | + </PropertyGroup> |
| 40 | + |
| 41 | + <PropertyGroup Condition="'$(PublishAot)' == 'false'"> |
16 | 42 | <SelfContained>true</SelfContained>
|
17 | 43 | <PublishTrimmed>true</PublishTrimmed>
|
18 |
| - <InvariantGlobalization>true</InvariantGlobalization> |
19 |
| - <DebugType>embedded</DebugType> |
20 | 44 | </PropertyGroup>
|
21 | 45 |
|
22 | 46 | <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
|
|
27 | 51 | <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
28 | 52 | </PropertyGroup>
|
29 | 53 |
|
30 |
| - <PropertyGroup Condition="'$(Configuration)' == 'Release'"> |
| 54 | + <PropertyGroup Condition="'$(Configuration)' == 'Release' and '$(PublishAot)' == 'false'"> |
31 | 55 | <PublishSingleFile>true</PublishSingleFile>
|
32 | 56 | </PropertyGroup>
|
33 | 57 |
|
|
56 | 80 | <ItemGroup>
|
57 | 81 | <ProjectReference Include="..\Yabal.Compiler\Yabal.Compiler.csproj" />
|
58 | 82 | <ProjectReference Include="..\Yabal.Emulator\Yabal.Emulator.csproj" />
|
59 |
| - <ProjectReference Include="..\Yabal.Loaders.Font\Yabal.Loaders.Font.csproj" /> |
60 |
| - <ProjectReference Include="..\Yabal.Loaders.Image\Yabal.Loaders.Image.csproj" /> |
| 83 | + </ItemGroup> |
| 84 | + |
| 85 | + <PropertyGroup Condition="'$(PublishAot)' == 'false'"> |
| 86 | + <DefineConstants>$(DefineConstants);INCLUDE_LOADERS</DefineConstants> |
| 87 | + </PropertyGroup> |
| 88 | + |
| 89 | + <ItemGroup Condition="'$(PublishAot)' == 'false'"> |
| 90 | + <ProjectReference Include="..\Yabal.Loaders.Font\Yabal.Loaders.Font.csproj" /> |
| 91 | + <ProjectReference Include="..\Yabal.Loaders.Image\Yabal.Loaders.Image.csproj" /> |
61 | 92 | </ItemGroup>
|
62 | 93 |
|
63 | 94 | </Project>
|
0 commit comments