diff --git a/src/Microsoft.DotNet.Tools.Interactive.Csi/project.json b/src/Microsoft.DotNet.Tools.Interactive.Csi/project.json index 3e04ab5cc..d92ad11c0 100644 --- a/src/Microsoft.DotNet.Tools.Interactive.Csi/project.json +++ b/src/Microsoft.DotNet.Tools.Interactive.Csi/project.json @@ -21,7 +21,8 @@ "Microsoft.Extensions.CommandLineUtils.Sources": { "type": "build", "version": "1.0.0-*" - } + }, + "Microsoft.Net.CSharp.Interactive.netcore": "1.1.0-*" }, "frameworks": { "dnxcore50": { } diff --git a/src/Microsoft.DotNet.Tools.Run/Program.cs b/src/Microsoft.DotNet.Tools.Run/Program.cs index 11017f922..eb7d39955 100644 --- a/src/Microsoft.DotNet.Tools.Run/Program.cs +++ b/src/Microsoft.DotNet.Tools.Run/Program.cs @@ -25,12 +25,12 @@ namespace Microsoft.DotNet.Tools.Run var framework = app.Option("-f|--framework ", "Compile a specific framework", CommandOptionType.MultipleValue); var configuration = app.Option("-c|--configuration ", "Configuration under which to build", CommandOptionType.SingleValue); var preserveTemporaryOutput = app.Option("-t|--preserve-temporary", "Keep the output's temporary directory around", CommandOptionType.NoValue); - var project = app.Argument("", "The project to run, defaults to the current directory. Can be a path to a project.json or a project directory"); + var project = app.Option("-p|--project ", "The path to the project to run (defaults to the current directory). Can be a path to a project.json or a project directory.", CommandOptionType.SingleValue); app.OnExecute(() => { // Locate the project and get the name and full path - var path = project.Value; + var path = project.Value(); if (!string.IsNullOrEmpty(path)) { if (File.Exists(path) && (Path.GetExtension(path) == ".csx"))