-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Move AssemblyExtensions.GetApplyUpdateCapabilities to be guarded by Debugger.IsSupported #51994
Conversation
…ebugger.IsSupported
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer Issue DetailsWe are currently using the #51159 tracks using a separate "hot reload" feature switch if we don't want to tie "debugging" and "hot reload" together.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Do we run tests in configurations without a debugger? In that case runtime/src/libraries/System.Runtime.Loader/tests/AssemblyExtensionsTest.cs Lines 34 to 35 in 636988a
|
The one place that I know of that will trim the test with runtime/src/libraries/System.Diagnostics.StackTrace/tests/System.Diagnostics.StackTrace.Tests.csproj Lines 7 to 8 in 6ca3d91
|
Looking at the test code: runtime/src/libraries/System.Runtime.Loader/tests/AssemblyExtensionsTest.cs Lines 37 to 38 in 636988a
The trimmer should be able to recognize this reflection pattern, and not trim the |
We are currently using the
Debugger.IsSupported
feature switch to trim out hot reload support. So moving this method to only be preserved whenDebugger.IsSupported
is true.#51159 tracks using a separate "hot reload" feature switch if we don't want to tie "debugging" and "hot reload" together.