File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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
4850You have several options to fix this warning:
Original file line number Diff line number Diff 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
4850You have several options to fix this warning:
You can’t perform that action at this time.
0 commit comments