summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.Xamlc
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-11-15 19:39:48 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-11-15 19:39:48 (GMT)
commita6bbed029c64d2d64b74eeb67e27a099abf70664 (patch)
tree551c3924c055e2d39592b3f1c726cca46924dd73 /Xamarin.Forms.Xaml.Xamlc
parent14e21dcebd4a706aaa5eed384b142957d84df002 (diff)
downloadxamarin-forms-a6bbed029c64d2d64b74eeb67e27a099abf70664.zip
xamarin-forms-a6bbed029c64d2d64b74eeb67e27a099abf70664.tar.gz
xamarin-forms-a6bbed029c64d2d64b74eeb67e27a099abf70664.tar.bz2
[XamlC] TypedBindings, some tests, a compiler, ... (#489)
Diffstat (limited to 'Xamarin.Forms.Xaml.Xamlc')
-rw-r--r--Xamarin.Forms.Xaml.Xamlc/Xamlc.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/Xamarin.Forms.Xaml.Xamlc/Xamlc.cs b/Xamarin.Forms.Xaml.Xamlc/Xamlc.cs
index b2fa172..5a42fa0 100644
--- a/Xamarin.Forms.Xaml.Xamlc/Xamlc.cs
+++ b/Xamarin.Forms.Xaml.Xamlc/Xamlc.cs
@@ -19,6 +19,8 @@ namespace Xamarin.Forms.Xaml
bool decompile = false;
string paths = null;
string refs = null;
+ List<string> extra = null;
+
var p = new OptionSet
{
{ "h|?|help", "Print this help message", v => help = true },
@@ -35,7 +37,6 @@ namespace Xamarin.Forms.Xaml
ShowHelp(p);
Environment.Exit(0);
}
- List<string> extra = null;
try
{
extra = p.Parse(args);
@@ -57,7 +58,16 @@ namespace Xamarin.Forms.Xaml
}
var assembly = extra[0];
- XamlCTask.Compile(assembly, verbosity, keep, optimize, paths, refs, decompile);
+ var xamlc = new XamlCTask {
+ Assembly = assembly,
+ Verbosity = verbosity,
+ KeepXamlResources = keep,
+ OptimizeIL = optimize,
+ DependencyPaths = paths,
+ ReferencePath = refs,
+ OutputGeneratedILAsCode=decompile,
+ };
+ xamlc.Execute(null);
}
static void ShowHelp(OptionSet ops)