Interop type 'Microsoft.Office.Interop cannot be embedded
今天我在做Word VSTO项目是后发生了编译错误:"Interop type 'Microsoft.Office.Interop.OneNote.Application' cannot be embedded. Use the applicable interface instead."
解决方案为:
在Microsoft。Office。Interop。Word右键属性:
Embed Interop Type设置为False: