You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clean up if netcoreapp usage in System.Runtime.Tests. #21827
First, this define should also be on for uapaot builds.
Second, it's mostly used now to guard access to the "Enum's with funny backing type" statics (s_boolEnumType and friends.) These should be replaced with something that gates on PlatformDetection.IsReflectionEmitSupported.
So is it as simple as replacing #if netcoreapp with one of those two suggestions? Or should I append that guard to #if netcoreapp? Presumably I should do this for each usage of s_boolEnumType & the like as well?
Activity
wtgodbe commentedon Feb 14, 2018
@atsushikan it looks like https://github.com/dotnet/corefx/blob/master/src/System.Runtime/tests/System/EnumTests.cs#L64 is an example of what you're talking about - can you give an example of what should be replacing s_boolEnumType (and friends)? Do you envision that block of code not needing to be gated by an #if, or should it be gated by an #if netcoreapp OR uapaot?
wtgodbe commentedon Feb 14, 2018
So is it as simple as replacing
#if netcoreappwith one of those two suggestions? Or should I append that guard to#if netcoreapp? Presumably I should do this for each usage of s_boolEnumType & the like as well?danmoseley commentedon Mar 22, 2018
@wtgodbe are you taking this? Can you please find an owner so it can get closed by 30th or move to future if appropriate?
wtgodbe commentedon Mar 22, 2018
@atsushikan thanks - I can take this on when I have time, but wouldn't have had it done by the 30th
Cleanup NETCOREAPP ifdef usage in System.Runtime.Tests (#22224)