Skip to content

Commit

Permalink
#12 adding error message with list of missing plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
shytikov committed Oct 18, 2016
1 parent 379ff2f commit 36dc9d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Xrm.Sdk.PluginRegistration/Forms/PluginRegistrationForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 36dc9d6

Please sign in to comment.