Add dll file to references

kaveh rahimi 61 Reputation points
2021-05-09T11:50:10.14+00:00

Hi ,I want add dll file ch341dll.dll to references in vb.net,but it says the file is unsupported.
Is there any way to add it.
Please help
Thanks

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,583 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sam of Simple Samples 5,516 Reputation points
    2021-05-11T18:54:21.11+00:00

    Use the icsharpcode/ILSpy: .NET Decompiler to determine what the DLL is. If ILSpy says that the file does not contain a managed assembly then you need to use DllImport instead of adding a reference. You can download compiled binaries of ILSpy from the releases page.

    0 comments No comments