Question

So, I have a 3rd party .dll written in C# 2.0 that needs to be strongly typed and I do not have access to the source code. I found several articles on how to disassembly the .dll and re-assembly it with a strongly named key file.

Problem I am having is that VS2010 recompiles it as a .NET 4.0 .dll instead of a 2.0 .dll (the version our application is currently in). I can't include the "new" dll in my project because it gives me a runtime error of: "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded." If I don't sign the dll, I get the "assembly is not strongly typed." error.

Is there a way to recompile this .dll in the 2.0 framework using VS2010 ilasm.exe?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top