ShiftMediaProject / x265

Unofficial X265 with added custom native Visual Studio project build tools. X265: x265 is an open-source project and free application library for encoding video streams into the H.265/High Efficiency Video Coding (HEVC) format.
http://x265.org/
GNU General Public License v2.0
33 stars 26 forks source link

Cannot add x265.dll to a Visual Studio C# project targeting .Net 4.7.2 #4

Open SimonKravis opened 2 years ago

SimonKravis commented 2 years ago

Context

When I try and add a reference to x265.dll by browsing to the folder containing the dll as extracted from libx265_3.4_msvc16.zip( in folder bin/x64) I expect to see x265 added to the reference list

Expected Behavior

I get the error l image ( A reference could not be added.)

Steps to Reproduce

  1. Open a Visual Studio c# project targeting .Net 4.7.2
  2. Select Add Reference.. by right-clicking on References
  3. Browse to folder containing x265.dll and select it. A check mark appears
  4. Click OK and error message appears

Your Environment

Possible Fix

TacoGuyAT commented 6 months ago

x265.dll is a native x64 Windows assembly, while .NET Framework has its own assembly format. You'd need to make a wrapper for natively compiled libraries yourself or find an existing one before using these in your .NET project.