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>
48 lines
2.3 KiB
XML
48 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<!-- Multi-targeted: net48 for the Console, net8.0-windows for the Launcher Service. -->
|
|
<TargetFrameworks>net48;net8.0-windows</TargetFrameworks>
|
|
|
|
<!-- CRITICAL: the output assembly MUST be named TeslaConsoleLaunchLib at
|
|
version 1.0.0.0. BinaryFormatter embeds the assembly name in the wire
|
|
stream and the Console resolves the wire types by that simple name, so
|
|
renaming the assembly would change the protocol. This is a pure
|
|
refactor that keeps the bytes identical. -->
|
|
<AssemblyName>TeslaConsoleLaunchLib</AssemblyName>
|
|
<RootNamespace>Tesla.Net</RootNamespace>
|
|
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
|
<FileVersion>1.0.0.0</FileVersion>
|
|
<Version>1.0.0.0</Version>
|
|
|
|
<Nullable>disable</Nullable>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<LangVersion>latest</LangVersion>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<!-- Decompiled-style source: designer-ish fields, BinaryFormatter on net6. -->
|
|
<NoWarn>$(NoWarn);SYSLIB0011</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!-- net48 reference assemblies so the project builds without a full targeting pack,
|
|
plus System.Text.Json (built into the net8 shared framework, a package on net48). -->
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
|
<PackageReference Include="System.Text.Json" Version="8.0.5" />
|
|
</ItemGroup>
|
|
|
|
<!-- The TCP/OFB client (Client/**) is net48-only: it depends on the crypto-stream
|
|
handshake in TeslaSecureConfiguration.dll. The Launcher (net6) is the SERVER
|
|
end of this protocol and never references these classes, so they are excluded
|
|
from the net6.0-windows build (which carries only the wire data types). -->
|
|
<ItemGroup Condition="'$(TargetFramework)' != 'net48'">
|
|
<Compile Remove="Client\**\*.cs" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
|
|
<!-- Source-built secure-config (PodConfigurationServer.NegotiateCryptoStreams),
|
|
emitting assembly TeslaSecureConfiguration. net48-only, same as Client/**. -->
|
|
<ProjectReference Include="..\SecureConfig\Tesla.SecureConfig.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|