This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
/
FormsProject.xpt
82 lines (71 loc) · 2.49 KB
/
FormsProject.xpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0"?>
<Template originator="Matt Ward">
<TemplateConfiguration>
<Name>${res:Templates.Project.WindowsApplication.Name}</Name>
<Category>Ruby</Category>
<Icon>Ruby.Template.WinFormsProject</Icon>
<Description>${res:Templates.Project.WindowsApplication.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename="MainForm.rb"/>
</Actions>
<!-- Template Content -->
<Project language="Ruby">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<MainFile>Program.rb</MainFile>
</PropertyGroup>
<PropertyGroup configuration="Debug" escapeValue="false">
<DebugInfo>True</DebugInfo>
<StartArguments>--disable-gems -D Program.rb</StartArguments>
<StartWorkingDirectory>.\</StartWorkingDirectory>
<StartAction>Program</StartAction>
<StartProgram>${addinpath:ICSharpCode.RubyBinding}\ir.exe</StartProgram>
</PropertyGroup>
<PropertyGroup configuration="Release" escapeValue="false">
<StartArguments>--disable-gems Program.rb</StartArguments>
<StartWorkingDirectory>.\</StartWorkingDirectory>
<StartAction>Program</StartAction>
<StartProgram>${addinpath:ICSharpCode.RubyBinding}\ir.exe</StartProgram>
</PropertyGroup>
<ProjectItems>
<Reference Include="mscorlib"/>
<Reference Include="System"/>
<Reference Include="System.Data"/>
<Reference Include="System.Drawing"/>
<Reference Include="System.Windows.Forms"/>
<Reference Include="System.Xml"/>
<Reference Include="IronRuby">
<HintPath>${addinpath:ICSharpCode.RubyBinding}\IronRuby.dll</HintPath>
</Reference>
</ProjectItems>
<Files>
<File name="MainForm.rb"><![CDATA[require "mscorlib"
require "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
require "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
class MainForm < System::Windows::Forms::Form
def initialize()
self.InitializeComponent()
end
def InitializeComponent()
#
# MainForm
#
self.Name = "MainForm"
self.Text = "${ProjectName}"
end
end
]]></File>
<File name="Program.rb"><![CDATA[require "mscorlib"
require "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
require "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
require "MainForm"
Application = System::Windows::Forms::Application
Application.EnableVisualStyles()
form = MainForm.new()
Application.Run(form)
]]></File>
</Files>
</Project>
</Template>