creating a dll inside a web project without duplicate references RRS feed

  • Question

  • User-624338019 posted

    we have a dll that we just put in our bin folder.
    this dll needs to reference stuff in the website so we include references to other dll's in the bin folder.
    the main issue is if one of those dlls gets updated then our dll needs to be recompiled with the newer versions of those referenced dlls

    is there a way to create this dll while inside the website so we dont have to include references to the outer dlls?
    or a way to include those references when writing the project but when compiling it then not include them?
    if we didnt include them would it still work with the other dlls in the bin folder or MUST it have those references inside of it?

    Thursday, May 29, 2014 8:33 AM


  • User-760709272 posted

    If the only thing changing is the dll version, if the interfaces are the same, then you can just not update the version of the dll when you compile it, or you can add a "redirect" in the web.config that tells dlls that if they are looking for a version of a dll in a certain range, that they can use a specific version instead.  That way when your dll changes you just need to update the web.config so that your other dll is given the latest version of the recompiled dll when it asks for the old one.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 29, 2014 8:40 AM