File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Cli/dotnet/Commands/Tool/Execute Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 6
6
using Microsoft . DotNet . Cli . CommandFactory . CommandResolution ;
7
7
using Microsoft . DotNet . Cli . Commands . Tool . Install ;
8
8
using Microsoft . DotNet . Cli . ToolPackage ;
9
+ using NuGet . Common ;
9
10
using NuGet . Packaging . Core ;
10
11
using NuGet . Versioning ;
11
12
@@ -41,7 +42,7 @@ public override int Execute()
41
42
42
43
VersionRange versionRange = _parseResult . GetVersionRange ( ) ;
43
44
44
- string tempDirectory = PathUtilities . CreateTempSubdirectory ( ) ;
45
+ string tempDirectory = NuGetEnvironment . GetFolderPath ( NuGetFolderPath . Temp ) ;
45
46
46
47
ToolPackageStoreAndQuery toolPackageStoreAndQuery = new ( new ( tempDirectory ) ) ;
47
48
ToolPackageDownloader toolPackageDownloader = new ( toolPackageStoreAndQuery ) ;
@@ -80,6 +81,7 @@ private bool UserAgreedToRunFromSource()
80
81
// TODO: Use a better way to ask for user input
81
82
Console . Write ( CliCommandStrings . ToolRunFromSourceUserConfirmationPrompt ) ;
82
83
bool userAccepted = Console . ReadKey ( ) . Key == ConsoleKey . Y ;
84
+
83
85
if ( _verbosity >= VerbosityOptions . detailed )
84
86
{
85
87
Console . WriteLine ( ) ;
You can’t perform that action at this time.
0 commit comments