AutoFocusTool.csproj 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. </ItemGroup>
  19. <ItemGroup>
  20. <!-- System.Drawing 用于 byte[]→Bitmap→BitmapSource 显示与存图 -->
  21. <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
  22. <!-- 串口 -->
  23. <PackageReference Include="System.IO.Ports" Version="8.0.0" />
  24. </ItemGroup>
  25. <ItemGroup>
  26. <!-- 相机原生 DLL:随生成复制到输出目录 DependFile\ccd\ -->
  27. <None Include="DependFile\ccd\*.dll">
  28. <Link>DependFile\ccd\%(Filename)%(Extension)</Link>
  29. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  30. </None>
  31. </ItemGroup>
  32. </Project>