From a89c649dfd035c2053d707917c675341323a99d9 Mon Sep 17 00:00:00 2001 From: filipw Date: Thu, 5 Jan 2017 09:25:12 +0100 Subject: [PATCH] use the default ScriptMetadataResolver --- src/OmniSharp.Script/ScriptProjectSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();