Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1139578 Context: https://liquid.microsoft.com/Web/Object/Read/ms.security/Requirements/Microsoft.Security.SystemsADM.10039#guide The current security guidance is that the [`System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute`](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.defaultdllimportsearchpathsattribute?view=netcore-3.1) attribute should be placed either on the assembly or on `[DllImport]` methods, to control and constrain where [`LoadLibraryEx()`](https://docs.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryexa?redirectedfrom=MSDN) will look for native libraries. The advice is to use: ```csharp [assembly: DefaultDllImportSearchPathsAttribute(DllImportSearchPath.SafeDirectories)] ```
Activity
Use DefaultDllImportSearchPathsAttribute
Use DefaultDllImportSearchPathsAttribute (#66)
[LibZipSharp] Bump to Version 1.0.20 (#4976)
[LibZipSharp] Bump to Version 1.0.20 (#4976)