|
|
@ -40,7 +40,7 @@ namespace Avalonia.Build.Tasks |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static CompileResult Compile(IBuildEngine engine, string input, string[] references, string projectDirectory, |
|
|
public static CompileResult Compile(IBuildEngine engine, string input, string[] references, string projectDirectory, |
|
|
string output) |
|
|
string output, bool verifyIl) |
|
|
{ |
|
|
{ |
|
|
var typeSystem = new CecilTypeSystem(references.Concat(new[] {input}), input); |
|
|
var typeSystem = new CecilTypeSystem(references.Concat(new[] {input}), input); |
|
|
var asm = typeSystem.TargetAssemblyDefinition; |
|
|
var asm = typeSystem.TargetAssemblyDefinition; |
|
|
@ -65,7 +65,7 @@ namespace Avalonia.Build.Tasks |
|
|
var contextClass = XamlIlContextDefinition.GenerateContextClass(typeSystem.CreateTypeBuilder(contextDef), typeSystem, |
|
|
var contextClass = XamlIlContextDefinition.GenerateContextClass(typeSystem.CreateTypeBuilder(contextDef), typeSystem, |
|
|
xamlLanguage); |
|
|
xamlLanguage); |
|
|
|
|
|
|
|
|
var compiler = new AvaloniaXamlIlCompiler(compilerConfig, contextClass); |
|
|
var compiler = new AvaloniaXamlIlCompiler(compilerConfig, contextClass) { EnableIlVerification = verifyIl }; |
|
|
|
|
|
|
|
|
var editorBrowsableAttribute = typeSystem |
|
|
var editorBrowsableAttribute = typeSystem |
|
|
.GetTypeReference(typeSystem.FindType("System.ComponentModel.EditorBrowsableAttribute")) |
|
|
.GetTypeReference(typeSystem.FindType("System.ComponentModel.EditorBrowsableAttribute")) |
|
|
|