-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
51 lines (46 loc) · 2.24 KB
/
Directory.Build.props
File metadata and controls
51 lines (46 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Project>
<!-- Centralized package versions are in Directory.Packages.props (MSBuild convention) -->
<!-- Shared Assembly Metadata -->
<PropertyGroup>
<Product>Balatro Seed Oracle</Product>
<Company>OptimusPi</Company>
<Copyright>Copyright 2025</Copyright>
<Version>2.0.0</Version>
<FileVersion>2.0.0</FileVersion>
<AssemblyVersion>2.0.0</AssemblyVersion>
<!-- Don't generate assembly info - let projects handle it -->
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<!-- Avalonia License Key - from PARCEL_LICENSE env var OR avalonia.license file -->
<PropertyGroup>
<_AvaloniaLicenseFile>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)avalonia.license').Trim())</_AvaloniaLicenseFile>
<_AvaloniaLicenseKey Condition="'$(PARCEL_LICENSE)' != ''">$(PARCEL_LICENSE)</_AvaloniaLicenseKey>
<_AvaloniaLicenseKey Condition="'$(_AvaloniaLicenseKey)' == '' AND '$(_AvaloniaLicenseFile)' != ''">$(_AvaloniaLicenseFile)</_AvaloniaLicenseKey>
</PropertyGroup>
<ItemGroup Condition="'$(_AvaloniaLicenseKey)' != ''">
<AvaloniaUILicenseKey Include="$(_AvaloniaLicenseKey)" />
</ItemGroup>
<!-- AOT-mandatory: compiled bindings everywhere.
Desktop sets IlcDisableReflection=true and Browser uses TrimMode=full,
so any reflection-based binding would crash at runtime. Per Avalonia's
Native AOT guidance, this prop must apply across all heads, not just
the shared library. -->
<PropertyGroup>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>
<!-- Code Quality Settings -->
<PropertyGroup>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AnalysisMode>Default</AnalysisMode>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Android SDK Settings -->
<PropertyGroup Condition="$(TargetFramework.StartsWith('net10.0-android'))">
<AcceptAndroidSDKLicenses>true</AcceptAndroidSDKLicenses>
<AndroidSdkDirectory>$(LOCALAPPDATA)\Android\android-sdk</AndroidSdkDirectory>
</PropertyGroup>
</Project>