.Net DLL version insight Required RRS feed

  • Question

  • Hi,

    I have one query regarding .net assemblies. If we have Aseembly1 and Assembly2, where Assembly1 has a dependency on Assembly2 and both are build/deployed with version Now if I do a patch in Assembly2 and deploy it with a version version, will the Assembly1 will be able to load Assembly2?

    I have tried doing this POC and no matter what version I give to Assembly2, Assembly1 is able to load it, I was expecting Assembly2 load to fail due to version conflict because Assembly1 is expecting Assembly2 to have version but it has a diff assembly version. DLL's are not signed.

    Please explain what am I missing here?



    • Moved by Jiayi Li Monday, November 2, 2015 8:54 AM
    Sunday, November 1, 2015 5:48 AM


All replies

  • Hi Deepak,

    This forum is about .NET Framework Setup and Servicing.

    Your issue would be related to CLR, I help you move this case to Common Language Runtime Internals and Architecture forum for dedicated support.

    Thank you for your understanding.

    Best Regards,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Monday, November 2, 2015 8:54 AM
  •     Versioning is done only on assemblies with strong names.

    My guess would be that they don't support versioning for unsigned assemblies because unsigned assemblies are not going to be in the GAC, so they are probably distributed with the application and therefore they are unlikely to need to disambiguate based on version. So checking the version of an unsigned assembly would probably get in the way more than help.

    Monday, November 2, 2015 11:27 AM
  • >deploy it with a version version, will the Assembly1 will be able to load Assembly2?

    It depends on whether you incremented the AssemblyVersion or the AssemblyFileVersion.  See:

    How to use Assembly Version and Assembly File Version


    David http://blogs.msdn.com/b/dbrowne/

    Monday, November 2, 2015 4:32 PM