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 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<Template originator = "Mike Krueger" <Template originator = "Mike Krueger"
created = "06/10/2001" created = "06/10/2001"
lastModified = "14/01/2006"> lastModified = "30/05/2007">
<!-- Template Header --> <!-- Template Header -->
<TemplateConfiguration> <TemplateConfiguration>
@ -14,28 +14,32 @@
<!-- Actions --> <!-- Actions -->
<Actions> <Actions>
<Open filename = "Main.cs"/> <Open filename = "Program.cs"/>
</Actions> </Actions>
<!-- Template Content --> <!-- Template Content -->
<Project language = "C#"> <Project language = "C#">
<ProjectItems> <ProjectItems>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ProjectItems> </ProjectItems>
<Files> <Files>
<File name="Main.cs"><![CDATA[${StandardHeader.C#} <File name="Program.cs"><![CDATA[${StandardHeader.C#}
using System; using System;
using System.Collections.Generic; using System.IO;
namespace ${StandardNamespace} namespace ${StandardNamespace}
{ {
class MainClass class Program
{ {
public static void Main(string[] args) 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> }]]></File>

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

@ -14,7 +14,7 @@
<!-- Actions --> <!-- Actions -->
<Actions> <Actions>
<Open filename = "Main.vb"/> <Open filename = "Program.vb"/>
</Actions> </Actions>
@ -22,16 +22,10 @@
<Project language = "VBNet"> <Project language = "VBNet">
<ProjectItems> <ProjectItems>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Xml" />
<Import Include="Microsoft.VisualBasic" /> <Import Include="Microsoft.VisualBasic" />
<Import Include="System" /> <Import Include="System" />
<Import Include="System.Collections" /> <Import Include="System.IO" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Data" />
<Import Include="System.Diagnostics" />
</ProjectItems> </ProjectItems>
<PropertyGroup> <PropertyGroup>
@ -39,11 +33,20 @@
</PropertyGroup> </PropertyGroup>
<Files> <Files>
<File name="Main.vb"> <File name="Program.vb">
<![CDATA[${StandardHeader.VBNET} <![CDATA[${StandardHeader.VBNET}
Module Main Option Strict On
Option Explicit On
Module Program
Sub Main() 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 Sub
End Module End Module
]]></File> ]]></File>

Loading…
Cancel
Save