| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <TargetFramework>net48</TargetFramework>
- <Nullable>disable</Nullable>
- <UseWPF>true</UseWPF>
- <Platforms>x64</Platforms>
- <PlatformTarget>x64</PlatformTarget>
- <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
- <RootNamespace>Plugins.Halcon</RootNamespace>
- <AssemblyName>Plugins.Halcon.Logic</AssemblyName>
- </PropertyGroup>
- <ItemGroup>
- <PackageReference Include="OpenCvSharp4" Version="4.13.0.20260627" />
- <PackageReference Include="OpenCvSharp4.runtime.win" Version="4.13.0.20260627" />
- <PackageReference Include="PropertyGridLib" Version="1.2.0" />
- <PackageReference Include="System.Text.Json" Version="10.0.0" />
- </ItemGroup>
- <!-- HALCON 逻辑判断算子包。命名规范与迁移兼容说明见 Plugins.Halcon.ImageProcessing 工程。 -->
- <ItemGroup>
- <ProjectReference Include="..\..\..\TeamAAS.Core\TeamAAS.Core\TeamAAS.Core.csproj" />
- <ProjectReference Include="..\..\Plugins.Halcon\Plugins.Halcon.csproj" />
- </ItemGroup>
- <!-- HALCON 托管 SDK:显式引用主工程 HalconSdk 里的 halcondotnet.dll;运行时由主插件随目录复制,不重复输出 -->
- <ItemGroup>
- <Reference Include="halcondotnet">
- <HintPath>..\..\Plugins.Halcon\HalconSdk\halcondotnet.dll</HintPath>
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <Target Name="CopyPluginDll" AfterTargets="Build" Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
- <PropertyGroup>
- <PluginDir>$(MSBuildThisFileDirectory)..\..\..\EXE\win-x64\Plugins\HalconPlugins\</PluginDir>
- </PropertyGroup>
- <MakeDir Directories="$(PluginDir)" Condition="!Exists('$(PluginDir)')" />
- <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PluginDir)" SkipUnchangedFiles="true" />
- </Target>
- </Project>
|