forked from Rinzller/FlightDeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlightDeck-Installer.csproj
56 lines (50 loc) · 2.41 KB
/
FlightDeck-Installer.csproj
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
52
53
54
55
56
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<ApplicationIcon>Assets\favicon.ico</ApplicationIcon>
<!-- Publish Properties -->
<Configuration>Release</Configuration>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<!-- Reduce exe size -->
<PublishTrimmed>true</PublishTrimmed>
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
<TrimMode>full</TrimMode>
<!-- <SatelliteResourceLanguages>en</SatelliteResourceLanguages> -->
<!-- Get git tag -->
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
</PropertyGroup>
<Target Name="AddGitTagAttribute" BeforeTargets="PreBuildEvent">
<Exec Command="powershell -Command "git tag --sort=-version:refname | Select-Object -First 1"" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitTag" />
</Exec>
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadata">
<_Parameter1>GitTag</_Parameter1>
<_Parameter2>$(GitTag)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Target>
<ItemGroup>
<Folder Include="Models\" />
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.10" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.10" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.10" />
<!--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.10" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.10" />
<!-- Custom packages -->
<PackageReference Include="WindowsShortcutFactory" Version="1.1.0" />
</ItemGroup>
</Project>