Skip to content

Commit 8a56f73

Browse files
sbomergewarren
andauthored
Apply suggestions from code review
Co-authored-by: Genevieve Warren <[email protected]>
1 parent ddfdc9a commit 8a56f73

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/core/deploying/native-aot/warnings/il3058.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "IL3058: Referenced assembly is not annotated for AOT compatibility"
33
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
55
ai-usage: ai-assisted
66
f1_keywords:
77
- "IL3058"
@@ -49,9 +49,8 @@ warning IL3058: Referenced assembly 'MyLibrary' is not built with `<IsAotCompati
4949

5050
You have several options to fix this warning:
5151

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.
5554

5655
## See also
5756

docs/core/deploying/trimming/trim-warnings/il2125.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "IL2125: Referenced assembly is not annotated for trim compatibility"
33
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
55
ai-usage: ai-assisted
66
f1_keywords:
77
- "IL2125"
@@ -49,9 +49,8 @@ warning IL2125: Referenced assembly 'MyLibrary' is not built with `<IsTrimmable>
4949

5050
You have several options to fix this warning:
5151

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.
5554

5655
## See also
5756

0 commit comments

Comments
 (0)