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

    <PropertyGroup>
        <!-- Multi-target: net10.0 for modern consumer projects (Galaxy.Proxy.Tests, E2E, Admin.Tests),
             net48 for the Galaxy.Host.Tests project that has to stay on .NET Framework x86 for its
             MXAccess-COM parent project. The helper uses no OS-level APIs that differ between the
             two frameworks (registry / SQL / ServiceController are surface-compatible). -->
        <TargetFrameworks>net10.0;net48</TargetFrameworks>
        <Nullable>enable</Nullable>
        <ImplicitUsings>enable</ImplicitUsings>
        <LangVersion>latest</LangVersion>
        <IsPackable>false</IsPackable>
        <RootNamespace>ZB.MOM.WW.OtOpcUa.Driver.Galaxy.TestSupport</RootNamespace>
    </PropertyGroup>

    <ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
        <!-- System.ServiceProcess.ServiceController + Microsoft.Win32.Registry are cross-platform
             assemblies that throw PlatformNotSupportedException on non-Windows; the probes in
             this project guard with RuntimeInformation.IsOSPlatform(OSPlatform.Windows) so they
             return Skip on Linux/macOS rather than crashing the test host. -->
        <PackageReference Include="System.ServiceProcess.ServiceController" Version="10.0.0"/>
        <PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0"/>
        <PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.1"/>
    </ItemGroup>

    <ItemGroup Condition="'$(TargetFramework)' == 'net48'">
        <!-- net48 ships System.ServiceProcess + Microsoft.Win32 in-box via BCL references. -->
        <Reference Include="System.ServiceProcess"/>
        <!-- Microsoft.Data.SqlClient v6 supports net462+; single-target for consistency. -->
        <PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.1"/>
    </ItemGroup>

    <ItemGroup>
        <NuGetAuditSuppress Include="https://github.com/advisories/GHSA-37gx-xxp4-5rgx"/>
        <NuGetAuditSuppress Include="https://github.com/advisories/GHSA-w3x6-4m5h-cxqf"/>
    </ItemGroup>

</Project>
