From 36dc9d698c0ceddd09f307fa62b7d85fc1537bac Mon Sep 17 00:00:00 2001 From: Alexey Shytikov Date: Tue, 18 Oct 2016 13:00:58 +0200 Subject: [PATCH] #12 adding error message with list of missing plugins. --- .../Forms/PluginRegistrationForm.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Xrm.Sdk.PluginRegistration/Forms/PluginRegistrationForm.cs b/Xrm.Sdk.PluginRegistration/Forms/PluginRegistrationForm.cs index 8bf18a0..b5ea0b5 100644 --- a/Xrm.Sdk.PluginRegistration/Forms/PluginRegistrationForm.cs +++ b/Xrm.Sdk.PluginRegistration/Forms/PluginRegistrationForm.cs @@ -329,6 +329,15 @@ private void btnRegister_Click(object sender, EventArgs e) //Update the assembly with the information specified by the user assembly.IsolationMode = GetIsolationMode(); + if (missingPluginList.Count != 0) + { + var list = missingPluginList.Select(x => x.TypeName).Aggregate((name01, name02) => name01 + "\n" + name02); + + MessageBox.Show($"Following plugin are missing in the assembly:\n\n{list}\n\nRegistration cannot continue!", + "Plugins are missing", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + //An assembly with plugins must be strongly signed if (pluginList.Count != 0) {