~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Ruby/RubyBinding/Project/Templates/WPFApplication.xpt

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Template originator="Matt Ward">
 
3
        <TemplateConfiguration>
 
4
                <Name>${res:Templates.Project.WinFXApplication.Name}</Name>
 
5
                <Category>Ruby</Category>
 
6
                <Icon>Ruby.Template.WinFormsProject</Icon>
 
7
                <Description>${res:Templates.Project.WinFXApplication.Description}</Description>
 
8
                <SupportedTargetFrameworks>v3.0</SupportedTargetFrameworks>
 
9
        </TemplateConfiguration>
 
10
        
 
11
        <!-- Actions -->
 
12
        <Actions>
 
13
                <Open filename="Window1.xaml"/>
 
14
        </Actions>
 
15
        
 
16
        <!-- Template Content -->
 
17
        <Project language="Ruby">
 
18
                <PropertyGroup>
 
19
                        <OutputType>WinExe</OutputType>
 
20
                        <MainFile>Application.rb</MainFile>
 
21
                        <DebugInfo>True</DebugInfo>
 
22
                        <StartArguments>--disable-gems -D Application.rb</StartArguments>
 
23
                        <StartWorkingDirectory>.\</StartWorkingDirectory>
 
24
                        <StartAction>Program</StartAction>
 
25
                        <StartProgram>${addinpath:ICSharpCode.RubyBinding}\ir.exe</StartProgram>
 
26
                </PropertyGroup>
 
27
                
 
28
                <PropertyGroup configuration="Release" escapeValue="false">
 
29
                        <OutputType>WinExe</OutputType>
 
30
                        <MainFile>Application.rb</MainFile>
 
31
                        <StartArguments>--disable-gems Application.py</StartArguments>
 
32
                        <StartWorkingDirectory>.\</StartWorkingDirectory>
 
33
                        <StartAction>Program</StartAction>
 
34
                        <StartProgram>${addinpath:ICSharpCode.RubyBinding}\ir.exe</StartProgram>
 
35
                </PropertyGroup>
 
36
                
 
37
                <ProjectItems>
 
38
                        <Reference Include="mscorlib"/>
 
39
                        <Reference Include="System"/>
 
40
                        <Reference Include="System.Data" />
 
41
                        <Reference Include="System.Xml" />
 
42
                        <Reference Include="PresentationCore">
 
43
                                <RequiredTargetFramework>3.0</RequiredTargetFramework>
 
44
                        </Reference>
 
45
                        <Reference Include="PresentationFramework">
 
46
                                <RequiredTargetFramework>3.0</RequiredTargetFramework>
 
47
                        </Reference>
 
48
                        <Reference Include="WindowsBase">
 
49
                                <RequiredTargetFramework>3.0</RequiredTargetFramework>
 
50
                        </Reference>
 
51
                        <Reference Include="IronRuby">
 
52
                                <HintPath>${addinpath:ICSharpCode.RubyBinding}\IronRuby.dll</HintPath>
 
53
                        </Reference>
 
54
 
 
55
                </ProjectItems>         
 
56
                <Files>
 
57
                        <File 
 
58
                                name="Application.rb"
 
59
                                SubType="Code">
 
60
<![CDATA[require "mscorlib"
 
61
require "PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
 
62
 
 
63
Window = System::Windows::Window
 
64
Application = System::Windows::Application
 
65
FileStream = System::IO::FileStream
 
66
XamlReader = System::Windows::Markup::XamlReader
 
67
FileMode = System::IO::FileMode
 
68
 
 
69
stream = FileStream.new('Window1.xaml', FileMode.Open)
 
70
window = XamlReader.Load(stream)
 
71
app = Application.new()
 
72
app.Run(window)
 
73
]]></File>
 
74
                        <File 
 
75
                                name="Window1.xaml" 
 
76
                                buildAction="None"
 
77
                                language="XML">
 
78
<![CDATA[<Window
 
79
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 
80
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 
81
        Title="${StandardNamespace}" 
 
82
        Height="300"
 
83
        Width="300">
 
84
        <Grid>
 
85
                
 
86
        </Grid>
 
87
</Window>]]></File>
 
88
                </Files>
 
89
        </Project>
 
90
</Template>