File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/Cli/dotnet/Commands/Test Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ public static PipeNameDescription GetPipeName(string name)
252
252
return new PipeNameDescription ( $ "testingplatform.pipe.{ name . Replace ( '\\ ' , '.' ) } ", false ) ;
253
253
}
254
254
255
- string directoryId = Path . Combine ( Path . GetTempPath ( ) , name ) ;
255
+ string directoryId = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . LocalApplicationData ) , name ) ;
256
256
Directory . CreateDirectory ( directoryId ) ;
257
257
return new PipeNameDescription (
258
258
! Directory . Exists ( directoryId )
Original file line number Diff line number Diff line change 8
8
using Microsoft . DotNet . Cli . Commands . Test . IPC ;
9
9
using Microsoft . DotNet . Cli . Commands . Test . IPC . Models ;
10
10
using Microsoft . DotNet . Cli . Commands . Test . IPC . Serializers ;
11
+ using Microsoft . DotNet . Cli . Utils ;
11
12
12
13
namespace Microsoft . DotNet . Cli . Commands . Test ;
13
14
@@ -105,7 +106,7 @@ private string GetArguments(TestOptions testOptions)
105
106
? args . Aggregate ( ( a , b ) => $ "{ a } { b } ")
106
107
: string . Empty ) ;
107
108
108
- builder . Append ( $ " { CliConstants . ServerOptionKey } { CliConstants . ServerOptionValue } { CliConstants . DotNetTestPipeOptionKey } { _pipeNameDescription . Name } ") ;
109
+ builder . Append ( $ " { CliConstants . ServerOptionKey } { CliConstants . ServerOptionValue } { CliConstants . DotNetTestPipeOptionKey } { ArgumentEscaper . EscapeSingleArg ( _pipeNameDescription . Name ) } ") ;
109
110
110
111
return builder . ToString ( ) ;
111
112
}
You can’t perform that action at this time.
0 commit comments