You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Resources.resx
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -637,4 +637,7 @@
637
637
<value>The type {0} has a [Protocol] and a [BaseType] attribute, but no [Model] attribute. This is likely incorrect; either remove the [BaseType] attribute, or add a [Model] attribute.</value>
638
638
</data>
639
639
640
+
<dataname="BI1124"xml:space="preserve">
641
+
<value>Found a [Preserve] attribute on {0}: [Preserve] is deprecated; use [DynamicDependency] instead.</value>
print("\tGC.KeepAlive (null);");// need to do _something_ (doesn't seem to matter what), otherwise the static cctor (and the DynamicDependency attributes) are trimmed away.
print ("\tGC.KeepAlive (null);");// need to do _something_ (doesn't seem to matter what), otherwise the static cctor (and the DynamicDependency attribute) is trimmed away.
5249
+
print ("}");
5250
+
print ("");
5251
+
5242
5252
// Methods
5243
5253
// First find duplicates and select the best one. We use the selector to determine what's a duplicate.
5244
5254
var methodData = requiredInstanceMethods.Select((v)=>{
@@ -5451,6 +5461,9 @@ public void PrintPreserveAttribute (ICustomAttributeProvider mi)
5451
5461
if(pisnull)
5452
5462
return;
5453
5463
5464
+
if(!BindThirdPartyLibrary)
5465
+
exceptions.Add(ErrorHelper.CreateError(1124/* Found a [Preserve] attribute on {0}: [Preserve] is deprecated; use [DynamicDependency] instead. */,FormatProvider(mi)));
5466
+
5454
5467
if(p.AllMembers)
5455
5468
print ("[Preserve (AllMembers = true)]");
5456
5469
elseif(p.Conditional)
@@ -6743,7 +6756,6 @@ public void Generate (Type type)
0 commit comments