-
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
Consider exposing AppDomain.get_PermissionSet #27594
Comments
The change makes sense to me. @maryamariyan another one for your list - porting @ericstj change above. |
@ericstj why was it necessary to create a netcoreapp configuration in S.S.Permissions? Isn't it not breaking to change to a type forward? |
Because AppDomain is part of netstandard.dll and we cannot retroactively push PermissionSet into netstandard.dll. Another way to look at this is we needed to typeforward to S.R.Extensions which was absorbed into netstandard, which we cannot change. This is not a breaking change to forward a type, so long as you forward from the previous location. |
Isn't this going to push S.S.Permissions into a partial .NET Core OOB with all the mess that comes with it? |
No, this just means S.S.Permissions needs to cross-compile for netcoreapp3.0. Nothing else changes, we're not suggesting to change the inbox behavior of any assembly. |
@jkotas unrelated to this...i see term OOB in some discussion...can point me to some documentation of out-of-band meaning?Sorry for the noise here...but i'd like to understand all. |
Ok, I see that we have several other types forwarded from S.S.Permissions already.
I am not sure whether we have it written anywhere ... here is the decoder ring:
|
I've seen a number of libraries depend on this property. API Usage shows that it is quite high: https://apisof.net/catalog/System.AppDomain.PermissionSet
In my early prototypes for .NETCore 3.0 I needed to expose it.
https://devdiv.visualstudio.com/DevDiv/_git/DotNet-CoreFX-Trusted/commit/5704601346049767433cd5d717fed16733056f58?refName=refs%2Fheads%2Fericstj%2Fadd.back.types.experiment
The gist of that change is that it pushed PermissionSet and IStackWalk down into System.Runtime.Extensions and exposed AppDomain.get_PermissionSet as
return new PermissionSet(PermissionState.Unrestricted);
.The controversial thing here is pushing those types down, however it was relatively contained; it luckily didn't bring down all of S.Sec.Permissions.
/cc @danmosemsft
The text was updated successfully, but these errors were encountered: