How Add Local modules mymodule.d using DUB?

Steven Schveighoffer schveiguy at gmail.com
Mon Aug 9 16:37:10 UTC 2021


On 8/9/21 12:32 PM, Marcone wrote:
> My main program need import a local module called mymodule.d.
> How can I add this module using DUB? Thank you.

You mean how to add a local project (that isn't on code.dlang.org)?

`dub add-local .` inside the project directory.

I don't think you can add a file directly without a project, but possibly.

-Steve


More information about the Digitalmars-d-learn mailing list