957157ae80
## Compilation fixes - Fix XAML namespace reference XplorePlane.Converters → XplorePlane.Helpers (EventLogView, StateDisplayView) - Add missing using for ISampleTypeRepository / JsonSampleTypeRepository in App.xaml.cs - Fix ILoggerService.Warn() calls using Exception as first arg instead of message string - Serialize CncProgram to JSON when passing to MatrixLayout (expects string, not CncProgram object) - Suppress CS8632 nullable annotation warnings project-wide ## BGA wizard fixes - Fix preview not showing on step 3: force RefreshBgaPreview() when entering final step - Add step validation in CanNext() to prevent skipping to preview with invalid inputs - Notify NextCommand.CanExecuteChanged when inputs change - Fix RunProgress runtime binding error: set Mode=OneWay for ProgressBar.Value ## Operator toolbox: prevent duplicate insertion - Add static OperatorTarget property for direct dispatch to active pipeline - PipelineEditorView registers as toolbox target on load (floating window only) - CNC page sets initial target; PipelineEditorWindow resets to CNC pipeline on close - '+' button inserts only to the active pipeline instead of broadcasting to all subscribers ## Pipeline editor status bar messages - Add StatusBarMessageEvent / StatusBarMessagePayload to CommonEvents.cs - PipelineEditorViewModel publishes status on all ops (add/remove/reorder/save/execute) - MainViewModel subscribes and displays on main window bottom status bar - Auto-clear after timeout (3s info, 5s error) ## docs - Merge three architecture docs into consolidated XplorePlane-架构与结构说明.md
53 lines
2.6 KiB
XML
53 lines
2.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
||
<PropertyGroup>
|
||
<TargetFramework>net8.0-windows7.0</TargetFramework>
|
||
<UseWPF>true</UseWPF>
|
||
<Platforms>x64</Platforms>
|
||
<PlatformTarget>x64</PlatformTarget>
|
||
</PropertyGroup>
|
||
<ItemGroup>
|
||
<!-- ClosedXML:Excel(.xlsx) 读写库,固定到 0.104.x 稳定版 | ClosedXML: Excel(.xlsx) read/write library, pinned to 0.104.x stable -->
|
||
<PackageReference Include="ClosedXML" Version="0.104.2" />
|
||
<PackageReference Include="itext7" Version="8.0.5" />
|
||
<PackageReference Include="itext7.bouncy-castle-adapter" Version="8.0.5" />
|
||
<!-- CJK(中日韩)字体资源包,提供 cjk_registry.properties 等嵌入资源 -->
|
||
<!-- 缺失时 CjkResourceLoader.LoadRegistry() 会因找不到资源而抛 NullReferenceException(Release 模式下更易触发)-->
|
||
<PackageReference Include="itext.font-asian" Version="8.0.5" GeneratePathProperty="true" />
|
||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||
<PackageReference Include="Prism.Wpf" Version="9.0.537" />
|
||
<!-- 代码页编码支持:.NET 8 需注册 CodePagesEncodingProvider 才能使用 GB2312/GBK | Code page encoding support: required to register CodePagesEncodingProvider for GB2312/GBK on .NET 8 -->
|
||
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
||
<PackageReference Include="Telerik.UI.for.Wpf.NetCore.Xaml" Version="2024.1.408" PrivateAssets="all" />
|
||
</ItemGroup>
|
||
<ItemGroup>
|
||
<ProjectReference Include="..\XP.Common\XP.Common.csproj" />
|
||
</ItemGroup>
|
||
<ItemGroup>
|
||
<Folder Include="Documents\" />
|
||
</ItemGroup>
|
||
<!-- 字体目录保留备用,当前使用系统字体 | Fonts directory reserved, currently using system fonts -->
|
||
<!-- 如需添加自定义字体,取消以下注释 | Uncomment below to add custom fonts -->
|
||
<!--
|
||
<ItemGroup>
|
||
<None Remove="Fonts\*.otf" />
|
||
<None Remove="Fonts\*.ttf" />
|
||
<Resource Remove="Fonts\*.ttf" />
|
||
<Resource Remove="Fonts\*.otf" />
|
||
<EmbeddedResource Include="Fonts\*.otf" />
|
||
<EmbeddedResource Include="Fonts\*.ttf" />
|
||
</ItemGroup>
|
||
-->
|
||
<!-- 模板文件复制到输出目录 | Copy template files to output directory -->
|
||
<ItemGroup>
|
||
<Content Include="Templates\*.json">
|
||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||
</Content>
|
||
</ItemGroup>
|
||
<Target Name="CopyITextFontAsianResourceAssembly" AfterTargets="Build">
|
||
<Copy
|
||
SourceFiles="$(Pkgitext_font-asian)\lib\netstandard2.0\itext.font_asian.dll"
|
||
DestinationFolder="$(OutDir)"
|
||
SkipUnchangedFiles="true" />
|
||
</Target>
|
||
</Project>
|