AutoFocusTool.csproj 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <!-- 排除编译输出目录,避免其源文件被主工程重复编译 -->
  16. <Compile Remove="bin\**\*.cs" />
  17. <Compile Remove="obj\**\*.cs" />
  18. <!-- 排除独立测试子工程(各有自己的 .csproj 与 Main),否则主工程多入口点 CS0017。
  19. 这些是参考/测试外壳,不属主对焦工具(算法已移植进合并端 IvfTl.AutoFocus)。 -->
  20. <Compile Remove="SelfTest\**\*.cs" />
  21. <Compile Remove="SmokeTest\**\*.cs" />
  22. <Compile Remove="Calibrate\**\*.cs" />
  23. <Compile Remove="CalibTest\**\*.cs" />
  24. <Compile Remove="ToPng\**\*.cs" />
  25. </ItemGroup>
  26. <ItemGroup>
  27. <!-- System.Drawing 用于 byte[]→Bitmap→BitmapSource 显示与存图 -->
  28. <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
  29. <!-- 串口 -->
  30. <PackageReference Include="System.IO.Ports" Version="8.0.0" />
  31. </ItemGroup>
  32. <ItemGroup>
  33. <!-- 相机原生 DLL:随生成复制到输出目录 DependFile\ccd\ -->
  34. <None Include="DependFile\ccd\*.dll">
  35. <Link>DependFile\ccd\%(Filename)%(Extension)</Link>
  36. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  37. </None>
  38. </ItemGroup>
  39. </Project>