src/redist/project.json

This commit is contained in:
Piotr Puszkiewicz 2016-08-09 13:22:22 -07:00
parent 912a47f672
commit 3a55a4182f
22 changed files with 235 additions and 100 deletions

View file

@ -17,35 +17,7 @@ namespace Microsoft.DotNet.Tools.Restore
{
DebugHelper.HandleDebugSwitch(ref args);
var app = new CommandLineApplication(false)
{
Name = "dotnet restore",
FullName = ".NET project dependency restorer",
Description = "Restores dependencies listed in project.json"
};
app.OnExecute(() =>
{
try
{
return NuGet3.Restore(args);
}
catch (InvalidOperationException e)
{
Console.WriteLine(e.Message);
return -1;
}
catch (Exception e)
{
Console.WriteLine(e.Message);
return -2;
}
});
return app.Execute(args);
return NuGet3.Restore(args);
}
}
}