Create the temp folder for 'tools' restoration in the project directory.

This is a fix for regression caused by #877. It is required to create the
temp folder in the project directory so that same nuget.config resolution
happens for both 'dependencies' and 'tools'. See #844.
This commit is contained in:
Sridhar Periyasamy 2016-01-20 14:50:06 -08:00
parent 7555793363
commit 6b01f1a644

View file

@ -124,7 +124,7 @@ 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, Guid.NewGuid().ToString());
try
{
var tempPath = Path.Combine(tempRoot, "bin");