Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Commit 9aac5e6

Browse files
committed
Fixed Purge task to be smarter about normalizing paths.
1 parent 5c6ae08 commit 9aac5e6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/DotNetOpenAuth.BuildTasks.dll

0 Bytes
Binary file not shown.

lib/DotNetOpenAuth.BuildTasks.pdb

0 Bytes
Binary file not shown.

src/DotNetOpenAuth.BuildTasks/Purge.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
namespace DotNetOpenAuth.BuildTasks {
88
using System;
99
using System.Collections.Generic;
10+
using System.IO;
1011
using System.Linq;
1112
using System.Text;
12-
using Microsoft.Build.Utilities;
13-
using Microsoft.Build.Framework;
14-
using System.IO;
1513
using System.Text.RegularExpressions;
14+
using Microsoft.Build.Framework;
15+
using Microsoft.Build.Utilities;
1616

1717
/// <summary>
1818
/// Purges directory trees of all directories and files that are not on a whitelist.
@@ -82,7 +82,7 @@ public override bool Execute() {
8282
}
8383

8484
private static string NormalizePath(string path) {
85-
return Regex.Replace(path, @"\\+", @"\");
85+
return Path.GetFullPath(Regex.Replace(path, @"\\+", @"\"));
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)