I am facing a hilarious situation. I have an app FW 4.5 that can not be upgraded to FW 4.6 because in our servers we don`t have that Fw installed.
I need to use some functionality that is only shipped in the library Fw 4.6. System.Security.dll
has been improved and has an extension method I need to use: RSACertificateExtensions.GetRSAPrivateKey(this X509Certificate2 certificate);
Well, I tried to load the concrete assembly , by reflection, putting it inside a concrete path. I have read and checked that if the assembly is signed, I allways will get the GAC version, so in servers where FW 4.6 is not installed it will never work, as it will go to GAC and retrieve 4.5 version. What can I do?
- Is it possible to generate a custom library version of
System.Security
? I tried it with the sources code of microsofot but without success. - Is it possible to load the specific assembly ? Both assemblies are version
4.0.0.0
so I can not useSpecific version
, since from outside are the same version. - Anyone know if the method
RSACertificateExtensions.GetRSAPrivateKey(this X509Certificate2 certificate);
has been developed in a third party library?