Skip to content
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

WindowsImpersonationContext #373

Open
Guggs opened this issue Mar 23, 2021 · 1 comment
Open

WindowsImpersonationContext #373

Guggs opened this issue Mar 23, 2021 · 1 comment
Labels
area:Windows enhancement New feature or request Triaged Label to show that UA team has triaged this issue.

Comments

@Guggs
Copy link

Guggs commented Mar 23, 2021

Hi, i am currently upgrading an .net framework appliation to .net 5.
I installed the windows compability pack with its version of System.security.principal.
Now WindowsImpersinationContext is not supported here anymore and i also cant use the method Impersonate() of WindowsIdentity anymore. I can't find a solution on this issue. Could you please help me out?

@mjrousos
Copy link
Member

@Guggs, the Impersonate method is not available on .NET Core but you can use WindowsIdentity.RunImpersonated instead. This would be a good API for Upgrade-Assistant to flag with an analyzer so that developers can be pointed in the right direction.

@abpiskunov abpiskunov added enhancement New feature or request Triaged Label to show that UA team has triaged this issue. labels Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Windows enhancement New feature or request Triaged Label to show that UA team has triaged this issue.
Projects
None yet
Development

No branches or pull requests

4 participants