Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SimonKravis opened this issue Jul 5, 2022 · 1 comment

Comments

@SimonKravis
Copy link

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

@TacoGuyAT
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants