Skip to content

Commit 2a98e61

Browse files
committed
Merged PR 44655: 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 This pull request refactors the creation of a temporary `deps.json` file by placing it in a subdirectory. - `src/Cli/dotnet/CommandFactory/CommandResolution/ProjectToolsCommandResolver.cs`: Changed the temporary file creation to use a subdirectory for better organization.
2 parents dc89616 + 9d48fb0 commit 2a98e61

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)