Question

Can I do RegAsm to a .NET 2 dll with .Net4 RegAsm.exe?
I have only .NET 4 installed on my machine and I need to do RegAsm to a .NET 2 file.

Was it helpful?

Solution

Yes, you can. The RuntimeVersion value written to the registry will be set according to the CLR header (that is, even if you register the 2.0 DLL with 4.0 RegAsm, it will 'know' that it's a 2.0 DLL and register it accordingly).

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