diff options
Diffstat (limited to 'Test/Mono.Cecil.Tests/CompilationService.cs')
-rw-r--r-- | Test/Mono.Cecil.Tests/CompilationService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/Mono.Cecil.Tests/CompilationService.cs b/Test/Mono.Cecil.Tests/CompilationService.cs index 0c9d35c..f7ecc4c 100644 --- a/Test/Mono.Cecil.Tests/CompilationService.cs +++ b/Test/Mono.Cecil.Tests/CompilationService.cs @@ -186,7 +186,7 @@ namespace Mono.Cecil.Tests { case ".cs": return CS.CSharpCompilation.Create ( assemblyName, - new [] { CS.SyntaxFactory.ParseSyntaxTree (source) }, + new [] { CS.SyntaxFactory.ParseSyntaxTree (source, new CS.CSharpParseOptions (preprocessorSymbols: new string [] { "NET_CORE" })) }, references, new CS.CSharpCompilationOptions (OutputKind.DynamicallyLinkedLibrary, optimizationLevel: OptimizationLevel.Release)); default: |