This error occurs when you are trying to use ComVisibleAttribute in a class without a reference to System.Runtime.InteropServices namespace
[ComVisible(true)]
public interface IAddinVSTO
{
void SayHello();
}
Should have a reference to System.Runtime.InteropServices namespace like shown below
using System.Runtime.InteropServices;
[ComVisible(true)]
public interface IAddinVSTO
{
void SayHello();
}
ComVisibleAttribute Error
No comments:
Post a Comment