Addressing PR feedback

This commit is contained in:
Ankit Mishra 2017-08-03 10:00:15 -07:00
parent 4f1c6b5cae
commit 98c0ef350a

View file

@ -71,12 +71,14 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
{
// Create a Dependency Graph file for the project
tempDgFilePath = Path.GetTempFileName();
GetProjectDependencyGraph(projectFilePath, tempDgFilePath);
}
catch (IOException ioex)
{
// Catch IOException from Path.GetTempFileName() and throw a graceful exception to the user.
throw new GracefulException(string.Format(LocalizableStrings.CmdDGFileIOException, projectFilePath));
}
GetProjectDependencyGraph(projectFilePath, tempDgFilePath);
}
var result = NuGetCommand.Run(