diff --git a/build_projects/dotnet-cli-build/project.json b/build_projects/dotnet-cli-build/project.json
index 1d2582b09..644b04f13 100644
--- a/build_projects/dotnet-cli-build/project.json
+++ b/build_projects/dotnet-cli-build/project.json
@@ -20,7 +20,7 @@
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Xml.XmlSerializer": "4.0.11",
"WindowsAzure.Storage": "6.2.2-preview",
- "NuGet.CommandLine.XPlat": "3.5.0-rc1-1697",
+ "NuGet.CommandLine.XPlat": "3.6.0-beta.1.msbuild.1",
"Microsoft.Build.Framework": "0.1.0-preview-00029-160805",
"Microsoft.Build.Utilities.Core": "0.1.0-preview-00029-160805",
"Microsoft.DotNet.PlatformAbstractions": "1.0.1-beta-000914"
diff --git a/resources/MSBuildImports/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NuGet.ImportAfter.targets b/resources/MSBuildImports/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NuGet.ImportAfter.targets
index b1da40f46..f88dc4adf 100644
--- a/resources/MSBuildImports/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NuGet.ImportAfter.targets
+++ b/resources/MSBuildImports/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NuGet.ImportAfter.targets
@@ -14,4 +14,10 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildExtensionsPath)\Microsoft.NuGet.targets
+
+
+
+ $(MSBuildExtensionsPath)\NuGet.targets
+
+
diff --git a/src/Microsoft.DotNet.Cli.Utils/project.json b/src/Microsoft.DotNet.Cli.Utils/project.json
index 9b717250a..a6939ef41 100644
--- a/src/Microsoft.DotNet.Cli.Utils/project.json
+++ b/src/Microsoft.DotNet.Cli.Utils/project.json
@@ -9,10 +9,10 @@
"target": "project"
},
"Microsoft.DotNet.PlatformAbstractions": "1.0.1-beta-000914",
- "NuGet.Versioning": "3.5.0-rc1-1697",
- "NuGet.Packaging": "3.5.0-rc1-1697",
- "NuGet.Frameworks": "3.5.0-rc1-1697",
- "NuGet.ProjectModel": "3.5.0-rc1-1697"
+ "NuGet.Versioning": "3.6.0-beta.1.msbuild.1",
+ "NuGet.Packaging": "3.6.0-beta.1.msbuild.1",
+ "NuGet.Frameworks": "3.6.0-beta.1.msbuild.1",
+ "NuGet.ProjectModel": "3.6.0-beta.1.msbuild.1"
},
"frameworks": {
"net451": {
diff --git a/src/Microsoft.DotNet.ProjectModel/project.json b/src/Microsoft.DotNet.ProjectModel/project.json
index c129163fa..95436c6dc 100644
--- a/src/Microsoft.DotNet.ProjectModel/project.json
+++ b/src/Microsoft.DotNet.ProjectModel/project.json
@@ -8,9 +8,9 @@
"Microsoft.Extensions.DependencyModel": "1.0.1-beta-000914",
"Microsoft.DotNet.PlatformAbstractions": "1.0.1-beta-000914",
"Newtonsoft.Json": "9.0.1",
- "NuGet.Configuration": "3.5.0-rc1-1697",
- "NuGet.Packaging": "3.5.0-rc1-1697",
- "NuGet.RuntimeModel": "3.5.0-rc1-1697",
+ "NuGet.Configuration": "3.6.0-beta.1.msbuild.1",
+ "NuGet.Packaging": "3.6.0-beta.1.msbuild.1",
+ "NuGet.RuntimeModel": "3.6.0-beta.1.msbuild.1",
"System.Reflection.Metadata": "1.3.0"
},
"frameworks": {
diff --git a/src/dotnet/Program.cs b/src/dotnet/Program.cs
index b79ee90a3..d297ef88b 100644
--- a/src/dotnet/Program.cs
+++ b/src/dotnet/Program.cs
@@ -17,6 +17,7 @@ using Microsoft.DotNet.Tools.Help;
using Microsoft.DotNet.Tools.New;
using Microsoft.DotNet.Tools.Publish;
using Microsoft.DotNet.Tools.Restore;
+using Microsoft.DotNet.Tools.Restore3;
using Microsoft.DotNet.Tools.Run;
using Microsoft.DotNet.Tools.Test;
using NuGet.Frameworks;
@@ -37,7 +38,8 @@ namespace Microsoft.DotNet.Cli
["run"] = RunCommand.Run,
["test"] = TestCommand.Run,
["build3"] = Build3Command.Run,
- ["run3"] = Run3Command.Run
+ ["run3"] = Run3Command.Run,
+ ["restore3"] = Restore3Command.Run,
};
public static int Main(string[] args)
diff --git a/src/dotnet/commands/dotnet-build3/MSBuildForwardingApp.cs b/src/dotnet/commands/dotnet-build3/MSBuildForwardingApp.cs
index 76e28d9ba..0815d769e 100644
--- a/src/dotnet/commands/dotnet-build3/MSBuildForwardingApp.cs
+++ b/src/dotnet/commands/dotnet-build3/MSBuildForwardingApp.cs
@@ -14,7 +14,7 @@ namespace Microsoft.DotNet.Cli
private const string s_msbuildExeName = "MSBuild.exe";
private readonly ForwardingApp _forwardingApp;
- public MSBuildForwardingApp(string[] argsToForward)
+ public MSBuildForwardingApp(IEnumerable argsToForward)
{
_forwardingApp = new ForwardingApp(
GetMSBuildExePath(),
diff --git a/src/dotnet/commands/dotnet-restore3/Program.cs b/src/dotnet/commands/dotnet-restore3/Program.cs
new file mode 100644
index 000000000..c47eeb1bb
--- /dev/null
+++ b/src/dotnet/commands/dotnet-restore3/Program.cs
@@ -0,0 +1,111 @@
+// Copyright (c) .NET Foundation and contributors. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+using System.Collections.Generic;
+using Microsoft.DotNet.Cli;
+using Microsoft.DotNet.Cli.CommandLine;
+using Microsoft.DotNet.Cli.Utils;
+
+namespace Microsoft.DotNet.Tools.Restore3
+{
+ public class Restore3Command
+ {
+ public static int Run(string[] args)
+ {
+ DebugHelper.HandleDebugSwitch(ref args);
+
+ CommandLineApplication cmd = new CommandLineApplication(throwOnUnexpectedArg: false)
+ {
+ Name = "restore3",
+ FullName = "restore3",
+ Description = "restore for msbuild"
+ };
+
+ cmd.HelpOption("-h|--help");
+
+ var argRoot = cmd.Argument(
+ "[root]",
+ "Optional path to a project file or MSBuild arguments.",
+ multipleValues: true);
+
+ var sourceOption = cmd.Option(
+ "-s|--source