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>
74 lines
3.3 KiB
XML
74 lines
3.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<AssemblyName>TeslaConsole</AssemblyName>
|
|
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
|
|
<OutputType>WinExe</OutputType>
|
|
<UseWindowsForms>True</UseWindowsForms>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<LangVersion>Preview</LangVersion>
|
|
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
|
<ApplicationIcon>app.ico</ApplicationIcon>
|
|
<RootNamespace />
|
|
<!-- Decompiled from the original net20 TeslaConsole.exe; legacy WinForms 2.0 sources -->
|
|
<Nullable>disable</Nullable>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<!-- .resx files embed BinaryFormatter-serialized bitmaps (non-string resources) -->
|
|
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
|
<!-- CS0649: decompiled WinForms designer 'components' fields are never assigned -->
|
|
<NoWarn>$(NoWarn);CS0649</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- net48 reference assemblies so the project builds without a full targeting pack installed -->
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
|
<!-- Required to read the pre-serialized binary resources above -->
|
|
<PackageReference Include="System.Resources.Extensions" Version="6.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Runtime content the console loads relative to the exe (RPConfig.cs / RPStrings.cs / AppRegistry.cs) -->
|
|
<Content Include="RedPlanet\RPConfig.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Include="RedPlanet\RPStrings.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Include="RedPlanet\Apps.xml" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Reference-only material: original binary + source art. Not compiled, not copied. -->
|
|
<None Remove="original\**" />
|
|
<None Remove="images\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- The differential test project lives under tests\; keep its sources out of this build. -->
|
|
<Compile Remove="tests\**" />
|
|
<None Remove="tests\**" />
|
|
<Content Remove="tests\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="System.Configuration.Install" />
|
|
<Reference Include="System.Xml" />
|
|
<Reference Include="System.ServiceProcess" />
|
|
<Reference Include="Microsoft.VisualBasic" />
|
|
<Reference Include="WeifenLuo.WinFormsUI.Docking">
|
|
<HintPath>lib\WeifenLuo.WinFormsUI.Docking.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Munga Net">
|
|
<HintPath>lib\Munga Net.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="BitmapLibrary">
|
|
<HintPath>lib\BitmapLibrary.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- The wire contract (Tesla.Net) is now built from source. The project emits an
|
|
assembly still named TeslaConsoleLaunchLib so the BinaryFormatter protocol is
|
|
byte-identical to the old vendored lib\TeslaConsoleLaunchLib.dll. -->
|
|
<ProjectReference Include="..\Contract\Tesla.Contract.csproj" />
|
|
<!-- Secure-config provisioning (Tesla.PodConfigurationServer, OFBCryptoStream...),
|
|
also built from source now, emitting assembly TeslaSecureConfiguration. -->
|
|
<ProjectReference Include="..\SecureConfig\Tesla.SecureConfig.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|