You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now CAS (as I understand the documentation) can be simply put behind a preprocessor #if NETFRAMEWORK (I think .NET Core/.NET 5 runs in full trust only) unless there's a necessity to block access in some cases. CER would be a concern (I'm seeing a lot of ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)).
Edit: To clarify a bit, the warning are thrown in bits of code like [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)].
The text was updated successfully, but these errors were encountered:
Since update of Visual Studio 16.8.0, I'm facing numerous errors of kind
Gravité Code Description Projet Fichier Ligne État de la suppression
Erreur CA2135 'CredentialDialog.ShowDialog()' est protégé avec un LinkDemand pour 'SecurityPermissionAttribute'.
Dans l'ensemble de règles de sécurité de niveau 2, il devrait plutôt être protégé en étant critique de sécurité.
Supprimez le LinkDemand et marquez 'CredentialDialog.ShowDialog()' comme critique de sécurité.
Ookii.Dialogs.Wpf \Ookii.Dialogs.Wpf\CredentialDialog.cs 386 Actif
Thanks @acemod13 & @gitjsdr26. These errors have been fixed in PR #25 please review it when you have a chance and let me know if you find any other issue.
I've just released a pre-release NuGet package Ookii.Dialogs.Wpf v3.0.0-preview1 from the same branch as PR @5, targeting .NET 5 (in addition to .NET Core 3.1 and .NET Framework 4.5.
If all goes well, I'll release a final version 2.0.0 and 3.0.0 to NuGet this weekend:
v2.0.0: Targets .NET Core 3.1 and .NET Framework 4.5
As I was working on getting .NET 5 support, the compiler threw numerous warnings about two APIs(?): Code Access Security (SYSLIB0003 -> see dotnet/docs#21021) and Constrained Execution Region (SYSLIB0004 -> see https://docs.microsoft.com/en-us/dotnet/core/compatibility/syslib0004).
Now CAS (as I understand the documentation) can be simply put behind a preprocessor
#if NETFRAMEWORK
(I think .NET Core/.NET 5 runs in full trust only) unless there's a necessity to block access in some cases. CER would be a concern (I'm seeing a lot ofReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)
).Edit: To clarify a bit, the warning are thrown in bits of code like
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
.The text was updated successfully, but these errors were encountered: