Beispiel #1
0
 void CreateKeyFile()
 {
     if (File.Exists(CreateKeyForm.StrongNameTool))
     {
         using (CreateKeyForm createKey = new CreateKeyForm(baseDirectory)) {
             createKey.KeyFile = project.Name;
             if (createKey.ShowDialog(WorkbenchSingleton.MainForm) == DialogResult.OK)
             {
                 keyFile.Text = createKey.KeyFile;
                 return;
             }
         }
     }
     else
     {
         MessageService.ShowMessage("${res:Dialog.ProjectOptions.Signing.SNnotFound}");
     }
     keyFile.Text = "";
 }
Beispiel #2
0
		void CreateKeyFile()
		{
			if (File.Exists(CreateKeyForm.StrongNameTool)) {
				using (CreateKeyForm createKey = new CreateKeyForm(baseDirectory)) {
					createKey.KeyFile = project.Name;
					if (createKey.ShowDialog(WorkbenchSingleton.MainWin32Window) == DialogResult.OK) {
						keyFile.Text = MSBuildInternals.Escape(createKey.KeyFile);
						return;
					}
				}
			} else {
				MessageService.ShowMessage("${res:Dialog.ProjectOptions.Signing.SNnotFound}");
			}
			keyFile.Text = "";
		}