I need define multiple environments for one extension ArcMap, for example: We have a few clients that have 3 environments development, quality and production. On currently scenario we have one DLL registred for the 3 environments and when we make any change on code we just unregister de old DLL and register a newer. Now we want to have 3 DLLs registred (DEV.DLL, QAS.DLL, PRD.DLL).I tried this, using C# preprocessor directives (I change all buttons and toolbars for something like that):C# code:#if (DEV) [Guid("00000000-47f4-49b9-9724-b9c8038bb4de")] [ClassInterface(ClassInterfaceType.None)] [ProgId("GISCAF_PRODUTO.GISCAFExtensionDEV")] #elif (QAS) [Guid("11111111-47f4-49b9-9724-b9c8038bb4de")] [ClassInterface(ClassInterfaceType.None)] [ProgId("GISCAF_PRODUTO.GISCAFExtensionQAS")] #elif (PRD) [Guid("22222222-47f4-49b9-9724-b9c8038bb4de")] [ClassInterface(ClassInterfaceType.None)] [ProgId("GISCAF_PRODUTO.GISCAFExtensionPRD")] #else [Guid("d3fabbd4-47f4-49b9-9724-b9c8038bb4de")] [ClassInterface(ClassInterfaceType.None)] [ProgId("GISCAF_PRODUTO.GISCAFExtension")] #endif public class GISCAFExtension : IExtension, IExtensionConfig, IPersistVariant
To deploy I change the build configuration to generate a correct DLL. But it does not work, when I try to register the 3 DLLs ALL TOOLBARS and BUTTONS turn into DEV environment. Why? Any suggestion?Thx in advance,