VSTO2010: A reference to the 'RibbonBase' class is not allowed when its assembly is associated with the use of No-PIA mode

When I try to compile my extra VSTO Outlook, I get this error:

A reference to the 'RibbonBase' class is not permitted when its assembly is linked using No-PIA mode

It is impossible to complete the seam to find a solution for it on the Internet.

Any idea?

Thank! Mojo

+3
source share
2 answers

Some COM libraries, including this one, do not support No-PIA mode.

Change Embed Interop Typeto false in link properties.

+14
source

, , , RibbonBase, , Access, , , , , RibbonBase.

CLASS, . " , No-PIA" http://msdn.microsoft.com/en-us/library/h8c469ey.aspx, , .

- , ( ), .

Access ControlClass, "Control" ( ), .

, , , SLaks, , , , , Interop , , , ( ), Interop. , "RibbonBase".

+4

Source: https://habr.com/ru/post/1770527/


All Articles