Plugins.Halcon.Measurement.csproj 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net48</TargetFramework>
  4. <Nullable>disable</Nullable>
  5. <UseWPF>true</UseWPF>
  6. <Platforms>x64</Platforms>
  7. <PlatformTarget>x64</PlatformTarget>
  8. <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  9. <RootNamespace>Plugins.Halcon</RootNamespace>
  10. <AssemblyName>Plugins.Halcon.Measurement</AssemblyName>
  11. </PropertyGroup>
  12. <ItemGroup>
  13. <PackageReference Include="OpenCvSharp4" Version="4.13.0.20260627" />
  14. <PackageReference Include="OpenCvSharp4.runtime.win" Version="4.13.0.20260627" />
  15. <PackageReference Include="PropertyGridLib" Version="1.2.0" />
  16. <PackageReference Include="System.Text.Json" Version="10.0.0" />
  17. </ItemGroup>
  18. <!-- HALCON 几何测量算子包。命名规范与迁移兼容说明见 Plugins.Halcon.ImageProcessing 工程。 -->
  19. <ItemGroup>
  20. <ProjectReference Include="..\..\..\TeamAAS.Core\TeamAAS.Core\TeamAAS.Core.csproj" />
  21. <ProjectReference Include="..\..\Plugins.Halcon\Plugins.Halcon.csproj" />
  22. </ItemGroup>
  23. <!-- HALCON 托管 SDK:显式引用主工程 HalconSdk 里的 halcondotnet.dll;运行时由主插件随目录复制,不重复输出 -->
  24. <ItemGroup>
  25. <Reference Include="halcondotnet">
  26. <HintPath>..\..\Plugins.Halcon\HalconSdk\halcondotnet.dll</HintPath>
  27. <Private>False</Private>
  28. </Reference>
  29. </ItemGroup>
  30. <Target Name="CopyPluginDll" AfterTargets="Build" Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
  31. <PropertyGroup>
  32. <PluginDir>$(MSBuildThisFileDirectory)..\..\..\EXE\win-x64\Plugins\HalconPlugins\</PluginDir>
  33. </PropertyGroup>
  34. <MakeDir Directories="$(PluginDir)" Condition="!Exists('$(PluginDir)')" />
  35. <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PluginDir)" SkipUnchangedFiles="true" />
  36. </Target>
  37. </Project>