Dub Renaming source/app.d makes project a library

Nicholas Wilson iamthewilsonator at hotmail.com
Sun Oct 28 03:27:30 UTC 2018


So I have a project that is a simple dub app with
source/
     app.d

$dub
Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64.
foo ~master: building configuration "application"...
Linking...
Running ./foo
Edit source/app.d to start your project.
$mv source/app.d source/foo.d
$dub
Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64.
foo ~master: building configuration "library"...
Target is a library. Skipping execution.

How do I get it to continue to build in the application 
configuration by default with the renamed file?

I've tried

mainSourceFile "source/foo.d"
targetType "application"
targetType "executable"

to no avail.

Thanks
Nic


More information about the Digitalmars-d-learn mailing list