Skip to content

Commit 181602a

Browse files
committed
Use Path.Combine better for "Tools/PEVerify".
1 parent 204aab2 commit 181602a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NHibernate.Test/DynamicProxyTests/PeVerifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public PeVerifier(string assemblyFileName)
2323

2424
var dir = Path.GetDirectoryName(_assemlyLocation);
2525

26-
while (!Directory.Exists(Path.Combine(dir, "Tools/PEVerify")))
26+
while (!Directory.Exists(Path.Combine(dir, "Tools", "PEVerify")))
2727
{
2828
if (Directory.GetParent(dir) == null)
2929
throw new Exception(string.Format("Could not find Tools/PEVerify directory in ancestor of {0}", _assemlyLocation));
@@ -35,7 +35,7 @@ public PeVerifier(string assemblyFileName)
3535
if (Environment.Version.Major == 2)
3636
versionFolder = "3.5";
3737

38-
_peVerifyPath = Path.Combine(dir, "Tools/PEVerify/" + versionFolder + "/PEVerify.exe");
38+
_peVerifyPath = Path.Combine(dir, "Tools", "PEVerify", versionFolder, "PEVerify.exe");
3939

4040
if (!File.Exists(_peVerifyPath))
4141
throw new Exception(string.Format("Could not find PEVerify.exe at {0}", _peVerifyPath));

0 commit comments

Comments
 (0)