Skip to content

Commit d15b933

Browse files
edvilmedsplaisted
authored andcommitted
Store in nuget cache?
1 parent fd1cc46 commit d15b933

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Cli/dotnet/Commands/Tool/Execute/ToolExecuteCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Microsoft.DotNet.Cli.CommandFactory.CommandResolution;
77
using Microsoft.DotNet.Cli.Commands.Tool.Install;
88
using Microsoft.DotNet.Cli.ToolPackage;
9+
using NuGet.Common;
910
using NuGet.Packaging.Core;
1011
using NuGet.Versioning;
1112

@@ -41,7 +42,7 @@ public override int Execute()
4142

4243
VersionRange versionRange = _parseResult.GetVersionRange();
4344

44-
string tempDirectory = PathUtilities.CreateTempSubdirectory();
45+
string tempDirectory = NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp);
4546

4647
ToolPackageStoreAndQuery toolPackageStoreAndQuery = new(new(tempDirectory));
4748
ToolPackageDownloader toolPackageDownloader = new(toolPackageStoreAndQuery);
@@ -80,6 +81,7 @@ private bool UserAgreedToRunFromSource()
8081
// TODO: Use a better way to ask for user input
8182
Console.Write(CliCommandStrings.ToolRunFromSourceUserConfirmationPrompt);
8283
bool userAccepted = Console.ReadKey().Key == ConsoleKey.Y;
84+
8385
if (_verbosity >= VerbosityOptions.detailed)
8486
{
8587
Console.WriteLine();

0 commit comments

Comments
 (0)