Files
2026-11-25 13:35:06 +08:00

58 lines
2.4 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!--
DirectML 的 build targets 仅在 PlatformTarget=x64 时复制 DirectML.dll,
AnyCPU 会导致运行时缺少该原生库而退回 CPU,因此这里固定为 x64。
-->
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FlashCap" Version="1.12.0" />
<PackageReference Include="LiteDB" Version="5.0.21" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.14" />
<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.14" />
<!--
DirectML 版 ONNX Runtime:可用核显/独显推理,不支持的算子自动回退 CPU。
注意:该包与纯 CPU 版 Microsoft.ML.OnnxRuntime 的原生 dll 冲突,只能二选一;
1.24.4 是最后一个提供 DirectML 执行后端的稳定版本。
-->
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.24.4" />
<PackageReference Include="OpenCvSharp4" Version="4.10.0.20241108" />
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.10.0.20241108" />
</ItemGroup>
<!--
NIST 谱线库与光栅修正数据,扫描分析按相对路径 db 加载,必须复制到输出目录。
CfLibs 的 .cs 文件仍然参与编译,这里只复制数据文件。
-->
<ItemGroup>
<Content Include="db\**\*" Exclude="db\**\*.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
<!--
位移台原生库,P/Invoke 按文件名加载,必须位于可执行文件同目录
-->
<ItemGroup>
<None Update="dll\AxisPlatform2.dll">
<Link>AxisPlatform2.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
<!-- 对焦系统原生库,P/Invoke 按文件名加载,必须位于可执行文件同目录 -->
<None Update="dll\FocusSystem2.dll">
<Link>FocusSystem2.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
</ItemGroup>
</Project>