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 ?
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
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
281 Points
1002 Posts
How can i add a HintPath to a dll in Visual Studio ?
Jul 10, 2020 05:05 AM|robby32|LINK
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
Contributor
3370 Points
1409 Posts
Re: How can i add a HintPath to a dll in Visual Studio ?
Jul 13, 2020 07:10 AM|samwu|LINK
Hi roby32,
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