Merge pull request #926 from Sridhar-MS/restore-temp1
Create the temp folder for 'tools' restoration in the project directory.
This commit is contained in:
commit
3a1f1d251c
1 changed files with 2 additions and 2 deletions
|
@ -124,10 +124,10 @@ namespace Microsoft.DotNet.Tools.Restore
|
|||
|
||||
private static void RestoreTool(LibraryRange tooldep, RestoreTask restoreTask, bool quiet)
|
||||
{
|
||||
var tempRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
|
||||
var tempRoot = Path.Combine(restoreTask.ProjectDirectory, "obj");
|
||||
try
|
||||
{
|
||||
var tempPath = Path.Combine(tempRoot, "bin");
|
||||
var tempPath = Path.Combine(tempRoot, Guid.NewGuid().ToString(), "bin");
|
||||
|
||||
RestoreToolToPath(tooldep, restoreTask.Arguments, tempPath, quiet);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue