I Have a C++ application built with .net framework 4.6.2 and now i am trying to upgrade the library to .NET6.0.
I have security actions attributes specified in multiple places as below.
[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];
[System::Security::Permissions::SecurityPermissionAttribute(System::Security::Permissions::SecurityAction::Demand, SerializationFormatter=true)]
As the code access security CAS is obsolete , while trying to build the c++ library with .net6.0 in VS 2022 i am getting the error saying "error C4950: 'System::Security::Permissions::SecurityAction': marked as obsolete".
So, am trying to find alternative ways if any to implement the security actions.
Any suggestions will be very helpful.
Thanks in advance.