AddInModule Designer not displayed in Visual Studio 2022

Add-in Express™ Support Service
That's what is more important than anything else

AddInModule Designer not displayed in Visual Studio 2022
AddInModule Designer not displayed in Visual Studio 2022 
Tomasz Krzyzak




Posts: 3
Joined: 2023-05-26
Hello
I am using Visual Studio 2022 with Add-in Express for Office and .NET, Professional Release 10.1.4703 and I have a problem with displaying designer for specific project which is building without any errors. For example: when I double click the AddinModule.cs which should open the designer, Visual Studio displays the following message:

Method not found: 'System.String EnvDTE._DTE.get_Edition()'.

Instances of this error (1)

1. Hide Call Stack

at AddinExpress.Design.AddinModuleDesigner.get_Verbs()
at System.ComponentModel.Design.MenuCommandService.EnsureVerbs()
at System.ComponentModel.Design.MenuCommandService.FindCommand(Guid guid, Int32 id)
at System.ComponentModel.Design.MenuCommandService.FindCommand(CommandID commandID)
at System.ComponentModel.Design.MenuCommandService.AddCommand(MenuCommand command)
at System.Windows.Forms.Design.CommandSet..ctor(ISite site)
at System.Windows.Forms.Design.CompositionCommandSet..ctor(Control compositionUI, ISite site)
at System.Windows.Forms.Design.ComponentDocumentDesigner.Initialize(IComponent component)
at AddinExpress.Design.AddinModuleDesigner.Initialize(IComponent component)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

I tried things like:
-clean solution and rebuild
-set Optimized Code Generation = False for Windows Forms Designer options

Problem might be related to this specific solution because for example when I created whole new solution with add-in project I have no problem with displaying designer.
Also I downloaded example from https://www.add-in-express.com/creating-addins-blog/wp-upload/samples/modular-addin.zip and I don't have any designer problems with it also.

Is there something what can be done to fix this kind of designer problem?
Posted 01 Jun, 2023 09:19:47 Top
Andrei Smolin


Add-in Express team


Posts: 19122
Joined: 2006-05-11
Hello Tomasz,

Is it possible that your add-in project has a reference to a specific build of AddinExpress.MSO.2005.dll?

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 01 Jun, 2023 11:47:42 Top
Tomasz Krzyzak




Posts: 3
Joined: 2023-05-26
Yes my project has reference to:
- AddinExpress.MSO.2005.dll version 9.5.4661.0
- AddinExpress.PP.2005.dll version 9.5.4661.0
- AddinExpress.WD.2005.dll version 9.5.4661.0
- AddinExpress.XL.2005.dll version 9.5.4661.0
Posted 02 Jun, 2023 02:34:08 Top
Andrei Smolin


Add-in Express team


Posts: 19122
Joined: 2006-05-11
Hello Tomasz,

Do you have that Add-in Express version installed? If not, try to re-add references to the Add-in Express build currently installed.

Regards from Poland (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Jun, 2023 08:49:49 Top