I am building a project with OpenCV in C#. It requires a dll file called cvextern.dll. but, when adding this file as a reference, this message appears :-
cvextern.dll
In my case I had to register the .dll.
To do so, open cmd.exe (the console) with admin rights and type:
cmd.exe
regsvr32 "foo.dll"