Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Test/Mono.Cecil.Tests')
-rw-r--r--Test/Mono.Cecil.Tests/WindowsRuntimeAssemblyResolver.cs10
1 files changed, 0 insertions, 10 deletions
diff --git a/Test/Mono.Cecil.Tests/WindowsRuntimeAssemblyResolver.cs b/Test/Mono.Cecil.Tests/WindowsRuntimeAssemblyResolver.cs
index fb39e33..6561629 100644
--- a/Test/Mono.Cecil.Tests/WindowsRuntimeAssemblyResolver.cs
+++ b/Test/Mono.Cecil.Tests/WindowsRuntimeAssemblyResolver.cs
@@ -68,23 +68,13 @@ namespace Mono.Cecil.Tests {
void LoadWindowsSdk (string registryVersion, string windowsKitsVersion, Action<string> registerAssembliesCallback)
{
-#if NET_4_0
using (var localMachine32Key = RegistryKey.OpenBaseKey (RegistryHive.LocalMachine, RegistryView.Registry32)) {
using (var sdkKey = localMachine32Key.OpenSubKey (@"SOFTWARE\Microsoft\Microsoft SDKs\Windows\v" + registryVersion)) {
-#else
- {
- // this will fail on 64-bit process as there's no way (other than pinoke) to read from 32-bit registry view
- using (var sdkKey = Registry.LocalMachine.OpenSubKey (@"SOFTWARE\Microsoft\Microsoft SDKs\Windows\" + registryVersion)) {
-#endif
string installationFolder = null;
if (sdkKey != null)
installationFolder = (string)sdkKey.GetValue ("InstallationFolder");
if (string.IsNullOrEmpty (installationFolder)) {
-#if NET_4_0
var programFilesX86 = Environment.GetFolderPath (Environment.SpecialFolder.ProgramFilesX86);
-#else
- var programFilesX86 = Environment.GetEnvironmentVariable ("ProgramFiles(x86)");
-#endif
installationFolder = Path.Combine (programFilesX86, @"Windows Kits\" + windowsKitsVersion);
}
registerAssembliesCallback (installationFolder);