Plugins.Vpp.csproj 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  9. <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  10. <RootNamespace>Plugins.Vpp</RootNamespace>
  11. <AssemblyName>Plugins.Vpp</AssemblyName>
  12. </PropertyGroup>
  13. <PropertyGroup>
  14. <VisionProRoot Condition="Exists('C:\Program Files\Cognex\VisionPro')">C:\Program Files\Cognex\VisionPro</VisionProRoot>
  15. <VisionProRoot Condition="'$(VisionProRoot)' == '' AND EXISTS('C:\Program Files (x86)\Cognex\VisionPro')">C:\Program Files (x86)\Cognex\VisionPro</VisionProRoot>
  16. </PropertyGroup>
  17. <ItemGroup>
  18. <PackageReference Include="OpenCvSharp4" Version="4.13.0.20260627" />
  19. <PackageReference Include="OpenCvSharp4.runtime.win" Version="4.13.0.20260627" />
  20. <PackageReference Include="PropertyGridLib" Version="1.2.0" />
  21. <PackageReference Include="System.Text.Json" Version="10.0.0" />
  22. </ItemGroup>
  23. <ItemGroup>
  24. <ProjectReference Include="..\..\TeamAAS.Core\TeamAAS.Core\TeamAAS.Core.csproj" />
  25. </ItemGroup>
  26. <ItemGroup>
  27. <Reference Include="Cognex.VisionPro">
  28. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.dll</HintPath>
  29. </Reference>
  30. <Reference Include="Cognex.VisionPro.Core">
  31. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.Core.dll</HintPath>
  32. </Reference>
  33. <Reference Include="Cognex.VisionPro.CorePlus">
  34. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.CorePlus.dll</HintPath>
  35. </Reference>
  36. <Reference Include="Cognex.VisionPro.Controls">
  37. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.Controls.dll</HintPath>
  38. </Reference>
  39. <Reference Include="Cognex.VisionPro.Display.Controls">
  40. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.Display.Controls.dll</HintPath>
  41. </Reference>
  42. <Reference Include="Cognex.VisionPro.ToolGroup">
  43. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.ToolGroup.dll</HintPath>
  44. </Reference>
  45. <Reference Include="Cognex.VisionPro.ToolGroup.Controls">
  46. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.ToolGroup.Controls.dll</HintPath>
  47. </Reference>
  48. <Reference Include="Cognex.VisionPro.ImageFile">
  49. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.ImageFile.dll</HintPath>
  50. </Reference>
  51. <Reference Include="Cognex.VisionPro.Interop.Core">
  52. <HintPath>$(VisionProRoot)\ReferencedAssemblies\Cognex.VisionPro.Interop.Core.dll</HintPath>
  53. <EmbedInteropTypes>true</EmbedInteropTypes>
  54. </Reference>
  55. <Reference Include="Microsoft.DwayneNeed">
  56. <HintPath>..\..\lib\Microsoft.DwayneNeed.dll</HintPath>
  57. <Private>True</Private>
  58. </Reference>
  59. <Reference Include="Microsoft.DwayneNeed.Win32">
  60. <HintPath>..\..\lib\Microsoft.DwayneNeed.Win32.dll</HintPath>
  61. <Private>True</Private>
  62. </Reference>
  63. <Reference Include="System.Windows.Forms" />
  64. <Reference Include="WindowsFormsIntegration" />
  65. <Reference Include="System.Drawing" />
  66. </ItemGroup>
  67. <Target Name="CopyPluginDll" AfterTargets="Build" Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='Release'">
  68. <PropertyGroup>
  69. <PluginDir>$(MSBuildThisFileDirectory)..\..\EXE\win-x64\Plugins\</PluginDir>
  70. </PropertyGroup>
  71. <MakeDir Directories="$(PluginDir)" Condition="!Exists('$(PluginDir)')" />
  72. <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PluginDir)" SkipUnchangedFiles="true" />
  73. </Target>
  74. </Project>