dub root folder as environment-variable in VisualD

Rainer Schuetze r.sagitario at gmx.de
Mon Jan 4 20:40:37 UTC 2021



On 03/01/2021 23:40, ShadoLight wrote:
> On Sunday, 3 January 2021 at 22:21:54 UTC, ShadoLight wrote:
> [..]
>>
>>
>> Is there some way this can be done at the moment? (modulo some
>> trickery using external *.bat files or system environment-variables)
>>
> 
> At the moment I can make this work by creating a system/user
> environment-variable for this, but this still means I need to modify
> (typically multiple paths in the VisualD project each time I generate a
> VisualD project with dub.
> 
> (Well, you obviously also have to do this if you manually create a
> VisualD project inside VS that has dependencies - but then at least you
> expect to do this since you are doing everything manually).
> 
> I'm interested if there is currently a way to do this via dub..? or
> VisualD?

AFAICT dub generates the VS solution in the same folder as your root
project. So maybe you can use $(SOLUTIONPATH) as a replacement in the
generated visuald project. See
https://rainers.github.io/visuald/visuald/ProjectConfig.html


More information about the Digitalmars-d-ide mailing list