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

  <!--
    Test project for the WPF host's pure-logic services (OperatorPresetStore,
    OutputNameTemplate, NotesService, OSC parser). Targets net8.0-windows
    because Dragon-ISO.App is net8.0-windows + WinExe â€” a pure net8.0 test
    project can't reference it.

    Tests cover services that are mostly framework-free, but
    ControlSurfaceServer transitively references System.Windows.Threading
    (DispatcherTimer) and System.Windows.Application â€” UseWPF=true pulls
    in those types so test code compiles against the App's project
    reference without "could not load type" errors at run time.
  -->
  <PropertyGroup>
    <TargetFramework>net8.0-windows</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <UseWPF>true</UseWPF>

    <IsPackable>false</IsPackable>
    <IsTestProject>true</IsTestProject>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="coverlet.collector" Version="6.0.0">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="FluentAssertions" Version="6.12.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
    <PackageReference Include="xunit" Version="2.5.3" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
    <PackageReference Include="Xunit.StaFact" Version="1.1.11" />
  </ItemGroup>

  <ItemGroup>
    <Using Include="Xunit" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\Dragon-ISO.App\Dragon-ISO.App.csproj" />
  </ItemGroup>

</Project>
