Replies: 1 comment 4 replies
-
|
The trimming warnings should only be enabled when |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After installing Visual Studio 2026 and .NET10 I noticed the following behavior:
I’m building an AOT project that uses DI. When I build and publish the project, the IL trimming/AOT warnings are not shown in Visual Studio — neither in the Build Output nor in the Error List (Build + IntelliSense).
Code snippet:
However, when I run dotnet format, those warnings do appear:
Before upgrading from .NET 8 to .NET 10 and from VS 2022 to VS 2026, these warnings were displayed both during the build / publish and inside the Visual Studio Error List.
I think that in this specific case I can ignore the warnings, because I use my own classes in this project for Configure(). I’m mainly curious whether anyone else has seen this behavior and whether this might be a Visual Studio or SDK bug.
Beta Was this translation helpful? Give feedback.
All reactions