AutoFocusTool.csproj 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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="bin\**\*.cs" />
  23. <Compile Remove="obj\**\*.cs" />
  24. <Page Remove="SelfTest\**" />
  25. <Page Remove="Survey\**" />
  26. <Page Remove="SmokeTest\**" />
  27. <Page Remove="CalibTest\**" />
  28. <Page Remove="Calibrate\**" />
  29. <Page Remove="HScan\**" />
  30. <Page Remove="ToPng\**" />
  31. </ItemGroup>
  32. <ItemGroup>
  33. <!-- System.Drawing 用于 byte[]→Bitmap→BitmapSource 显示与存图 -->
  34. <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
  35. <!-- 串口 -->
  36. <PackageReference Include="System.IO.Ports" Version="8.0.0" />
  37. </ItemGroup>
  38. <ItemGroup>
  39. <!-- 相机原生 DLL:随生成复制到输出目录 DependFile\ccd\ -->
  40. <None Include="DependFile\ccd\*.dll">
  41. <Link>DependFile\ccd\%(Filename)%(Extension)</Link>
  42. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  43. </None>
  44. </ItemGroup>
  45. </Project>