Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6281 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
6 changed files with 1 additions and 360 deletions
@ -1,112 +0,0 @@ |
|||||||
<?xml version="1.0"?> |
|
||||||
<Template originator = "Daniel Grunwald"> |
|
||||||
|
|
||||||
<!-- Template Header --> |
|
||||||
<TemplateConfiguration> |
|
||||||
<Name>${res:Templates.Project.WindowsApplication.Name}</Name> |
|
||||||
<Category>C#</Category> |
|
||||||
<Subcategory>Compact Framework</Subcategory> |
|
||||||
<Icon>C#.Project.Form</Icon> |
|
||||||
<Description>${res:Templates.Project.WindowsApplication.Description}</Description> |
|
||||||
<SupportedTargetFrameworks>CF 2.0</SupportedTargetFrameworks> |
|
||||||
</TemplateConfiguration> |
|
||||||
|
|
||||||
<!-- Actions --> |
|
||||||
<Actions> |
|
||||||
<Open filename = "MainForm.cs"/> |
|
||||||
</Actions> |
|
||||||
|
|
||||||
<Project language="C#"> |
|
||||||
<ProjectItems> |
|
||||||
<Reference Include="System" /> |
|
||||||
<Reference Include="System.Data" /> |
|
||||||
<Reference Include="System.Drawing" /> |
|
||||||
<Reference Include="System.Windows.Forms" /> |
|
||||||
<Reference Include="System.Xml" /> |
|
||||||
<Reference Include="Microsoft.WindowsCE.Forms.dll" /> |
|
||||||
</ProjectItems> |
|
||||||
|
|
||||||
<PropertyGroup> |
|
||||||
<OutputType>WinExe</OutputType> |
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<Files> |
|
||||||
<File name="MainForm.cs" language="C#"><![CDATA[${StandardHeader.C#} |
|
||||||
using System; |
|
||||||
using System.Collections.Generic; |
|
||||||
using System.Drawing; |
|
||||||
using System.Windows.Forms; |
|
||||||
|
|
||||||
namespace ${StandardNamespace} |
|
||||||
{ |
|
||||||
/// <summary> |
|
||||||
/// Description of MainForm. |
|
||||||
/// </summary> |
|
||||||
public partial class MainForm : Form |
|
||||||
{ |
|
||||||
public static void Main(string[] args) |
|
||||||
{ |
|
||||||
Application.Run(new MainForm()); |
|
||||||
} |
|
||||||
|
|
||||||
public MainForm() |
|
||||||
{ |
|
||||||
// |
|
||||||
// The InitializeComponent() call is required for Windows Forms designer support. |
|
||||||
// |
|
||||||
InitializeComponent(); |
|
||||||
|
|
||||||
// |
|
||||||
// TODO: Add constructor code after the InitializeComponent() call. |
|
||||||
// |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
]]></File> |
|
||||||
<File name="MainForm.Designer.cs" DependentUpon="MainForm.cs" language="C#"><![CDATA[${StandardHeader.C#} |
|
||||||
namespace ${StandardNamespace} |
|
||||||
{ |
|
||||||
partial class MainForm |
|
||||||
{ |
|
||||||
/// <summary> |
|
||||||
/// Designer variable used to keep track of non-visual components. |
|
||||||
/// </summary> |
|
||||||
private System.ComponentModel.IContainer components = null; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// Disposes resources used by the form. |
|
||||||
/// </summary> |
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
||||||
protected override void Dispose(bool disposing) |
|
||||||
{ |
|
||||||
if (disposing) { |
|
||||||
if (components != null) { |
|
||||||
components.Dispose(); |
|
||||||
} |
|
||||||
} |
|
||||||
base.Dispose(disposing); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// This method is required for Windows Forms designer support. |
|
||||||
/// Do not change the method contents inside the source code editor. The Forms designer might |
|
||||||
/// not be able to load this method if it was changed manually. |
|
||||||
/// </summary> |
|
||||||
private void InitializeComponent() |
|
||||||
{ |
|
||||||
// |
|
||||||
// MainForm |
|
||||||
// |
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; |
|
||||||
this.ClientSize = new System.Drawing.Size(238, 295); |
|
||||||
this.Text = "${ProjectName}"; |
|
||||||
this.Name = "MainForm"; |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
]]></File> |
|
||||||
<File name="Properties\AssemblyInfo.cs" src="DefaultAssemblyInfo.cs" language="C#" /> |
|
||||||
</Files> |
|
||||||
</Project> |
|
||||||
</Template> |
|
||||||
@ -1,109 +0,0 @@ |
|||||||
<?xml version="1.0"?> |
|
||||||
<Template originator = "Daniel Grunwald"> |
|
||||||
|
|
||||||
<!-- Template Header --> |
|
||||||
<TemplateConfiguration> |
|
||||||
<Name>${res:Templates.Project.WindowsApplication.Name}</Name> |
|
||||||
<Category>VBNet</Category> |
|
||||||
<Subcategory>Compact Framework</Subcategory> |
|
||||||
<Icon>VBNet.Project.Form</Icon> |
|
||||||
<Description>${res:Templates.Project.WindowsApplication.Description}</Description> |
|
||||||
<SupportedTargetFrameworks>CF 2.0</SupportedTargetFrameworks> |
|
||||||
</TemplateConfiguration> |
|
||||||
|
|
||||||
<!-- Actions --> |
|
||||||
<Actions> |
|
||||||
<Open filename = "MainForm.vb"/> |
|
||||||
</Actions> |
|
||||||
|
|
||||||
<!-- Template Content --> |
|
||||||
<Project language="VBNet"> |
|
||||||
<PropertyGroup> |
|
||||||
<OutputType>WinExe</OutputType> |
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|
||||||
<OptionInfer>On</OptionInfer> |
|
||||||
|
|
||||||
<PlatformFamilyName>PocketPC</PlatformFamilyName> |
|
||||||
<PlatformID>WinCE</PlatformID> |
|
||||||
|
|
||||||
<StartupObject>${StandardNamespace}.MainForm</StartupObject> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<Imports clear="true"> |
|
||||||
<Import Project="$(SharpDevelopBinPath)\SharpDevelop.Build.VisualBasic.targets" /> |
|
||||||
</Imports> |
|
||||||
|
|
||||||
<ProjectItems> |
|
||||||
<Reference Include="System" /> |
|
||||||
<Reference Include="System.Data" /> |
|
||||||
<Reference Include="System.Drawing" /> |
|
||||||
<Reference Include="System.Windows.Forms" /> |
|
||||||
<Reference Include="System.Xml" /> |
|
||||||
<Reference Include="Microsoft.WindowsCE.Forms.dll" /> |
|
||||||
|
|
||||||
<Import Include="Microsoft.VisualBasic" /> |
|
||||||
<Import Include="System" /> |
|
||||||
<Import Include="System.Collections" /> |
|
||||||
<Import Include="System.Collections.Generic" /> |
|
||||||
<Import Include="System.Drawing" /> |
|
||||||
<Import Include="System.Diagnostics" /> |
|
||||||
<Import Include="System.Windows.Forms" /> |
|
||||||
</ProjectItems> |
|
||||||
|
|
||||||
<Files> |
|
||||||
<File name="MainForm.vb"> |
|
||||||
<![CDATA[${StandardHeader.VBNET} |
|
||||||
Public Partial Class MainForm |
|
||||||
Public Sub New() |
|
||||||
' The Me.InitializeComponent call is required for Windows Forms designer support. |
|
||||||
Me.InitializeComponent() |
|
||||||
|
|
||||||
' |
|
||||||
' TODO : Add constructor code after InitializeComponents |
|
||||||
' |
|
||||||
End Sub |
|
||||||
End Class |
|
||||||
]]></File> |
|
||||||
<File name="MainForm.Designer.vb" DependentUpon="MainForm.vb"> |
|
||||||
<![CDATA[${StandardHeader.VBNET} |
|
||||||
Partial Class MainForm |
|
||||||
Inherits System.Windows.Forms.Form |
|
||||||
|
|
||||||
''' <summary> |
|
||||||
''' Designer variable used to keep track of non-visual components. |
|
||||||
''' </summary> |
|
||||||
Private components As System.ComponentModel.IContainer |
|
||||||
|
|
||||||
''' <summary> |
|
||||||
''' Disposes resources used by the form. |
|
||||||
''' </summary> |
|
||||||
''' <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
||||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean) |
|
||||||
If disposing Then |
|
||||||
If components IsNot Nothing Then |
|
||||||
components.Dispose() |
|
||||||
End If |
|
||||||
End If |
|
||||||
MyBase.Dispose(disposing) |
|
||||||
End Sub |
|
||||||
|
|
||||||
''' <summary> |
|
||||||
''' This method is required for Windows Forms designer support. |
|
||||||
''' Do not change the method contents inside the source code editor. The Forms designer might |
|
||||||
''' not be able to load this method if it was changed manually. |
|
||||||
''' </summary> |
|
||||||
Private Sub InitializeComponent() |
|
||||||
' |
|
||||||
'MainForm |
|
||||||
' |
|
||||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi |
|
||||||
Me.ClientSize = New System.Drawing.Size(238, 295) |
|
||||||
Me.Name = "MainForm" |
|
||||||
Me.Text = "${ProjectName}" |
|
||||||
End Sub |
|
||||||
End Class |
|
||||||
]]></File> |
|
||||||
<File name="Properties\AssemblyInfo.vb" src="DefaultAssemblyInfo.vb"/> |
|
||||||
</Files> |
|
||||||
</Project> |
|
||||||
</Template> |
|
||||||
@ -1,64 +0,0 @@ |
|||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
||||||
<!-- This file can be used to compile C# applications against other .NET Framework versions --> |
|
||||||
|
|
||||||
<PropertyGroup> |
|
||||||
<!-- |
|
||||||
Save original target framework version because we'll need to change it |
|
||||||
--> |
|
||||||
<TargetFrameworkVersion Condition=" '$(TargetFrameworkVersion)' == '' ">v2.0</TargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkVersion>$(TargetFrameworkVersion)</SharpDevelopTargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkClass>unknown</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<PropertyGroup Condition=" ('$(SharpDevelopTargetFrameworkVersion)' == 'v2.0' or '$(SharpDevelopTargetFrameworkVersion)' == 'v3.0' or '$(SharpDevelopTargetFrameworkVersion)' == 'v3.5') "> |
|
||||||
<SharpDevelopTargetFrameworkClass>v2</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(SharpDevelopTargetFrameworkVersion)' == 'CF 2.0' "> |
|
||||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkClass>CF</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition=" '$(SharpDevelopTargetFrameworkVersion)' == 'CF 3.5' "> |
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkClass>CF</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<!-- Show an error when CF is not installed, or when the target framework is unknown. --> |
|
||||||
<Target Name="Build"> |
|
||||||
<Error Text="'$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets' cannot be found." Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (!Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets')) "/> |
|
||||||
<Error Text="Unknown target framework version '$(SharpDevelopTargetFrameworkVersion)'."/> |
|
||||||
</Target> |
|
||||||
|
|
||||||
<Target Name="Rebuild"> |
|
||||||
<Error Text="'$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets' cannot be found." Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (!Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets')) "/> |
|
||||||
<Error Text="Unknown target framework version '$(SharpDevelopTargetFrameworkVersion)'."/> |
|
||||||
</Target> |
|
||||||
|
|
||||||
<Target Name="Clean"> |
|
||||||
<Error Text="'$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets' cannot be found." Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (!Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets')) "/> |
|
||||||
<Error Text="Unknown target framework version '$(SharpDevelopTargetFrameworkVersion)'."/> |
|
||||||
</Target> |
|
||||||
|
|
||||||
<!-- Use Microsoft's C# standard targets --> |
|
||||||
<Import Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'v2') " |
|
||||||
Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
|
||||||
|
|
||||||
<!-- Compact framework property adjustments: --> |
|
||||||
<!-- When StdLib is not set, set it to true and add reference to mscorlib --> |
|
||||||
<!-- Set PlatformFamilyName and PlatformID if required --> |
|
||||||
<PropertyGroup Condition=" '$(SharpDevelopTargetFrameworkClass)' == 'CF' "> |
|
||||||
<PlatformFamilyName Condition=" '$(PlatformFamilyName)' == '' ">PocketPC</PlatformFamilyName> |
|
||||||
<PlatformID Condition=" '$(PlatformID)' == '' ">WinCE</PlatformID> |
|
||||||
|
|
||||||
<SharpDevelopAddReferenceToCompactMscorlib Condition="'$(NoStdLib)' == ''">true</SharpDevelopAddReferenceToCompactMscorlib> |
|
||||||
<NoStdLib Condition="'$(NoStdLib)' == ''">true</NoStdLib> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(SharpDevelopAddReferenceToCompactMscorlib)' == 'true' "> |
|
||||||
<Reference Include="mscorlib"/> |
|
||||||
</ItemGroup> |
|
||||||
|
|
||||||
<!-- Compact framework imports --> |
|
||||||
<Import Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets')) " |
|
||||||
Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets"/> |
|
||||||
</Project> |
|
||||||
@ -1,64 +0,0 @@ |
|||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
||||||
<!-- This file can be used to compile VB.NET applications against other .NET Framework versions --> |
|
||||||
|
|
||||||
<PropertyGroup> |
|
||||||
<!-- |
|
||||||
Save original target framework version because we'll need to change it |
|
||||||
--> |
|
||||||
<TargetFrameworkVersion Condition=" '$(TargetFrameworkVersion)' == '' ">v2.0</TargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkVersion>$(TargetFrameworkVersion)</SharpDevelopTargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkClass>unknown</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<PropertyGroup Condition=" ('$(SharpDevelopTargetFrameworkVersion)' == 'v2.0' or '$(SharpDevelopTargetFrameworkVersion)' == 'v3.0' or '$(SharpDevelopTargetFrameworkVersion)' == 'v3.5') "> |
|
||||||
<SharpDevelopTargetFrameworkClass>v2</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<PropertyGroup Condition=" '$(SharpDevelopTargetFrameworkVersion)' == 'CF 2.0' "> |
|
||||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkClass>CF</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
<PropertyGroup Condition=" '$(SharpDevelopTargetFrameworkVersion)' == 'CF 3.5' "> |
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
|
||||||
<SharpDevelopTargetFrameworkClass>CF</SharpDevelopTargetFrameworkClass> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<!-- Show an error when CF is not installed, or when the target framework is unknown. --> |
|
||||||
<Target Name="Build"> |
|
||||||
<Error Text="'$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets' cannot be found." Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (!Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets')) "/> |
|
||||||
<Error Text="Unknown target framework version '$(SharpDevelopTargetFrameworkVersion)'."/> |
|
||||||
</Target> |
|
||||||
|
|
||||||
<Target Name="Rebuild"> |
|
||||||
<Error Text="'$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets' cannot be found." Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (!Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets')) "/> |
|
||||||
<Error Text="Unknown target framework version '$(SharpDevelopTargetFrameworkVersion)'."/> |
|
||||||
</Target> |
|
||||||
|
|
||||||
<Target Name="Clean"> |
|
||||||
<Error Text="'$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets' cannot be found." Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (!Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets')) "/> |
|
||||||
<Error Text="Unknown target framework version '$(SharpDevelopTargetFrameworkVersion)'."/> |
|
||||||
</Target> |
|
||||||
|
|
||||||
<!-- Use Microsoft's VB standard targets --> |
|
||||||
<Import Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'v2') " |
|
||||||
Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" /> |
|
||||||
|
|
||||||
<!-- Compact framework property adjustments: --> |
|
||||||
<!-- When StdLib is not set, set it to true and add reference to mscorlib --> |
|
||||||
<!-- Set PlatformFamilyName and PlatformID if required --> |
|
||||||
<PropertyGroup Condition=" '$(SharpDevelopTargetFrameworkClass)' == 'CF' "> |
|
||||||
<PlatformFamilyName Condition=" '$(PlatformFamilyName)' == '' ">PocketPC</PlatformFamilyName> |
|
||||||
<PlatformID Condition=" '$(PlatformID)' == '' ">WinCE</PlatformID> |
|
||||||
|
|
||||||
<SharpDevelopAddReferenceToCompactMscorlib Condition="'$(NoStdLib)' == ''">true</SharpDevelopAddReferenceToCompactMscorlib> |
|
||||||
<NoStdLib Condition="'$(NoStdLib)' == ''">true</NoStdLib> |
|
||||||
</PropertyGroup> |
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(SharpDevelopAddReferenceToCompactMscorlib)' == 'true' "> |
|
||||||
<Reference Include="mscorlib"/> |
|
||||||
</ItemGroup> |
|
||||||
|
|
||||||
<!-- Compact framework imports --> |
|
||||||
<Import Condition=" ('$(SharpDevelopTargetFrameworkClass)' == 'CF') and (Exists('$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets')) " |
|
||||||
Project="$(MSBuildBinPath)\Microsoft.CompactFramework.VisualBasic.targets"/> |
|
||||||
</Project> |
|
||||||
Loading…
Reference in new issue