Skip to content

Commit ddfdc9a

Browse files
Copilotsbomer
andcommitted
Show warnings in separate blocks instead of inline comments
Co-authored-by: sbomer <[email protected]>
1 parent dd89415 commit ddfdc9a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ public class Program
3636
{
3737
public static void Main()
3838
{
39-
// IL3058: Referenced assembly 'MyLibrary' is not built with `<IsAotCompatible>true</IsAotCompatible>`
40-
// and may not be compatible with AOT.
4139
var obj = new MyLibrary.SomeClass();
4240
}
4341
}
4442
```
4543

44+
```
45+
warning IL3058: Referenced assembly 'MyLibrary' is not built with `<IsAotCompatible>true</IsAotCompatible>` and may not be compatible with AOT.
46+
```
47+
4648
## How to fix violations
4749

4850
You have several options to fix this warning:

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ public class Program
3636
{
3737
public static void Main()
3838
{
39-
// IL2125: Referenced assembly 'MyLibrary' is not built with `<IsTrimmable>true</IsTrimmable>`
40-
// and may not be compatible with trimming.
4139
var obj = new MyLibrary.SomeClass();
4240
}
4341
}
4442
```
4543

44+
```
45+
warning IL2125: Referenced assembly 'MyLibrary' is not built with `<IsTrimmable>true</IsTrimmable>` and may not be compatible with trimming.
46+
```
47+
4648
## How to fix violations
4749

4850
You have several options to fix this warning:

0 commit comments

Comments
 (0)