mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-12-03 02:05:18 +01:00
92ed2c39f0
The starter read the cards from the registry's list of video devices, which each driver fills as it chooses: a player with an RTX 3060 beside a Ryzen's Radeon saw only the Radeon. The cards now come from DXGI, the adapters Windows draws with and whose drivers the simulator's OpenGL runs on, without software adapters such as the Basic Render Driver. The registry answers only when DXGI cannot be asked or lists no card. DXGI is called through function pointers, which NativeAOT compiles without reflection. Co-authored-by: maj00r <maj00r@host>
86 lines
4.1 KiB
XML
86 lines
4.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<PublishAot>true</PublishAot>
|
|
<PublishTrimmed>true</PublishTrimmed>
|
|
<IsAotCompatible>true</IsAotCompatible>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
|
<!-- DXGI is asked through function pointers, which NativeAOT compiles without reflection. -->
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
<ApplicationIcon>Assets\starter.ico</ApplicationIcon>
|
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
<!-- Major and minor only: CI adds the patch, the number of commits, so every
|
|
build of main is a higher version without anyone bumping it. -->
|
|
<VersionPrefix>1.6</VersionPrefix>
|
|
<AssemblyName>Starter</AssemblyName>
|
|
<Company>eu07.pl</Company>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia" Version="12.1.4" />
|
|
<PackageReference Include="Avalonia.Desktop" Version="12.1.4" />
|
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="12.1.4" />
|
|
<PackageReference Include="Avalonia.Fonts.Inter" Version="12.1.4" />
|
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
|
<PackageReference Include="Avalonia.Diagnostics" Version="11.3.17">
|
|
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">none</IncludeAssets>
|
|
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="HotAvalonia" Version="3.0.2" />
|
|
<PackageReference Include="Material.Icons.Avalonia" Version="3.0.2" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- The black box of the simulator: its reader and the window it is played back in. -->
|
|
<ProjectReference Include="..\Eu07.BlackBox\Eu07.BlackBox.csproj" />
|
|
<ProjectReference Include="..\Eu07.BlackBox.Views\Eu07.BlackBox.Views.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="StarterNG.Tests" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Folder Include="Assets\Logo\" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="Assets\Logo\Other\Discord.svg" />
|
|
<AvaloniaResource Include="Assets\Logo\Other\Discord.svg" />
|
|
<!-- Logo bitmaps (splash.png + maszyna_black/white.png). Globbed so newly
|
|
added PNGs are embedded automatically without editing this file. -->
|
|
<None Remove="Assets\Logo\*.png" />
|
|
<AvaloniaResource Include="Assets\Logo\*.png" />
|
|
<None Remove="Assets\Test\ep07p.bmp" />
|
|
<AvaloniaResource Include="Assets\Test\ep07p.bmp" />
|
|
<None Remove="Assets\starter.ico" />
|
|
<AvaloniaResource Include="Assets\starter.ico" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Translations are plain XML loaded at runtime (LocalizationService), not
|
|
compiled into the assembly. They are copied verbatim into a starter/lang/
|
|
folder next to the executable so they can be edited or extended without a
|
|
rebuild. XmlReader parsing is AOT-safe, unlike the Avalonia XAML loader. -->
|
|
<Content Include="startercfg\lang\*.xml">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<Link>startercfg\lang\%(Filename)%(Extension)</Link>
|
|
</Content>
|
|
<!-- Default key-binding layout, used as a template when the user has no
|
|
eu07_input-keyboard.ini yet (and for "Restore defaults"). -->
|
|
<Content Include="startercfg\eu07_input-keyboard.ini">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<Link>startercfg\eu07_input-keyboard.ini</Link>
|
|
</Content>
|
|
</ItemGroup>
|
|
</Project>
|