Join 36 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
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?
to your account
It is possible for Thread.CurrentPrincipal to be null in a .Net Core console environment. This causes the DesktopAccessProvider.CurrentUser property to fail.
Solution: add a question mark.
if (Thread.CurrentPrincipal?.Identity is IUser user)