문제

I have a Utility class dll added to GAC of front end live server.

Now I need to make copy of dll with another name and change a little bit of code in it.

If I copy renamed dll to GAC is it enough ? what if both dlls generated from different projects but both projects has same GUID or Public Key.

In short I don't want GAC to mix up my renamed dll to original dll

도움이 되었습니까?

해결책

The GAC uses an assemblies strong-name to identify it, this is a combination of

simple text name, version number, and culture information (if provided) — plus a public key and a digital signature

Given you are renaming the DLL then the GAC should identify your updated DLL as a completely different assembly so there should be no issues with overwriting the the original.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top