80 lines
4.3 KiB
XML
80 lines
4.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<!-- if you want to check exceptions, change this to "Exe" and start your app from the console -->
|
|
<OutputType Condition="'$(Configuration.toUpper())' != 'DEBUG'">WinExe</OutputType>
|
|
<OutputType Condition="'$(Configuration.toUpper())' == 'DEBUG'">Exe</OutputType>
|
|
<TargetFramework>net7.0</TargetFramework>
|
|
<ApplicationIcon>Assets/app.ico</ApplicationIcon>
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
<Nullable>enable</Nullable>
|
|
<PublishAot>true</PublishAot>
|
|
<PublishTrimmed>true</PublishTrimmed>
|
|
<SelfContained>true</SelfContained>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<IsWindows Condition="$([MSBuild]::IsOSPlatform('Windows'))">true</IsWindows>
|
|
<IsLinux Condition="$([MSBuild]::IsOSPlatform('Linux'))">true</IsLinux>
|
|
<IsOSX Condition="$([MSBuild]::IsOSPlatform('OSX'))">true</IsOSX>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<TrimMode>link</TrimMode>
|
|
<!--These can help when debugging weird exceptions especially when reflection is involved. See https://github.com/dotnet/corert/blob/master/Documentation/using-corert/optimizing-corert.md -->
|
|
<!--RootAllApplicationAssemblies: False -> TrimMode:link See https://github.com/dotnet/runtimelab/issues/597 and https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/optimizing.md -->
|
|
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
|
|
<IlcGenerateStackTraceData Condition="'$(Configuration.toUpper())' != 'DEBUG'">false</IlcGenerateStackTraceData>
|
|
<IlcDisableUnhandledExceptionExperience>true</IlcDisableUnhandledExceptionExperience>
|
|
<StripSymbols Condition="'$(Configuration.toUpper())' != 'DEBUG'">true</StripSymbols>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<AvaloniaResource Include="Assets/**" />
|
|
<AvaloniaResource Include="Images/**" />
|
|
<None Update="Assets/app.icns" CopyToPublishDirectory="PreserveNewest" Condition="$(RuntimeIdentifier.StartsWith('osx'))">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="dotnet.png">
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Update="avalonia.png">
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<RuntimeHostConfigurationOption Include="Switch.System.Reflection.Assembly.SimulatedCallingAssembly" Value="true" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia" Version="11.0.0-*" />
|
|
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-*" />
|
|
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.0-*" />
|
|
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-*" />
|
|
<PackageReference Include="Avalonia.Themes.Simple" Version="11.0.0-*" />
|
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-*" />
|
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
|
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0-*" />
|
|
<!--Condition below is needed to generate macOS App only.-->
|
|
<PackageReference Include="Dotnet.Bundle" Version="0.9.13" Condition="$(RuntimeIdentifier.StartsWith('osx'))" />
|
|
</ItemGroup>
|
|
|
|
<!-- Information for Dotnet.Bundle to Generate macOS app-->
|
|
<PropertyGroup>
|
|
<CFBundleName>$(AssemblyName)</CFBundleName>
|
|
<CFBundleDisplayName>$(AssemblyName)</CFBundleDisplayName>
|
|
<CFBundleIdentifier>com.$(username).$(AssemblyName)</CFBundleIdentifier>
|
|
<CFBundleVersion>1.0.0</CFBundleVersion>
|
|
<CFBundlePackageType>APPL</CFBundlePackageType>
|
|
<!--<CFBundleSignature>????</CFBundleSignature>-->
|
|
<CFBundleExecutable>$(AssemblyName)</CFBundleExecutable>
|
|
<CFBundleIconFile>Assets/app.icns</CFBundleIconFile>
|
|
<NSPrincipalClass>NSApplication</NSPrincipalClass>
|
|
<NSHighResolutionCapable>true</NSHighResolutionCapable>
|
|
<CFBundleShortVersionString>1.0</CFBundleShortVersionString>
|
|
<!-- Optional -->
|
|
<NSRequiresAquaSystemAppearance>true</NSRequiresAquaSystemAppearance>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|