How to embed a DLL in a winForms project

1

I need to incorporate a reference to a winforms project.

I clicked on References, I selected the reference and clicked on properties, there I changed the Embed Interop Types property to true.

Compiling the solution gives the following error:

  

Severity Code Description Project File Line Suppression State   Error CS1759 Can not embed interop types from assembly 'Berechit.Data, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null' because it is missing either the 'System.Runtime.InteropServices.ImportedFromTypeLibAttribute' attribute or the 'System.Runtime. InteropServices.PrimaryInteropAssemblyAttribute 'attribute. AppTeste C: \ project \ AppTeste \ CSC 1 Active

    
asked by anonymous 01.08.2016 / 16:18

1 answer

0

To incoperate a DL dll and go to the references window and right-click on it then click on add reference then go to the cicas browser on the browse button and select the dll you want after that confirms that it has a selected signal and click ok

    
03.08.2016 / 13:33