-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove FriendAccessAllowedAttribute usage #6561
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
Remove FriendAccessAllowedAttribute usage #6561
Conversation
0050fd8
to
81f5414
Compare
112f7b1
to
dcf536e
Compare
I rebased to fix the conflicts. |
Thanks @ThomasGoulet73! We'll consider this PR for our upcoming CTPs. |
dcf536e
to
1971677
Compare
I rebased to fix the conflicts. |
Now, this branch has conflicts |
1971677
to
4228c81
Compare
I rebased to fix the conflicts. Thanks for the ping @lindexi. |
dotnet/runtime#10707 has some more details on this attribute. |
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.
@pchaurasia14 This would be good to get in.
These are CAS holdovers from .NET Framework that add unnecessary complexity. Uses more modern / safer syntax where I've modified code. I've also removed a few asserts where they then fall over on the next line anyway. Similar to and should follow dotnet#7161 and dotnet#6561
Awesome! Those replacements from Thomas will clear out so much clutter. |
These are CAS holdovers from .NET Framework that add unnecessary complexity. Uses more modern / safer syntax where I've modified code. I've also removed a few asserts where they then fall over on the next line anyway. Similar to and should follow dotnet#7161 and dotnet#6561
* Remove SecurityCriticalData/Class These are CAS holdovers from .NET Framework that add unnecessary complexity. Uses more modern / safer syntax where I've modified code. I've also removed a few asserts where they then fall over on the next line anyway. Similar to and should follow #7161 and #6561 * Address feedback
Description
Remove FriendAccessAllowedAttribute usage since it is not enforced in .Net Core. FriendAccessAllowedAttribute is an undocumented and non-public attribute which is not supported anymore. To use
FriendAccessAllowedAttribute
, when supported, you need to set InternalsVisibleToAttribute.AllInternalsVisible to false, which is never set in this repo.There are modifications to generated files in
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated
but these files are generated from Elements.cs which is not runnable in this repo right now (#6135) but it should be fine because once we can run MilCodeGen, there shouldn't be any diffs.Customer Impact
None.
Regression
No.
Testing
Local build + CI.
Risk
Low.
Microsoft Reviewers: Open in CodeFlow