ComVisible false にする必要があるという StyleCop の CA1017 エラー メッセージが表示されます。
Error 18 CA1017 : Microsoft.Design :
Because 'NationalInstruments.Labview.FPGA.ModelsimCommunicator.dll' exposes externally
visible types, mark it with ComVisible(false) at the assembly level and then mark all
types within the assembly that should be exposed to COM clients with ComVisible(true).
次に、[assembly: ComVisible(false)]
最上位の名前空間の前にコードを配置します。ただし、他のエラー メッセージと共に同じエラーが表示されます。
Error 19 The type or namespace name 'ComVisible' could not be found (are you
missing a using directive or an assembly reference?)
Error 20 The type or namespace name 'ComVisibleAttribute' could not be found (are
you missing a using directive or an assembly reference?)
VS2010もこの名前を認識していないようです。
これの何が問題なのですか?