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 'Mono.Cecil/AssemblyNameReference.cs')
-rw-r--r--Mono.Cecil/AssemblyNameReference.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mono.Cecil/AssemblyNameReference.cs b/Mono.Cecil/AssemblyNameReference.cs
index 9cacef1..52bcbb4 100644
--- a/Mono.Cecil/AssemblyNameReference.cs
+++ b/Mono.Cecil/AssemblyNameReference.cs
@@ -109,6 +109,7 @@ namespace Mono.Cecil {
byte [] HashPublicKey ()
{
+#if !PCL
HashAlgorithm algorithm;
switch (hash_algorithm) {
@@ -132,6 +133,9 @@ namespace Mono.Cecil {
using (algorithm)
return algorithm.ComputeHash (public_key);
+#else
+ return new SHA1Managed ().ComputeHash (public_key);
+#endif
}
public virtual MetadataScopeType MetadataScopeType {