Эх сурвалжийг харах

Fix build error for missing assembly attribute AllowPartiallyTrustedCallers

csharptest 10 жил өмнө
parent
commit
569212f38b

+ 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.
 // Copyright 2008 Google Inc.  All rights reserved.
 // http://github.com/jskeet/dotnet-protobufs/
 // http://github.com/jskeet/dotnet-protobufs/
 // Original C++/Java/Python code:
 // Original C++/Java/Python code:
@@ -66,4 +66,7 @@ using System.Security;
 #endif
 #endif
 
 
 [assembly: CLSCompliant(true)]
 [assembly: CLSCompliant(true)]
-[assembly: AllowPartiallyTrustedCallers]
+
+#if CLIENTPROFILE // ROK - not defined in SL, CF, or PL
+[assembly: AllowPartiallyTrustedCallers]
+#endif