So, I have a third-party .dll written in C # 2.0, which must be strongly typed, and I do not have access to the source code. I found several articles on how to deploy a DLL and reassemble it with a strongly named key file.
The problem that I am facing is that VS2010 recompiles it as .NET 4.0.dll instead of 2.0.dll (the version that our application is now in). I canβt include the βnewβ DLL in my project because it gives me a runtime error: βThis assembly is built using a runtime that is newer than the currently loaded runtime and cannot be loaded.β If I do not sign the dll, I get "the assembly is not very typed." mistake.
Is there a way to recompile this .dll in the 2.0 framework using VS2010 ilasm.exe?
c # visual-studio-2010 ilasm
Sean
source share