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

  <PropertyGroup>
    <TargetFramework>net48</TargetFramework>
    <OutputType>WinExe</OutputType>
    <UseWindowsForms>true</UseWindowsForms>
    <Nullable>disable</Nullable>
    <ImplicitUsings>disable</ImplicitUsings>
    <LangVersion>latest</LangVersion>
    <WarningsAsErrors></WarningsAsErrors>
    <Version>4.11.4.1</Version>
    <ApplicationIcon>app.ico</ApplicationIcon>
    <AssemblyName>TeslaLauncherAgent</AssemblyName>
    <RootNamespace>Tesla.Launcher.Agent</RootNamespace>
    <StartupObject>Tesla.Launcher.Agent.AgentApplication</StartupObject>
  </PropertyGroup>

  <ItemGroup>
    <!-- Exclude service-only source files — they belong to TeslaLauncherService.csproj -->
    <Compile Remove="TeslaLauncherService.cs" />
    <Compile Remove="SecureConfig.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
    <!-- Agent parses configuring.json + the IPC JSON; built-in on net6, a package on net48. -->
    <PackageReference Include="System.Text.Json" Version="8.0.5" />
  </ItemGroup>

</Project>
