| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>WinExe</OutputType>
- <TargetFramework>net8.0-windows</TargetFramework>
- <Nullable>disable</Nullable>
- <ImplicitUsings>disable</ImplicitUsings>
- <UseWPF>true</UseWPF>
- <!-- 相机/图像处理 DLL 是 x64 原生库,进程必须是 x64 -->
- <Platforms>x64</Platforms>
- <PlatformTarget>x64</PlatformTarget>
- <AssemblyName>AutoFocusTool</AssemblyName>
- <RootNamespace>AutoFocusTool</RootNamespace>
- </PropertyGroup>
- <ItemGroup>
- <!-- 排除独立exe子工程目录(各自单独编译),避免其obj/源文件被主工程重复编译 -->
- <Compile Remove="SelfTest\**\*.cs" />
- <Compile Remove="Survey\**\*.cs" />
- <Compile Remove="SmokeTest\**\*.cs" />
- <Compile Remove="CalibTest\**\*.cs" />
- <Compile Remove="Calibrate\**\*.cs" />
- <Compile Remove="HScan\**\*.cs" />
- <Compile Remove="ToPng\**\*.cs" />
- <Compile Remove="bin\**\*.cs" />
- <Compile Remove="obj\**\*.cs" />
- <Page Remove="SelfTest\**" />
- <Page Remove="Survey\**" />
- <Page Remove="SmokeTest\**" />
- <Page Remove="CalibTest\**" />
- <Page Remove="Calibrate\**" />
- <Page Remove="HScan\**" />
- <Page Remove="ToPng\**" />
- </ItemGroup>
- <ItemGroup>
- <!-- System.Drawing 用于 byte[]→Bitmap→BitmapSource 显示与存图 -->
- <PackageReference Include="System.Drawing.Common" Version="8.0.0" />
- <!-- 串口 -->
- <PackageReference Include="System.IO.Ports" Version="8.0.0" />
- </ItemGroup>
- <ItemGroup>
- <!-- 相机原生 DLL:随生成复制到输出目录 DependFile\ccd\ -->
- <None Include="DependFile\ccd\*.dll">
- <Link>DependFile\ccd\%(Filename)%(Extension)</Link>
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
- </ItemGroup>
- </Project>
|