Skip to content

Commit

Permalink
Merge pull request #721 from filipw/bugfix/702
Browse files Browse the repository at this point in the history
use the default ScriptMetadataResolver for scripts
  • Loading branch information
filipw authored Jan 6, 2017
2 parents e3f37f0 + a89c649 commit c6e3791
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OmniSharp.Script/ScriptProjectSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<MetadataReference>();
Expand Down

0 comments on commit c6e3791

Please sign in to comment.