Updated Office interop assembly missing new methods

Viewed 15

I have a legacy app - an Office Add-in - that uses the Microsoft.Office.Interop.Word COM assembly. I need to make use of functionality added to a later version of the assembly that I am currently using, so I removed the old reference in VS and added a reference to the new one (as a COM assembly). Having done so, though, the new attribute that I need to access (ActiveDocument.SensitivityLabel) is not available. It seems that I need to somehow 'refresh' Visual Studio 2019's knowledge of the assembly, to include the new attributes, but I can't work out how to do so. Any help would be greatly appreciated.

0 Answers
Related