Skip to content

Strongly named assembly issue

George George

Asked Oct 26, 2008, 10:51 PM EDT5 answers
Share
LinkedInX

Hello everyone,


I have one confusion about strongly named assembly.

Suppose I am developing a library (DLL), and other application is linked with it (reference to the library DLL), my purpose is not to make the dependent application rebuild if I do not change the interface exposed to the application.

(i.e. if I just changed the implementation of the exposed interface and keep interface the same, application developer just need to copy my new library DLL, all other changes are transparent to application, and no need to rebuild.)

My question if I made the DLL strongly named, even if I keep the exposed interface the same (just change interface implementation), the application needs to rebuild? Why?


thanks in advance,
George

5 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    +1
    Could you precise whether the your assembly is a .Net or COM one?
    +1
  • +1

    It is a pure .Net assembly. My current confusion is, support the client application is built with strongly named assembly version 1, and if  I change the strongly named assembly to version 2 and deploy to client environment, and also keep interfaces used by client application the same, will there any needs or benefits for the client application to rebuild?

     

    regards,

    George

    +1
  • Bechir Bejaoui
    +1
    Even if there is not change at the exposed interface, you have to rebuild the assembly at the same time you can fix the version by going inside the assembly info file and change the AssemblyVersion attribute  from 1.* to 2.0 because for each build action the new assembly version will be registred in the registry entry without no needs. Hope I gave you a good suggestion 
    +1
  • +1

    Sorry I think we are talking about two things. My question is, if my exe application is referening a DLL, and the DLL is strong named. Then if the DLL is released with a new version, then the exe application has to rebuild with the new version DLL, correct? Any ways to save the rebuild step?

     

    regards,

    George

    +1
  • Bechir Bejaoui
    +1
    If I well understood the situation, you have built an exe against a given dll assembly?
    +1