update to new nuget and turn inference on

This commit is contained in:
Andrew Stanton-Nurse 2016-03-24 09:40:36 -07:00
parent f0fd9ae901
commit 0a369aa6d5
7 changed files with 20 additions and 14 deletions

View file

@ -36,6 +36,12 @@ 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();
// Always infer runtimes in dotnet-restore (for now).
if (!args.Any(s => s.Equals("--infer-runtimes", StringComparison.OrdinalIgnoreCase)))
{
args = Enumerable.Concat(new [] { "--infer-runtimes" }, args).ToArray();
}
app.OnExecute(() =>
{
try