Skip to content

Commit f795a3c

Browse files
committed
Provide PEVerify also for .NET 4.0.
1 parent c8c26a5 commit f795a3c

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed
File renamed without changes.

Tools/PEVerify/4.0/PEVerify.exe

116 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version ="1.0"?>
2+
<configuration>
3+
<startup useLegacyV2RuntimeActivationPolicy="true">
4+
<requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/>
5+
</startup>
6+
</configuration>

src/NHibernate.Test/DynamicProxyTests/PeVerifier.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ public PeVerifier(string assemblyFileName)
3131
dir = Directory.GetParent(dir).FullName;
3232
}
3333

34-
_peVerifyPath = Path.Combine(dir, "Tools/PEVerify/PEVerify.exe");
34+
var versionFolder = "4.0";
35+
if (Environment.Version.Major == 2)
36+
versionFolder = "3.5";
37+
38+
_peVerifyPath = Path.Combine(dir, "Tools/PEVerify/" + versionFolder + "/PEVerify.exe");
3539

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

0 commit comments

Comments
 (0)