Error - Cannot embed interop types from assembly 'Microsoft.VisualBasic.PowerPacks'

  • Thread starter Thread starter mgfranz
  • Start date Start date
M

mgfranz

Guest
I am getting the following errors when I build my VB 2017 project;

Error BC31549 Cannot embed interop types from assembly 'Microsoft.VisualBasic.PowerPacks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is missing the 'System.Runtime.InteropServices.GuidAttribute' attribute.

Error BC31553 Cannot embed interop types from assembly 'Microsoft.VisualBasic.PowerPacks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is missing either the 'System.Runtime.InteropServices.ImportedFromTypeLibAttribute' attribute or the 'System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute' attribute.

I have the Copy Local property set to false and the Embed property set to True in my References, I was hoping I could embed the PowerPacks.dll in my build to avoid having to copy it with deployment, is there a solution?

Continue reading...
 
Back
Top