Add Visual Studio public assemblies search paths
This commit is contained in:
parent
65a9e7dbc1
commit
fe2fe0befe
|
@ -32,15 +32,15 @@ namespace de4dot {
|
||||||
static AssemblyResolver() {
|
static AssemblyResolver() {
|
||||||
// Make sure there's only ONE assembly resolver
|
// Make sure there's only ONE assembly resolver
|
||||||
GlobalAssemblyResolver.Instance = Instance;
|
GlobalAssemblyResolver.Instance = Instance;
|
||||||
addSilverlightSearchPaths();
|
addOtherAssemblySearchPaths();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void addSilverlightSearchPaths() {
|
static void addOtherAssemblySearchPaths() {
|
||||||
addSilverlightSearchPaths(Environment.GetEnvironmentVariable("ProgramFiles"));
|
addOtherAssemblySearchPaths(Environment.GetEnvironmentVariable("ProgramFiles"));
|
||||||
addSilverlightSearchPaths(Environment.GetEnvironmentVariable("ProgramFiles(x86)"));
|
addOtherAssemblySearchPaths(Environment.GetEnvironmentVariable("ProgramFiles(x86)"));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void addSilverlightSearchPaths(string path) {
|
static void addOtherAssemblySearchPaths(string path) {
|
||||||
if (string.IsNullOrEmpty(path))
|
if (string.IsNullOrEmpty(path))
|
||||||
return;
|
return;
|
||||||
addSilverlightDirs(Path.Combine(path, @"Microsoft Silverlight"));
|
addSilverlightDirs(Path.Combine(path, @"Microsoft Silverlight"));
|
||||||
|
@ -50,6 +50,10 @@ namespace de4dot {
|
||||||
addIfExists(path, @"Microsoft SDKs\Silverlight\v4.0\Libraries\Server");
|
addIfExists(path, @"Microsoft SDKs\Silverlight\v4.0\Libraries\Server");
|
||||||
addIfExists(path, @"Reference Assemblies\Microsoft\Framework\Silverlight\v3.0");
|
addIfExists(path, @"Reference Assemblies\Microsoft\Framework\Silverlight\v3.0");
|
||||||
addIfExists(path, @"Reference Assemblies\Microsoft\Framework\Silverlight\v4.0");
|
addIfExists(path, @"Reference Assemblies\Microsoft\Framework\Silverlight\v4.0");
|
||||||
|
addIfExists(path, @"Microsoft Visual Studio .NET\Common7\IDE\PublicAssemblies");
|
||||||
|
addIfExists(path, @"Microsoft Visual Studio 8.0\Common7\IDE\PublicAssemblies");
|
||||||
|
addIfExists(path, @"Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies");
|
||||||
|
addIfExists(path, @"Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies");
|
||||||
}
|
}
|
||||||
|
|
||||||
// basePath is eg. "C:\Program Files (x86)\Microsoft Silverlight"
|
// basePath is eg. "C:\Program Files (x86)\Microsoft Silverlight"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user