| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <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>
- <!-- 排除编译输出目录,避免其源文件被主工程重复编译 -->
- <Compile Remove="bin\**\*.cs" />
- <Compile Remove="obj\**\*.cs" />
- <!-- 排除独立测试子工程(各有自己的 .csproj 与 Main),否则主工程多入口点 CS0017。
- 这些是参考/测试外壳,不属主对焦工具(算法已移植进合并端 IvfTl.AutoFocus)。 -->
- <Compile Remove="SelfTest\**\*.cs" />
- <Compile Remove="SmokeTest\**\*.cs" />
- <Compile Remove="Calibrate\**\*.cs" />
- <Compile Remove="CalibTest\**\*.cs" />
- <Compile Remove="ToPng\**\*.cs" />
- </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>
|