title: Visual Studio c++ dll not found
body: <p>I am trying to link my .exe file to a .dll in visual studio but I don't understand how (I am using VS2019).
  I have looked at this question <a href="https://stackoverflow.com/questions/2119539/how-do-i-set-the-path-to-a-dll-file-in-visual-studio">here</a> but it only provides half the solution. I went to project properties-&gt;debugging-&gt;Environment and added PATH=LOCATION_OF_MY_DLL and this works when I run the program in the IDE, but when I manually run the .exe it gives the same error that the dll was not found (it is only fixed if I copy the dll to the exe location).</p>
  <p>In addition, I am managing the entire project using premake so is there a way to add these setting in there as well?</p>