rename _SuppressWinFormsTrimError
to _SuppressWinFormsTrimWarning
#44702
Labels
Milestone
_SuppressWinFormsTrimError
to _SuppressWinFormsTrimWarning
#44702
Is your feature request related to a problem? Please describe.
When a WinFoms project is using
<PublishAot>true</PublishAot>
but not<_SuppressWinFormsTrimError>true</_SuppressWinFormsTrimError>
there will be an error:This error is misleading.
Describe the solution you'd like
As long as
_SuppressWinFormsTrimError
is added, the error is gone, so this is not an error in my point of view, it's more like an warning.So it's better to rename
_SuppressWinFormsTrimError
to_SuppressWinFormsTrimWarning
.When
<PublishAot>
is used but_SuppressWinFormsTrimWarning
is not used, the AOT will run (this is a change), but with warning messages:Just say "not recommended" instead of "not supported or recommended".
When
_SuppressWinFormsTrimWarning
is used, it works as what it is now.Additional context
Most people don't know
_SuppressWinFormsTrimError
, it's not documented. Showing an error too early will prevent users from investigating into the other AOT options.The text was updated successfully, but these errors were encountered: