I have a console app in Net Framework 4.6.1 that implements
((ClaimsIdentity)Thread.CurrentPrincipal.Identity).AddClaim(new Claim(...))
I tried to migrate my app to .Net 6 but i got a NullReferenceException with this instruction.
I need the equivalent of this ligne of code in .Net6 so pretty simple please.
thank you