Addressing PR feedback
This commit is contained in:
parent
4f1c6b5cae
commit
98c0ef350a
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
throw new GracefulException(string.Format(LocalizableStrings.CmdDGFileIOException, projectFilePath));
|
||||
// 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(
|
||||
|
|
Loading…
Reference in a new issue