31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\HardwareControl.Core\HardwareControl.Core.csproj" />
|
|
</ItemGroup>
|
|
|
|
<!--
|
|
ONNX 分割模型放在 Models 目录下,构建时自动复制到输出目录。
|
|
默认加载路径为 Models 目录(见 appsettings.json)。
|
|
-->
|
|
<ItemGroup>
|
|
<Content Include="Models\**\*.onnx" CopyToOutputDirectory="PreserveNewest" />
|
|
<Content Include="..\HardwareControl.Core\Models\**\*.onnx" Link="Models\%(RecursiveDir)%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Remove="..\HardwareControl.Core\Models\3.medicinals_expert_logits.onnx" />
|
|
<Content Remove="..\HardwareControl.Core\Models\4.highvalue_expert_logits.onnx" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|