Add a directory-delete helper.

This seems to be needed on Windows to delete temporary staging files correctly.
This commit is contained in:
Eric Mellino 2016-03-15 14:06:54 -07:00
parent ffedcb315f
commit 23e024c463
4 changed files with 21 additions and 16 deletions

View file

@ -112,9 +112,8 @@ namespace Microsoft.DotNet.Cli.Build
if (Directory.Exists(wixObjRoot))
{
Directory.Delete(wixObjRoot, true);
Utils.DeleteDirectory(wixObjRoot);
}
Directory.CreateDirectory(wixObjRoot);
Cmd("powershell", "-NoProfile", "-NoLogo",
@ -137,9 +136,8 @@ namespace Microsoft.DotNet.Cli.Build
if (Directory.Exists(wixObjRoot))
{
Directory.Delete(wixObjRoot, true);
Utils.DeleteDirectory(wixObjRoot);
}
Directory.CreateDirectory(wixObjRoot);
Cmd("powershell", "-NoProfile", "-NoLogo",