-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a unit test to validate FX EventSource Events that are trimmer suppressed #49248
Comments
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue DetailsDescriptionEventSource's WriteEvent(int,params object?[]) and Write methods have been annotated with the RequiresUnreferencedCode to prevent developers who derive EventSource to get into trimming problems due to serialization issue. Developers need to manually look at the event method arguments and make them safe (either via additional dependecy attributes or if the arguments are primitive) As part of making the change to add the RequiresUnreferencedCode, we manually looked at all the library eventsource and ensured that they are safe as described above. We need to add a test (likely a reflection based one) to ensure that these methods continue to be safe Configuration.NET 6.0 Regression?No Other informationTake a look at similar tests @eerhardt added for other areas in the library
|
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @tannergooding, @sbomer Issue DetailsDescriptionEventSource's WriteEvent(int,params object?[]) and Write methods have been annotated with the RequiresUnreferencedCode to prevent developers who derive EventSource to get into trimming problems due to serialization issue. Developers need to manually look at the event method arguments and make them safe (either via additional dependecy attributes or if the arguments are primitive) As part of making the change to add the RequiresUnreferencedCode, we manually looked at all the library eventsource and ensured that they are safe as described above. We need to add a test (likely a reflection based one) to ensure that these methods continue to be safe Configuration.NET 6.0 Regression?No Other informationTake a look at similar tests @eerhardt added for other areas in the library
|
Cannot think of an easy way to add a generic test and moving this issue the next version. The best practice for any new Framework
|
Added a manifest trimming test, #56463. And there is a good smoke |
Moving older issues to the Future milestone as it is unlikely we will have time to address this in the .NET 7 timeframe |
Description
EventSource's
WriteEvent(int,params object?[])
andWrite<T>
methods have been annotated with theRequiresUnreferencedCode
to prevent developers who derive EventSource to get into trimming problems due to serialization issue. Developers need to manually look at the event method arguments and make them safe (either via additional dependecy attributes or if the arguments are primitive)As part of making the change to add the
RequiresUnreferencedCode
, we manually looked at all the library eventsource and ensured that they are safe as described above.We need to add a test (likely a reflection based one) to ensure that these methods continue to be safe
Configuration
.NET 6.0
Regression?
No
Other information
Take a look at similar tests @eerhardt added for other areas in the library
The text was updated successfully, but these errors were encountered: