Hello! In my work, I need to use corefx - a library that supports Russian cryptographic algorithms. The corefx library extends standard classes and structures such as System.Security.Cryptography.HashAlgorithmName. But when I try to import the library (after assembling corefx), nothing happens: I tried using both Add -Type and adding the assembled library via [System.Runtime.Loader.AssemblyLoadContext]::Default.LoadFromAssemblyPath / LoadFromStream, but nothing helps. If, however, the source code, for example, System.Security.Cryptography.HashAlgorithmName, is supplied to the Add -Type -TypeDefinition input, then an exception occurs: a conflict with the previously added System.Security.Cryptography.HashAlgorithmName. Can you please tell me how can I replace the standard libraries in powershell with my own?
Hi,
Maybe this
[System.Reflection.Assembly]::LoadFile('path to your dll')
Unfortunately, that didn’t work already tried this one