x265 icon indicating copy to clipboard operation
x265 copied to clipboard

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

Open SimonKravis opened this issue 3 years ago • 1 comments

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

  • Version Used:
  • Windows 11
  • Visual Studio 2022

Possible Fix

SimonKravis avatar Jul 05 '22 10:07 SimonKravis

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.

TacoGuyAT avatar May 19 '24 13:05 TacoGuyAT