Browse Source

SD2-421: Add msbuild file template

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@390 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 21 years ago
parent
commit
2983197ecc
  1. 24
      data/templates/file/Misc/EmptyMsBuildFile.xft
  2. 4
      data/templates/file/SharpDevelop/AddInOptions.xft
  3. 12
      data/templates/file/SharpDevelop/ExampleMenuCommand.xft
  4. 35
      data/templates/file/SharpDevelop/ExamplePad.xft
  5. 6
      data/templates/file/SharpDevelop/SimpleCommand.xft
  6. 3
      src/Main/StartUp/Project/Dialogs/ExceptionBox.cs

24
data/templates/file/Misc/EmptyMsBuildFile.xft

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<Template author="Daniel Grunwald" version="1.0">
<Config
name = "${res:Templates.File.MsBuild.Name}"
icon = "Icons.32x32.XMLFileIcon"
category = "${res:Templates.File.Categories.Misc}"
defaultname = "Build${Number}.proj"
language = "XML"/>
<Description>${res:Templates.File.Xml.EmptyXmlFile.Description}</Description>
<Files>
<File name="${FullName}" language="XML"><![CDATA[<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTarget="Build">
<Target Name="Build">
</Target>
</Project>]]>
</File>
</Files>
<AdditionalOptions/>
</Template>

4
data/templates/file/SharpDevelop/AddInOptions.xft

@ -22,9 +22,7 @@
<Files> <Files>
<File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#} <File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
using System; using System;
using System.Diagnostics; using ICSharpCode.Core;
using ICSharpCode.Core.Services;
using ICSharpCode.Core.Properties;
namespace ${StandardNamespace} namespace ${StandardNamespace}
{ {

12
data/templates/file/SharpDevelop/ExampleMenuCommand.xft

@ -24,7 +24,8 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using ICSharpCode.Core.AddIns.Codons; using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
namespace ${StandardNamespace} namespace ${StandardNamespace}
{ {
@ -33,15 +34,6 @@ namespace ${StandardNamespace}
/// </summary> /// </summary>
public class ${FileNameWithoutExtension} : AbstractMenuCommand public class ${FileNameWithoutExtension} : AbstractMenuCommand
{ {
/// <summary>
/// Creates a new ${FileNameWithoutExtension}
/// </summary>
public ${FileNameWithoutExtension}()
{
// You can enable/disable the menu command using the
// IsEnabled property of the AbstractMenuCommand class
}
/// <summary> /// <summary>
/// Starts the command /// Starts the command
/// </summary> /// </summary>

35
data/templates/file/SharpDevelop/ExamplePad.xft

@ -21,36 +21,38 @@
--> -->
<Files> <Files>
<File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#} <File name="${FullName}" language="C#"><![CDATA[${StandardHeader.C#}
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui; using ICSharpCode.SharpDevelop.Gui;
namespace ${StandardNamespace} namespace ${ProjectName}
{ {
/// <summary> /// <summary>
/// Description of the pad content /// Description of the pad content
/// </summary> /// </summary>
public class ${FileNameWithoutExtension} : AbstractPadContent public class ${FileNameWithoutExtension} : AbstractPadContent
{ {
#region AbstractPadContent requirements {
Panel ctl;
/// <summary> /// <summary>
/// The <see cref="System.Windows.Forms.Control"/> representing the pad /// Creates a new ${FileNameWithoutExtension} object
/// </summary> /// </summary>
public override Control Control { public ${FileNameWithoutExtension}()
get { {
// ctl = new Panel();
// TODO : Give back a working Windows.Forms Control // TODO: Initialize the panel's content.
//
return null;
}
} }
/// <summary> /// <summary>
/// Creates a new ${FileNameWithoutExtension} object /// The <see cref="System.Windows.Forms.Control"/> representing the pad
/// </summary> /// </summary>
public ${FileNameWithoutExtension}() : base("The Title of ${FileNameWithoutExtension}") public override Control Control {
{ get {
// TODO: Optionally set the icon resource name with Icon = "YourIconResourceName"; return ctl;
}
} }
/// <summary> /// <summary>
@ -67,12 +69,9 @@ namespace ${StandardNamespace}
/// </summary> /// </summary>
public override void Dispose() public override void Dispose()
{ {
// TODO: Clean up resources in this method ctl.Dispose();
// Control.Dispose();
} }
#endregion
} }
} }
]]> ]]>
</File> </File>

6
data/templates/file/SharpDevelop/SimpleCommand.xft

@ -15,14 +15,14 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using ICSharpCode.Core.AddIns.Codons; using ICSharpCode.Core;
namespace ${StandardNamespace} namespace ${StandardNamespace}
{ {
/// <summary> /// <summary>
/// Description of ${FileNameWithoutExtension} /// Description of ${FileNameWithoutExtension}
/// </summary> /// </summary>
public class ${FileNameWithoutExtension} : AbstractCommand public class ${FileNameWithoutExtension} : AbstractCommand
{ {
/// <summary> /// <summary>
/// Starts the command /// Starts the command

3
src/Main/StartUp/Project/Dialogs/ExceptionBox.cs

@ -99,8 +99,7 @@ namespace ICSharpCode.SharpDevelop
} else if (result == 1) { } else if (result == 1) {
// clipboard text is too long to be inserted into the mail-url // clipboard text is too long to be inserted into the mail-url
string url = "mailto:icsharpcode.svn-sharpdevelop-users@glengamoi.com?subject=Bug Report&body=" string url = "mailto:icsharpcode.svn-sharpdevelop-users@glengamoi.com?subject=Bug Report&body="
+ Uri.EscapeDataString("Write an english description of what you were doing when the " + + Uri.EscapeDataString("Write an English description on how to reproduce the error and paste the exception text.");
"error occured and paste the exception text.");
try { try {
Process.Start(url); Process.Start(url);
} catch {} } catch {}

Loading…
Cancel
Save