Skip to content

Commit

Permalink
Add dll config file for mono compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jun 15, 2023
1 parent 3ab887e commit b8d10c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Expand Up @@ -12,6 +12,6 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageIcon>icon.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<Version>3.4.1</Version>
<Version>3.4.2</Version>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions src/OpenCV.Net/OpenCV.Net.csproj
Expand Up @@ -11,6 +11,7 @@

<ItemGroup>
<Content Include="runtime.json" PackagePath="/" />
<Content Include="OpenCV.Net.dll.config" PackagePath="content" />
<Content Include="..\..\LICENSE" PackagePath="/" />
<Content Include="..\icon.png" PackagePath="/" />
</ItemGroup>
Expand Down
11 changes: 11 additions & 0 deletions src/OpenCV.Net/OpenCV.Net.dll.config
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<configuration>
<dllmap os="linux" dll="opencv_core2413" target="libopencv_core.so" />
<dllmap os="linux" dll="opencv_imgproc2413" target="libopencv_imgproc.so" />
<dllmap os="linux" dll="opencv_highgui2413" target="libopencv_highgui.so" />
<dllmap os="linux" dll="opencv_calib3d2413" target="libopencv_calib3d.so" />
<dllmap os="linux" dll="opencv_features2d2413" target="libopencv_features2d.so" />
<dllmap os="linux" dll="opencv_objdetect2413" target="libopencv_objdetect.so" />
<dllmap os="linux" dll="opencv_photo2413" target="libopencv_photo.so" />
<dllmap os="linux" dll="opencv_video2413" target="libopencv_video.so" />
</configuration>

0 comments on commit b8d10c5

Please sign in to comment.