将 StandardScene 各插件的配置/监控窗体从 WinForms 迁移到 CycleGUI(删除 .Designer.cs/.resx,重写为 PanelBuilder 立即模式 UI,新增 CycleUiHelper 统一对话框)。 同时修复代码审核中的问题: - 后台文件写入加锁 + try/catch(ButtonBoxManager / DoorManager,对齐 LoopViewer.SaveTasks 模式) - CoderFieldsMetadata.cs 启用 #nullable enable,消除 CS8632 警告 - DummyCar 移除已废弃的 rightClickAction()/SetPosition() - CarRemoteHelper.OpenVehicleWebPage 的 Process.Start 加 try/catch - 重命名名不副实的 Mstsc()(现为打开网页) - 统一弃元命名为 _ - TrafficInterlockViewer 改用稳定 Id(GUID)做选择/编辑,替代行索引 - csproj 改用 $(CGUILibDir) 解析 CycleGUI,绝对路径收敛到 Directory.Build.props 构建:dotnet build StandardScene.sln → 0 错误,30 警告(均为历史遗留)。 注:static 单例状态重构(审核第 8 项)暂未处理,留待单独任务。
54 lines
2.4 KiB
XML
54 lines
2.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
||
|
||
<PropertyGroup>
|
||
<TargetFramework>net8.0-windows</TargetFramework>
|
||
<OutputType>Library</OutputType>
|
||
<RootNamespace>StandardScene</RootNamespace>
|
||
<AssemblyName>StandardScene.Devices</AssemblyName>
|
||
<LangVersion>latest</LangVersion>
|
||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||
<Platforms>AnyCPU;x64</Platforms>
|
||
<PlatformTarget>x64</PlatformTarget>
|
||
<Deterministic>true</Deterministic>
|
||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||
<ImplicitUsings>disable</ImplicitUsings>
|
||
<Nullable>disable</Nullable>
|
||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||
<NoWarn>$(NoWarn);NU1701;CS0618;CS0612;MSB3277;CA1416</NoWarn>
|
||
<AssemblySearchPaths>{HintPathFromItem};{TargetFrameworkDirectory};{RawFileName};{GAC}</AssemblySearchPaths>
|
||
</PropertyGroup>
|
||
|
||
<!-- 插件清单:随 dll 输出,供 SimpleLite plugins 选择性加载(约定 <dll>.scene.json) -->
|
||
<ItemGroup>
|
||
<None Update="StandardScene.Devices.scene.json" CopyToOutputDirectory="PreserveNewest" />
|
||
</ItemGroup>
|
||
|
||
<!-- 基座:各设备抽象基类 + 注册特性 + 业务编排(Mission/Manager/UdpService) 均留 Core;本 dll 仅含具体驱动(门/充电桩/按钮盒) -->
|
||
<ItemGroup>
|
||
<ProjectReference Include="..\StandardScene.Core\StandardScene.Core.csproj" />
|
||
</ItemGroup>
|
||
|
||
<!-- 与 Core 一致的本地契约/工具 dll + Leeg 按钮盒 SDK(leegiot);Modbus/TCP 经 Core 的 Utils/TCP 间接使用,无需 NuGet -->
|
||
<ItemGroup>
|
||
<Reference Include="SimpleLite">
|
||
<HintPath>E:\Work\Core\Simple-FR\Simple\SimpleLite\bin\Debug\SimpleLite.dll</HintPath>
|
||
</Reference>
|
||
<Reference Include="SimpleCore">
|
||
<HintPath>E:\Work\Core\Simple-FR\Simple\SimpleCore\bin\Debug\netstandard2.0\SimpleCore.dll</HintPath>
|
||
</Reference>
|
||
<Reference Include="CommonUsage">
|
||
<HintPath>D:\MDCS\Dependencies\Commons\CommonUsage.dll</HintPath>
|
||
</Reference>
|
||
<Reference Include="Topaz">
|
||
<HintPath>E:\Work\Core\Simple-FR\Simple\tools\Topaz.dll</HintPath>
|
||
</Reference>
|
||
<Reference Include="LessokajiWeaverUtilities">
|
||
<HintPath>E:\Work\Core\Simple-FR\Simple\SimpleLite\bin\Debug\LessokajiWeaverUtilities.dll</HintPath>
|
||
</Reference>
|
||
<Reference Include="leegKeys-sdk">
|
||
<HintPath>..\StandardScene.Core\Ref\leegKeys-sdk.dll</HintPath>
|
||
</Reference>
|
||
</ItemGroup>
|
||
|
||
</Project>
|