Domanda

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.

È stato utile?

Soluzione

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).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top