How to use version in dub?
torhu
torhu at yahoo.com
Tue Dec 13 20:01:40 UTC 2022
On Tuesday, 13 December 2022 at 19:50:15 UTC, torhu wrote:
> On Tuesday, 13 December 2022 at 19:28:44 UTC, Leonardo A wrote:
>> Hello. How to use version in dub?
>>
>> https://dlang.org/spec/version.html
>> "The version level and version identifier can be set on the
>> command line by the -version"
>>
>> I tried everything but noting.
>
> In SDL syntax, either at the top level, in a configuration, or
> build type:
>
> ```
> versions "something" "other"
> ```
To be more clear: When using dub you need to put this in the dub
file, dub.sdl or dub.json. If you want to be able to choose from
the command line, use a configuration:
```
configuration "something" {
versions "something"
}
```
Then you can do:
```
dub build -c=something
```
More information about the Digitalmars-d-learn
mailing list