src/redist/project.json
This commit is contained in:
parent
912a47f672
commit
3a55a4182f
22 changed files with 235 additions and 100 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue