Do I need to register a COM DLL in order to be able to reference a .NET project?

I am trying to reference a COM dll in a visual studio using the Browse tab and selecting a DLL. I noticed that if the DLL is registered in the system using regsvr32, I can refer to it, but if it is not registered, I get an error choosing the dll file. "A link to the .DLL file cannot be added. Make sure the file is accessible and that it is a valid component of an assembly or COM."
We would like the DLL not to be registered, so we have less configuration needed for other development machines and in development environments.
Too much to ask? Thanks!

+3
source share
4 answers

you need to register dll. You can either register in your installation project or create a batch file for all these types of processes. Note. Do not forget to unregister dll when deleting.

+2
source

You will need to register the dll, because otherwise it will not be able to find the type library.
After adding dll as a link to your project, the assembly interop.XXXXmethod.dll will be created.

0
source

COM, . COM-, .

. COM- .NET , . , . .

0

You may be able to use Registration Free Com

0
source

Source: https://habr.com/ru/post/1725035/


All Articles