<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <Nullable>enable</Nullable>
    <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
    <ApplicationManifest>app.manifest</ApplicationManifest>
    <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
    <AssemblyName>DsmTool</AssemblyName>
    <RootNamespace>DsmTool</RootNamespace>

    <!-- C방향: 완전 무설치 · 초경량 단일 네이티브 exe -->
    <RuntimeIdentifier>win-x64</RuntimeIdentifier>
    <PublishAot>true</PublishAot>
    <InvariantGlobalization>true</InvariantGlobalization>
    <StripSymbols>true</StripSymbols>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Avalonia" Version="11.2.3" />
    <PackageReference Include="Avalonia.Desktop" Version="11.2.3" />
    <PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.3" />
  </ItemGroup>

  <!-- 네이티브 렌더 DLL을 exe에 임베드 → 실행 시 자체 추출(진짜 단일 exe) -->
  <ItemGroup>
    <EmbeddedResource Include="native\libSkiaSharp.dll" />
    <EmbeddedResource Include="native\av_libglesv2.dll" />
    <EmbeddedResource Include="native\libHarfBuzzSharp.dll" />
  </ItemGroup>

</Project>
