Client Error from My First DLL - Default GUID has not been replaced...

{I misposted on the C-Code Products Forum, and was directed to here…}

I made it to the MIP eLearning on Corporate! Got to “Developing MIP SDK Plug-in Integrations”, and made the first DLL. Launching the Client, I get this message, twice… “Default GUID has not been replaced for {MyPlugin}WorkSpaceToolbarPluginId!”. I put back the original MIPPlugins directory, and everything is fine, again. I add my plugin, and the issue returns.

. I installed all 2018R3 components, and am using Visual Studio Community 2017. I get the feeling that I have a versioning issue, but am not savvy enough to catch what I need to do to the components to compile a clean DLL.

Any help pointing me in the correct direction would be great. My searches haven’t pulled up anything close, and I could be using the incorrect terms.

In the xDefintion.cs (Where x is the name you gave your plugin) you find:

// IMPORTANT! Due to shortcoming in Visual Studio template the below cannot be automatically replaced with proper unique GUIDs, so you will have to do it yourself
internal static Guid MIPPlugin1WorkSpaceToolbarPluginId = new Guid("22222222-2222-2222-2222-222222222222");
internal static Guid MIPPlugin1ViewItemToolbarPluginId = new Guid("33333333-3333-3333-3333-333333333333");
internal static Guid MIPPlugin1ToolsOptionDialogPluginId = new Guid("44444444-4444-4444-4444-444444444444");

Change these GUIDs and you will not see the error.

The eLearning was made with an older version of the template, this is the reason the eLearning does not mention this..

Thank you for posting this, Bo. I did find the generated “…definition.cs” file, and see that exact text . Being new to this, I am not sure where to find the GUIDs necessary for these variable assignments, so I am off to figure it out.

As always, any pointers to get me going in the correct direction are appreciated!

I was pulled off of Milestone learning for a few days, and trying to get back into the rhythm is a bit rough.

This is going from novice to advanced, really fast… What is the ETA for release an updated Visual Studio template by Milestone? It look slike I have gone from Milestone eLearning Milestone coding.

From what I can tell, this type of code needs to be integrated into the compiler, and it will take me awhile to get to the point I can edit this predefined code.

https://docs.microsoft.com/en-us/dotnet/api/system.guid.newguid?view=netframework-4.7.2

Help!

Fastest way to get going: Ignore the error or change one digit in each of the three GUIDs.

Alternatively explore the Visual Studio → Tools → Create GUID

As the comment say Milestone cannot release an updated Visual Studio template because Visual Studio unfortunately has a shortcoming. You will have to change the GUIDs like the comment say.

Bo, I will just have to wait until Milestone can figure out how to overcome this shortcoming in their 2018R3 code for Visual Studio. If I had done this training a year ago, I would probably have been successful with 2017Rx and on my way. These errors are affecting the GUI portion of the Smart Client, where I need to see an icon

For note, Visual Studio Community does not have a GUID generator. I did find a few on the Microsoft Store, and used one to generate random GUIDs that basically caused more errors than it was worth.

Thank you for trying to get me on my way, Bo.

Milestone cannot overcome this shortcoming, I think I have been bad at explaining, please allow me to try again, this time in another way:

Change

        // IMPORTANT! Due to shortcoming in Visual Studio template the below cannot be automatically replaced with proper unique GUIDs, so you will have to do it yourself
        internal static Guid templateTestWorkSpaceToolbarPluginId = new Guid("22222222-2222-2222-2222-222222222222");
        internal static Guid templateTestViewItemToolbarPluginId = new Guid("33333333-3333-3333-3333-333333333333");
        internal static Guid templateTestToolsOptionDialogPluginId = new Guid("44444444-4444-4444-4444-444444444444");

to

        // IMPORTANT! Due to shortcoming in Visual Studio template the below cannot be automatically replaced with proper unique GUIDs, so you will have to do it yourself
        internal static Guid templateTestWorkSpaceToolbarPluginId = new Guid("72222222-2222-2222-2222-222222222222");
        internal static Guid templateTestViewItemToolbarPluginId = new Guid("73333333-3333-3333-3333-333333333333");
        internal static Guid templateTestToolsOptionDialogPluginId = new Guid("74444444-4444-4444-4444-444444444444");

Then you are good to go..

Ok so in 2020 those who are encountering the same issue here is a fix

i am using visual studio 2019 and Xprotect VMS 2020 R1

Go to

Top Navigation => Tools => Create GUID => Guid Format (Select 5th Option) => then click copy and it is copied then place the guid to the required desitination for ex : xDefination.cs (x is the project name) and then build the project and replace the file with the previous project.dll and plugin.def