Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Mono.TextTemplating/Mono.TextTemplating/TemplatingEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ CancellationToken token
if (!args.Debug && !r.Errors.HasErrors) {
r.TempFiles.Delete ();
// we can delete our temporary file after our temporary folder is deleted.
Directory.Delete (tempFolder);
try {
Directory.Delete (tempFolder);
} catch(IOException) {
// the directory is in the system temp folder and will be cleaned up by the OS
}
}

return (r, compiledAssembly);
Expand Down