Please see my comment to the question.
Now, proper attribute name is
System.Runtime::InteropServices::ClassInterfaceAttribute
and it's parameter you tried to use is of the type
System.Runtime.InteropServices.ClassInterfaceAttribute
.
You did not use those full names ("ClassInterfaceAttribute" is usually shorted to "ClassInterface" where the attribute is applied), and you did not prescribe the namespace in
using
directive. So, what would you expect?
Please see:
https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.classinterfaceattribute%28v=vs.100%29.aspx[
^],
https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.classinterfacetype%28v=vs.110%29.aspx[
^].
Just write everything properly. Learn assemblies and their referencing, type naming and namespaces.
—SA