On Wednesday, 22 March 2017 at 04:06:50 UTC, Mike Parker wrote:
dub fetch --cache=local mir-algorithm
Using --cache=local will put the package in the current
directory instead of the AppData path. When you aren't using
dub to manage your own projects, that makes it easier to deal
with (e.g. cd C:\dev\dub\package-name). You can cd to the
package's root directory and run dub build, then add the path
to the resultant library to your IDE, or copy the library to a
common path.
Sorry, forgot to mention. With this approach, you also have to
build any dependencies and link them in. And you'll want to
specify where to find the dependencies if they aren't in the
global cache. I have examples of doing this in the Derelict
documentation:
http://derelictorg.github.io/building/without-dub/