Add a directory-delete helper.
This seems to be needed on Windows to delete temporary staging files correctly.
This commit is contained in:
parent
ffedcb315f
commit
23e024c463
4 changed files with 21 additions and 16 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue