warning MSB3214

by Xavier Pacheco 12. April 2010 08:30

I was trying to expose some .NET types through COM and kept getting the following warning:

warning MSB3214: "*.dll" does not contain any types that can be registered for COM Interop.

And of course, no types were exposed. Turns out that setting "Register for COM interop" under Project/Options is not enough. You must also specify the following in AssemblyInfo.cs

[assembly: ComVisible(true)] 
DotnetKicks

Tags:

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012 X Talks Tech