Skip to content

Commit 1ba6238

Browse files
committed
Merged PR 44656: Create Subdirectory for Temp Deps.Json File.
Create Subdirectory for Temp Deps.Json File. Please contact me for further information regarding this change. ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary Refactored the creation of the temporary `deps.json` file to use a subdirectory for better organization. - `src/Cli/dotnet/CommandFactory/ProjectToolsCommandResolver.cs`: Changed the temporary file creation to use a subdirectory by combining `PathUtilities.CreateTempSubdirectory()` with `Path.GetRandomFileName()`.
2 parents 91c5fa1 + d7ba2d1 commit 1ba6238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ internal void GenerateDepsJsonFile(
337337
LocalizableStrings.GeneratingDepsJson,
338338
depsPath));
339339

340-
var tempDepsFile = Path.GetTempFileName();
340+
var tempDepsFile = Path.Combine(PathUtilities.CreateTempSubdirectory(), Path.GetRandomFileName());
341341

342342
var args = new List<string>();
343343

0 commit comments

Comments
 (0)