Files
LanMountainDesktop/LanMountainDesktop.Launcher/LanMountainDesktop.Launcher.csproj

58 lines
2.4 KiB
XML
Raw Normal View History

2026-04-16 01:59:21 +08:00
<Project Sdk="Microsoft.NET.Sdk" TreatAsLocalProperty="Version;PackageVersion;InformationalVersion;AssemblyVersion;FileVersion">
2026-04-17 15:16:01 +08:00
<!-- 导入 AOT 配置 -->
<Import Project="LanMountainDesktop.Launcher.AOT.props" Condition="Exists('LanMountainDesktop.Launcher.AOT.props')" />
2026-04-16 01:59:21 +08:00
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>1.0.0</Version>
<PackageVersion>$(Version)</PackageVersion>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
2026-04-17 15:16:01 +08:00
<!-- 应用程序图标 -->
<ApplicationIcon>Assets\logo.ico</ApplicationIcon>
2026-04-16 01:59:21 +08:00
</PropertyGroup>
<ItemGroup>
2026-04-16 19:28:58 +08:00
<!-- 只引用 Shared.ContractsIPC 协议) -->
<ProjectReference Include="..\LanMountainDesktop.Shared.Contracts\LanMountainDesktop.Shared.Contracts.csproj" />
2026-04-16 01:59:21 +08:00
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.3.12" />
<PackageReference Include="Avalonia.Desktop" Version="11.3.12" />
2026-04-16 19:28:58 +08:00
<PackageReference Include="FluentAvaloniaUI" Version="2.5.0" />
2026-04-16 01:59:21 +08:00
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.12" />
2026-04-16 14:17:46 +08:00
<PackageReference Include="Tmds.DBus.Protocol" Version="0.92.0" />
2026-04-16 01:59:21 +08:00
</ItemGroup>
2026-04-17 15:16:01 +08:00
<!-- 资源文件 -->
2026-04-16 14:17:46 +08:00
<ItemGroup>
2026-04-17 15:16:01 +08:00
<!-- 公钥文件 -->
2026-04-16 14:17:46 +08:00
<None Include="Assets\public-key.pem" CopyToOutputDirectory="PreserveNewest" />
2026-04-17 15:16:01 +08:00
<!-- Avalonia 资源文件 -->
<AvaloniaResource Include="Assets\logo.ico" />
2026-04-16 14:17:46 +08:00
</ItemGroup>
<Target Name="CopyPublicKeyToLauncherDir" AfterTargets="Build">
<PropertyGroup>
<PublicKeySource>$(MSBuildProjectDirectory)\Assets\public-key.pem</PublicKeySource>
<PublicKeyDestDir>$(OutDir).launcher\update</PublicKeyDestDir>
</PropertyGroup>
<MakeDir Directories="$(PublicKeyDestDir)" />
<Copy SourceFiles="$(PublicKeySource)" DestinationFolder="$(PublicKeyDestDir)" SkipUnchangedFiles="true" />
</Target>
<Target Name="CopyPublicKeyToPublishDir" AfterTargets="Publish">
<PropertyGroup>
<PublishedKeySource>$(MSBuildProjectDirectory)\Assets\public-key.pem</PublishedKeySource>
<PublishedKeyDestDir>$(PublishDir).launcher\update</PublishedKeyDestDir>
</PropertyGroup>
<MakeDir Directories="$(PublishedKeyDestDir)" />
<Copy SourceFiles="$(PublishedKeySource)" DestinationFolder="$(PublishedKeyDestDir)" SkipUnchangedFiles="true" />
</Target>
2026-04-16 01:59:21 +08:00
</Project>