From 6e6b8126acec8d57c4cf7108801787d6f1b75671 Mon Sep 17 00:00:00 2001 From: Piotr Puszkiewicz Date: Tue, 16 Feb 2016 13:59:16 -0800 Subject: [PATCH] Fixes #1352 --- src/dotnet/commands/dotnet-restore/Program.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/dotnet/commands/dotnet-restore/Program.cs b/src/dotnet/commands/dotnet-restore/Program.cs index 8febf8bbe..6ea9454ee 100644 --- a/src/dotnet/commands/dotnet-restore/Program.cs +++ b/src/dotnet/commands/dotnet-restore/Program.cs @@ -7,7 +7,6 @@ using System.IO; using System.Linq; using System.Text; using Microsoft.DotNet.Cli.Utils; -using Microsoft.DotNet.Cli.Compiler.Common; using Microsoft.Dnx.Runtime.Common.CommandLine; using Microsoft.Dotnet.Cli.Compiler.Common; using Microsoft.DotNet.ProjectModel; @@ -37,15 +36,6 @@ namespace Microsoft.DotNet.Tools.Restore var quiet = args.Any(s => s.Equals("--quiet", StringComparison.OrdinalIgnoreCase)); args = args.Where(s => !s.Equals("--quiet", StringComparison.OrdinalIgnoreCase)).ToArray(); - // Until NuGet/Home#1941 is fixed, if no RIDs are specified, add our own. - if (!args.Any(s => s.Equals("--runtime", StringComparison.OrdinalIgnoreCase))) - { - args = Enumerable.Concat( - args, - PlatformServices.Default.Runtime.GetOverrideRestoreRuntimeIdentifiers().SelectMany(r => new [] { "--runtime", r }) - ).ToArray(); - } - app.OnExecute(() => { try