Skip to content

Commit 5a5826e

Browse files
authored
Merge pull request dotnet-script#47 from filipw/feature/valuetuple
added implicit reference to System.ValueTuple
2 parents dd17afb + 77e9659 commit 5a5826e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Dotnet.Script.Core/ScriptCompiler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public virtual ScriptOptions CreateScriptOptions(ScriptContext context)
4040
var opts = ScriptOptions.Default.
4141
AddImports(DefaultNamespaces).
4242
AddReferences(DefaultAssemblies).
43-
WithSourceResolver(new RemoteFileResolver(context.WorkingDirectory));
43+
WithSourceResolver(new RemoteFileResolver(context.WorkingDirectory)).
44+
WithMetadataResolver(ScriptMetadataResolver.Default);
4445

4546
if (!string.IsNullOrWhiteSpace(context.FilePath))
4647
{

src/Dotnet.Script.Core/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"dependencies": {
2020
"NETStandard.Library": "1.6.0",
2121
"Microsoft.DotNet.ProjectModel": "1.0.0-rc3-003121",
22-
"Microsoft.CodeAnalysis.CSharp.Scripting": "2.0.0-rc2"
22+
"Microsoft.CodeAnalysis.CSharp.Scripting": "2.0.0-rc2",
23+
"System.ValueTuple": "4.3.0"
2324
},
2425

2526
"frameworks": {

0 commit comments

Comments
 (0)