locked
How can i add a HintPath to a dll in Visual Studio ? RRS feed

  • Question

  • User1253338400 posted

    I have a solution with 15 projects.  A library has been upgraded which is referenced in all the project and after the upgrade the HintPath has been lost.

    It now looks at the users local drive to get the dll's , whereas before it  referenced a particular directory (which was in the hint path).

    I tried to add a reference path in Project Properties , but the issue with that is that it puts the reference as c:\development\librayA\ , whereas someone else may have a different directory to there development environment maybe d:\dev\LibraryA.

    Is there a way i can add hintpaths without deleting every reference and re-adding ?

    Can i add a relative path in Project Properties -->Reference Path ?

    thanks

    Friday, July 10, 2020 5:05 AM

Answers

  • User288213138 posted

    Hi roby32,

    Can i add a relative path in Project Properties -->Reference Path ?

    After my test, if it is in the same solution path, VS will automatically refer to the dll with a relative path.

    You only need to add a reference in the References under the project.

    This is my tested result, the result is a relative path.

    Best regards,

    Sam

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 13, 2020 7:10 AM