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

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

@ -24,7 +24,8 @@ @@ -24,7 +24,8 @@
using System;
using System.Windows.Forms;
using ICSharpCode.Core.AddIns.Codons;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
namespace ${StandardNamespace}
{
@ -33,15 +34,6 @@ namespace ${StandardNamespace} @@ -33,15 +34,6 @@ namespace ${StandardNamespace}
/// </summary>
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>
/// Starts the command
/// </summary>

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

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

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

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

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

@ -99,8 +99,7 @@ namespace ICSharpCode.SharpDevelop @@ -99,8 +99,7 @@ namespace ICSharpCode.SharpDevelop
} else if (result == 1) {
// 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="
+ Uri.EscapeDataString("Write an english description of what you were doing when the " +
"error occured and paste the exception text.");
+ Uri.EscapeDataString("Write an English description on how to reproduce the error and paste the exception text.");
try {
Process.Start(url);
} catch {}

Loading…
Cancel
Save