Make the Console<->Launcher system source-built and modern now that the console is under our control and the WinXP-era pods are gone. Contract extraction (Contract/Tesla.Contract.csproj): - One multi-targeted (net48;net8.0-windows) source project for the RPC contract, replacing the vendored TeslaConsoleLaunchLib.dll and the hand-synced Tesla.Net replica in Launcher/LaunchModels_Shared.cs. Emits assembly TeslaConsoleLaunchLib. SecureConfig extraction (SecureConfig/Tesla.SecureConfig.csproj): - net48 source of the first-boot provisioning protocol (UDP beacons, OFB crypto, RSA key exchange), replacing the vendored TeslaSecureConfiguration.dll. Remove BinaryFormatter from the wire (RCE sink + the reason net6 was pinned): - Console<->Launcher RPC is now length-prefixed System.Text.Json frames (Contract/PodRpcProtocol.cs) over the unchanged OFB transport; dispatch by method name. Deleted the SerializationBinder / MethodInfoProxy machinery. - Console-local BinaryFormatter (Site config, mission replays) intentionally retained: local net48 file I/O, not the network surface. Runtime modernization: - Launcher Service + Agent: net6 -> net8, win-x86 -> win-x64 (all pods are 64-bit Win10). Kept the SHA1-default PBKDF2 (Console key-derivation compat) with SYSLIB0041 suppressed and documented. Tests: differential suite now 73 green. Added SecureConfigCompatTests (OFB ciphertext byte-identical to the vendored DLL) and PodRpcProtocolTests (JSON round-trip of every request/response shape); removed the now-obsolete BinaryFormatter byte-identity guard. Build hygiene: per-project obj dirs (Launcher/Directory.Build.props) fix a NuGet restore collision between the two Launcher projects sharing one folder. NOT runtime-verified against a live pod. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
54 lines
2.3 KiB
XML
54 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<!--
|
|
Differential test suite: verifies the reconstructed TeslaConsole.exe behaves
|
|
identically to the original (reference baseline in ../../original).
|
|
|
|
Targets net48 on purpose: the comparison loads BOTH assemblies (which share
|
|
the exact same assembly identity, TeslaConsole 4.11.3.37076) into separate
|
|
AppDomains, which only the .NET Framework runtime supports.
|
|
-->
|
|
<PropertyGroup>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>disable</Nullable>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<IsPackable>false</IsPackable>
|
|
<AssemblyName>TeslaConsole.DiffTests</AssemblyName>
|
|
<RootNamespace>TeslaConsole.DiffTests</RootNamespace>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- net48 reference assemblies so this builds without a full targeting pack installed -->
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
|
<PackageReference Include="xunit" Version="2.6.6" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="System.Drawing" />
|
|
<Reference Include="System.Xml" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!--
|
|
Build the reconstruction before the tests so we always compare against a fresh
|
|
build. ReferenceOutputAssembly=false: we load it by path via reflection, and
|
|
copying it next to the tests would collide with the original's identical identity.
|
|
-->
|
|
<ProjectReference Include="..\..\TeslaConsole.csproj">
|
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
<Private>false</Private>
|
|
</ProjectReference>
|
|
<!-- The source-built wire contract (emits TeslaConsoleLaunchLib.dll). Referenced
|
|
directly so WireContractCompatTests can construct Tesla.Net types and compare
|
|
their BinaryFormatter output against the original vendored DLL. -->
|
|
<ProjectReference Include="..\..\..\Contract\Tesla.Contract.csproj" />
|
|
<!-- The source-built secure-config (emits TeslaSecureConfiguration.dll), for
|
|
SecureConfigCompatTests' byte-identity checks vs the original vendored DLL. -->
|
|
<ProjectReference Include="..\..\..\SecureConfig\Tesla.SecureConfig.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|