diff --git a/src/OmniSharp.Script/ScriptProjectSystem.cs b/src/OmniSharp.Script/ScriptProjectSystem.cs index 68b6297dea..7985f421b2 100644 --- a/src/OmniSharp.Script/ScriptProjectSystem.cs +++ b/src/OmniSharp.Script/ScriptProjectSystem.cs @@ -8,6 +8,7 @@ using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.Scripting.Hosting; using Microsoft.CodeAnalysis.Text; using Microsoft.DotNet.ProjectModel; @@ -175,7 +176,8 @@ private ProjectInfo CreateCsxProject(string csxPath) var compilationOptions = new CSharpCompilationOptions( outputKind: OutputKind.DynamicallyLinkedLibrary, - usings: Context.CsxUsings[csxPath]); + usings: Context.CsxUsings[csxPath], + metadataReferenceResolver: ScriptMetadataResolver.Default); // #r references var metadataReferencesDeclaredInCsx = new HashSet();