Antaris/RazorEngine

Runtime error installed on .NetStandard 2.0

Opened this issue · 0 comments

Encountered error when running Engine.Razor.RunCompile.
{"Method not found: 'Microsoft.CodeAnalysis.CSharp.CSharpCompilation Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Create(System.String, System.Collections.Generic.IEnumerable1<Microsoft.CodeAnalysis.SyntaxTree>, System.Collections.Generic.IEnumerable1<Microsoft.CodeAnalysis.MetadataReference>, Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions)'."}

image

Manually installed nuget package Microsoft.CodeAnalysis.CSharp to 3.4.0 because it was giving me this error before.
Method 'CommonCreateArrayTypeSymbol' in type 'Microsoft.CodeAnalysis.CSharp.CSharpCompilation' from assembly 'Microsoft.CodeAnalysis.CSharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.