Browse Source

Cleaned up the ConsoleProject templates for CSharp and VB.NET

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2528 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Justin Dearing 18 years ago
parent
commit
81a9b3de99
  1. 20
      data/templates/project/CSharp/ConsoleProject.xpt
  2. 25
      data/templates/project/VBNet/ConsoleProject.xpt

20
data/templates/project/CSharp/ConsoleProject.xpt

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "06/10/2001"
lastModified = "14/01/2006">
lastModified = "30/05/2007">
<!-- Template Header -->
<TemplateConfiguration>
@ -14,28 +14,32 @@ @@ -14,28 +14,32 @@
<!-- Actions -->
<Actions>
<Open filename = "Main.cs"/>
<Open filename = "Program.cs"/>
</Actions>
<!-- Template Content -->
<Project language = "C#">
<ProjectItems>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ProjectItems>
<Files>
<File name="Main.cs"><![CDATA[${StandardHeader.C#}
<File name="Program.cs"><![CDATA[${StandardHeader.C#}
using System;
using System.Collections.Generic;
using System.IO;
namespace ${StandardNamespace}
{
class MainClass
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.WriteLine(Path.GetFileName(typeof(Program).Assembly.Location));
Console.WriteLine();
// TODO: Implement Functionality Here
Console.Write("Press any key to continue . . . ");
Console.ReadKey(false);
}
}
}]]></File>

25
data/templates/project/VBNet/ConsoleProject.xpt

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
<!-- Actions -->
<Actions>
<Open filename = "Main.vb"/>
<Open filename = "Program.vb"/>
</Actions>
@ -22,16 +22,10 @@ @@ -22,16 +22,10 @@
<Project language = "VBNet">
<ProjectItems>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Xml" />
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
<Import Include="System.IO" />
</ProjectItems>
<PropertyGroup>
@ -39,11 +33,20 @@ @@ -39,11 +33,20 @@
</PropertyGroup>
<Files>
<File name="Main.vb">
<File name="Program.vb">
<![CDATA[${StandardHeader.VBNET}
Module Main
Option Strict On
Option Explicit On
Module Program
Sub Main()
Console.WriteLine("Hello World!")
Console.WriteLine(Path.GetFileName(GetType(Program).Assembly.Location))
Console.WriteLine()
' TODO: Implement Functionality Here
Console.Write("Press any key to continue . . . ")
Console.ReadKey(false)
End Sub
End Module
]]></File>

Loading…
Cancel
Save