You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@@ -191,10 +191,7 @@ namespace Mono.Cecil {
|
||||
string paths;
|
||||
|
||||
try {
|
||||
// AppContext is only available on platforms that implement .NET Standard 1.6
|
||||
var appContextType = Type.GetType ("System.AppContext, System.AppContext, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", throwOnError: false);
|
||||
var getData = appContextType?.GetTypeInfo ().GetDeclaredMethod ("GetData");
|
||||
paths = (string) getData?.Invoke (null, new [] { "TRUSTED_PLATFORM_ASSEMBLIES" });
|
||||
paths = (string) AppDomain.CurrentDomain.GetData ("TRUSTED_PLATFORM_ASSEMBLIES");
|
||||
} catch {
|
||||
paths = null;
|
||||
}
|
||||
@@ -380,7 +377,7 @@ namespace Mono.Cecil {
|
||||
|
||||
return null;
|
||||
}
|
||||
#endif
|
||||
|
||||
static string GetAssemblyFile (AssemblyNameReference reference, string prefix, string gac)
|
||||
{
|
||||
var gac_folder = new StringBuilder ()
|
||||
@@ -396,7 +393,7 @@ namespace Mono.Cecil {
|
||||
Path.Combine (gac, reference.Name), gac_folder.ToString ()),
|
||||
reference.Name + ".dll");
|
||||
}
|
||||
|
||||
#endif
|
||||
public void Dispose ()
|
||||
{
|
||||
Dispose (true);
|
||||
|
||||
Reference in New Issue
Block a user