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: docs/core/deploying/native-aot/warnings/il3058.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "IL3058: Referenced assembly is not annotated for AOT compatibility"
3
3
description: "Learn about warning IL3058: Referenced assembly is not annotated for AOT compatibility"
4
-
ms.date: 12/02/2024
4
+
ms.date: 12/02/2025
5
5
ai-usage: ai-assisted
6
6
f1_keywords:
7
7
- "IL3058"
@@ -49,9 +49,8 @@ warning IL3058: Referenced assembly 'MyLibrary' is not built with `<IsAotCompati
49
49
50
50
You have several options to fix this warning:
51
51
52
-
1.**Update the referenced library** to be built with `<IsAotCompatible>true</IsAotCompatible>`. This is the preferred approach if you control the library source code. The `IsAotCompatible` property marks the assembly as compatible with Native AOT and enables AOT-specific analysis.
53
-
54
-
2.**Disable the verification** by setting `<VerifyReferenceAotCompatibility>false</VerifyReferenceAotCompatibility>` in your project file if you're confident that the library works correctly with Native AOT even without the attribute.
52
+
-**Update the referenced library** to be built with `<IsAotCompatible>true</IsAotCompatible>`. This is the preferred approach if you control the library source code. The `IsAotCompatible` property marks the assembly as compatible with Native AOT and enables AOT-specific analysis.
53
+
-**Disable the verification** by setting `<VerifyReferenceAotCompatibility>false</VerifyReferenceAotCompatibility>` in your project file if you're confident that the library works correctly with Native AOT even without the attribute.
Copy file name to clipboardExpand all lines: docs/core/deploying/trimming/trim-warnings/il2125.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "IL2125: Referenced assembly is not annotated for trim compatibility"
3
3
description: "Learn about trim warning IL2125: Referenced assembly is not annotated for trim compatibility"
4
-
ms.date: 12/02/2024
4
+
ms.date: 12/02/2025
5
5
ai-usage: ai-assisted
6
6
f1_keywords:
7
7
- "IL2125"
@@ -49,9 +49,8 @@ warning IL2125: Referenced assembly 'MyLibrary' is not built with `<IsTrimmable>
49
49
50
50
You have several options to fix this warning:
51
51
52
-
1.**Update the referenced library** to be built with `<IsTrimmable>true</IsTrimmable>`. This is the preferred approach if you control the library source code. See [Prepare .NET libraries for trimming](../prepare-libraries-for-trimming.md) for guidance on making libraries trim-compatible.
53
-
54
-
2.**Disable the verification** by setting `<VerifyReferenceTrimCompatibility>false</VerifyReferenceTrimCompatibility>` in your project file if you're confident that the library works correctly with trimming even without the attribute.
52
+
-**Update the referenced library** to be built with `<IsTrimmable>true</IsTrimmable>`. This is the preferred approach if you control the library source code. For guidance on making libraries trim-compatible, see [Prepare .NET libraries for trimming](../prepare-libraries-for-trimming.md).
53
+
-**Disable the verification** by setting `<VerifyReferenceTrimCompatibility>false</VerifyReferenceTrimCompatibility>` in your project file if you're confident that the library works correctly with trimming even without the attribute.
0 commit comments