| 12345678910111213141516171819202122232425262728293031323334353637 |
- <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" />
- </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>
|