[rc20-alpah4]

This commit is contained in:
2018-05-22 00:34:30 +02:00
parent 1ea3cb749c
commit 67adf7c250
17 changed files with 83 additions and 38 deletions

View File

@ -102,18 +102,24 @@ namespace cli.Services
MetadataReference.CreateFromFile( typeof(Enumerable).Assembly.Location),
MetadataReference.CreateFromFile( typeof(IdentityUser).Assembly.Location),
MetadataReference.CreateFromFile( typeof(ApplicationUser).Assembly.Location),
MetadataReference.CreateFromFile( typeof(Template).Assembly.Location)
MetadataReference.CreateFromFile( typeof(Template).Assembly.Location),
MetadataReference.CreateFromFile( typeof(UserOrientedTemplate).Assembly.Location)
};
logger.LogInformation("typeof(Template).Assembly.Location: "+typeof(Template).Assembly.Location);
var compilationOptions = new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary)
.WithAllowUnsafe(true).WithOptimizationLevel(OptimizationLevel.Release)
.WithOutputKind(OutputKind.DynamicallyLinkedLibrary).WithPlatform(Platform.AnyCpu);
.WithOutputKind(OutputKind.DynamicallyLinkedLibrary).WithPlatform(Platform.AnyCpu)
.WithUsings("Yavsc.Templates")
;
CSharpCompilation compilation = CSharpCompilation.Create(
assemblyName,
syntaxTrees: new[] { syntaxTree },
references: references,
options: compilationOptions);
options: compilationOptions
);
using (var ms = new MemoryStream())