AutoFocusTool.csproj 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <OutputType>WinExe</OutputType>
  4. <TargetFramework>net8.0-windows</TargetFramework>
  5. <Nullable>disable</Nullable>
  6. <ImplicitUsings>disable</ImplicitUsings>
  7. <UseWPF>true</UseWPF>
  8. <!-- 相机/图像处理 DLL 是 x64 原生库,进程必须是 x64 -->
  9. <Platforms>x64</Platforms>
  10. <PlatformTarget>x64</PlatformTarget>
  11. <AssemblyName>AutoFocusTool</AssemblyName>
  12. <RootNamespace>AutoFocusTool</RootNamespace>
  13. </PropertyGroup>
  14. <ItemGroup>
  15. <!-- 排除独立exe子工程目录(各自单独编译),避免其obj/源文件被主工程重复编译 -->
  16. <Compile Remove="SelfTest\**\*.cs" />
  17. <Compile Remove="Survey\**\*.cs" />
  18. <Compile Remove="SmokeTest\**\*.cs" />
  19. <Compile Remove="CalibTest\**\*.cs" />
  20. <Compile Remove="Calibrate\**\*.cs" />
  21. <Compile Remove="HScan\**\*.cs" />
  22. <Compile Remove="ToPng\**\*.cs" />
  23. <Compile Remove="WellSpacing\**\*.cs" />
  24. <Compile Remove="Logs\**\*.cs" />
  25. <Compile Remove="TestData\**\*.cs" />
  26. <Compile Remove="bin\**\*.cs" />
  27. <Compile Remove="obj\**\*.cs" />
  28. <Page Remove="SelfTest\**" />
  29. <Page Remove="Survey\**" />
  30. <Page Remove="SmokeTest\**" />
  31. <Page Remove="CalibTest\**" />
  32. <Page Remove="Calibrate\**" />
  33. <Page Remove="HScan\**" />
  34. <Page Remove="ToPng\**" />
  35. </ItemGroup>
  36. <ItemGroup>
  37. <!-- System.Drawing 用于 byte[]→Bitmap→BitmapSource 显示与存图 -->
  38. <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
  39. <!-- 串口 -->
  40. <PackageReference Include="System.IO.Ports" Version="8.0.0" />
  41. </ItemGroup>
  42. <ItemGroup>
  43. <!-- 相机原生 DLL:随生成复制到输出目录 DependFile\ccd\ -->
  44. <None Include="DependFile\ccd\*.dll">
  45. <Link>DependFile\ccd\%(Filename)%(Extension)</Link>
  46. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  47. </None>
  48. </ItemGroup>
  49. </Project>