x265
x265 copied to clipboard
Cannot add x265.dll to a Visual Studio C# project targeting .Net 4.7.2
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
( A reference could not be added.)
Steps to Reproduce
- Open a Visual Studio c# project targeting .Net 4.7.2
- Select Add Reference.. by right-clicking on References
- Browse to folder containing x265.dll and select it. A check mark appears
- Click OK and error message appears
Your Environment
- Version Used:
- Windows 11
- Visual Studio 2022
Possible Fix
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.