}
}
+ public bool IsSatelliteAssembly { get; private set; }
+
public string Name {
get {
return name;
builder_extra.SetCulture (value, a.Location);
}
+ IsSatelliteAssembly = true;
return;
}
}
}
- if (!wrap_non_exception_throws_custom) {
- PredefinedAttribute pa = module.PredefinedAttributes.RuntimeCompatibility;
- if (pa.IsDefined && pa.ResolveBuilder ()) {
- var prop = module.PredefinedMembers.RuntimeCompatibilityWrapNonExceptionThrows.Get ();
- if (prop != null) {
- AttributeEncoder encoder = new AttributeEncoder ();
- encoder.EncodeNamedPropertyArgument (prop, new BoolLiteral (Compiler.BuiltinTypes, true, Location.Null));
- SetCustomAttribute (pa.Constructor, encoder.ToArray ());
+ if (!IsSatelliteAssembly) {
+ if (!wrap_non_exception_throws_custom) {
+ PredefinedAttribute pa = module.PredefinedAttributes.RuntimeCompatibility;
+ if (pa.IsDefined && pa.ResolveBuilder ()) {
+ var prop = module.PredefinedMembers.RuntimeCompatibilityWrapNonExceptionThrows.Get ();
+ if (prop != null) {
+ AttributeEncoder encoder = new AttributeEncoder ();
+ encoder.EncodeNamedPropertyArgument (prop, new BoolLiteral (Compiler.BuiltinTypes, true, Location.Null));
+ SetCustomAttribute (pa.Constructor, encoder.ToArray ());
+ }
}
}
- }
- if (declarative_security != null) {
+ if (declarative_security != null) {
#if STATIC
- foreach (var entry in declarative_security) {
- Builder.__AddDeclarativeSecurity (entry);
- }
+ foreach (var entry in declarative_security) {
+ Builder.__AddDeclarativeSecurity (entry);
+ }
#else
- throw new NotSupportedException ("Assembly-level security");
+ throw new NotSupportedException ("Assembly-level security");
#endif
+ }
}
CheckReferencesPublicToken ();