Fail to continue develop Inventor Add-In with Visual Studio 2022 (revert to VS 2019?)
(this thread is consequent to this)
Recently I’ve bought a new PC and decided to use most recent Visual Studio 2022 Community instead of VS 2019 Community I have on my old PC … BUT
When I tried to compile the code of my add-in on my new PC it failed reporting error BC31424 on all mentions of “stdole.IPictureDisp” (ribbon button images).
I then decided to add Microsoft.VisualStudio.Interop.DLL references of the project*.
This solved compile issue but Add-In button than failed to load into Inventor’s ribbon with catch-Message:
“Method not found: ‘Void Inventor.ButtonDefinitionObject.set_StandardIcon(stdole.IPictureDisp)’.”
I’m a bit puzzled. Initial project code keep compile successfully in VS 2019.
What I’m missing?
*
I’ve found such recommendation for Excel Add-In developers – New version requiring Microsoft.VisualStudio.Interop.dll
Read more here: Source link
