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

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <StartupObject>BuildTool.Program</StartupObject>
    <UserSecretsId>build-7f7a4354050726fe6f1b5cfd0a8592d0ee71bab853fc1c5c128d53981653347c</UserSecretsId>

    <PublishAot>true</PublishAot>
    <InvariantGlobalization>true</InvariantGlobalization>
    <RuntimeIdentifier>win-x64</RuntimeIdentifier>

    <DeploymentPath>$(SolutionDir)..</DeploymentPath>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="SimpleExec" Version="13.0.0" />
    <PackageReference Include="Spectre.Console" Version="0.55.0" />
    <PackageReference Include="System.CommandLine" Version="2.0.5" />
  </ItemGroup>

    <Target Name="CopyExe" AfterTargets="Publish">
        <Copy SourceFiles="$(PublishDir)$(TargetName).exe" DestinationFolder="$(DeploymentPath)" SkipUnchangedFiles="true" />
    </Target>
</Project>
