Can I use dub to build multiple app.d files?

Andre Pany andre at
Tue Apr 21 17:50:03 UTC 2020

On Tuesday, 21 April 2020 at 16:14:54 UTC, Selim wrote:
> Hi there. I have been using dub for a while now -maybe 12 
> months- but I haven't been able to figure out if you can build 
> multiple app.d files with it. Is it possible to use dub run 
> command to build multiple executables in one shot?
> Maybe the question is weird, because dub might not be the tool 
> to do that sort of thing. In that case, I would appreciate 
> pointers.
> Thanks,
> Selim

Hi Selim,

Yes it is supported. In dub.json you set targetType of your main 
dub package to none and add several sub packages (with targetType 

Kind regards

More information about the Digitalmars-d-learn mailing list