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 66using Microsoft . DotNet . Cli . CommandFactory . CommandResolution ;
77using Microsoft . DotNet . Cli . Commands . Tool . Install ;
88using Microsoft . DotNet . Cli . ToolPackage ;
9+ using NuGet . Common ;
910using NuGet . Packaging . Core ;
1011using 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 ( ) ;
You can’t perform that action at this time.
0 commit comments