Converts the Launcher Service + Agent from net8/win-x64 self-contained to net48 framework-dependent, and makes Tesla.Contract net48-only (drops multi-targeting). Both consumers (Console + Launcher) are now a single TFM. Code changes for net48 (the only net8/netstandard2.1 APIs in use): - RandomNumberGenerator.Fill -> RandomNumberGenerator.Create().GetBytes (3x) - TcpListener.AcceptTcpClientAsync(ct) -> AcceptTcpClientAsync() + stop-on-cancel - byte[].AsSpan().SequenceEqual -> Linq SequenceEqual (no System.Memory) (2x) - PipeStream.Write(byte[]) / WriteAsync(byte[],ct) -> explicit (buf,0,len[,ct]) - Math.Clamp -> Math.Max/Min The generic host (Microsoft.Extensions.Hosting 8.x + UseWindowsService) runs on net48 unchanged. build.bat/install.bat updated for the folder-of-DLLs deploy; solution platform reverted x64 -> AnyCPU. RESULT — package size: ~3.7 MB on disk / 1.58 MB zipped, vs ~213 MB / 91 MB for the net8 self-contained build (~50-58x smaller). net48 ships in Win10/11 so no runtime prerequisite. 73 tests green; NOT re-validated on a live pod. Spike branch for evaluation — do not merge without a pod re-test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<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>
|