Skip to content

Commit

Permalink
Delete pdbs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom committed Jan 9, 2023
1 parent d9898cc commit 6255d54
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Compiler/Interactive/fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,20 @@ let scriptingDirectory =

createDirectory (Path.Combine(Path.GetTempPath(), $"{DateTime.Now:s}-{Guid.NewGuid():n}".Replace(':', '-')))

let deleteScripts () =
try
#if !DEBUG
if scriptingDirectory.IsValueCreated then
if Directory.Exists(scriptingDirectory.Value) then
Directory.Delete(scriptingDirectory.Value, true)
#else
()
#endif
with _ ->
()

do AppDomain.CurrentDomain.ProcessExit |> Event.add (fun _ -> deleteScripts ())



let dynamicCcuName = "FSI-ASSEMBLY"
Expand Down

0 comments on commit 6255d54

Please sign in to comment.