Browse Source

Fix build error for missing assembly attribute AllowPartiallyTrustedCallers

csharptest 10 năm trước cách đây
mục cha
commit
569212f38b
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      src/ProtocolBuffers/Properties/AssemblyInfo.cs

+ 5 - 2
src/ProtocolBuffers/Properties/AssemblyInfo.cs

@@ -1,4 +1,4 @@
-// Protocol Buffers - Google's data interchange format
+// Protocol Buffers - Google's data interchange format
 // Copyright 2008 Google Inc.  All rights reserved.
 // http://github.com/jskeet/dotnet-protobufs/
 // Original C++/Java/Python code:
@@ -66,4 +66,7 @@ using System.Security;
 #endif
 
 [assembly: CLSCompliant(true)]
-[assembly: AllowPartiallyTrustedCallers]
+
+#if CLIENTPROFILE // ROK - not defined in SL, CF, or PL
+[assembly: AllowPartiallyTrustedCallers]
+#endif