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:
Sridhar Periyasamy 2016-01-21 12:02:06 -08:00
commit 3a1f1d251c

View file

@ -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);