Skip to content

Support variables in paket.template file #1981

Open
@ramondeklein

Description

@ramondeklein

Description

It would be great to specify variables on the paket pack commandline that will be expanded by paket while processing the paket.template file. This is useful to change paths based on the configuration. A neat option would be to specify defaults for a variable substitution (if it's not set).

Example

Sample paket.template file:

type file
id Example.AmazingPackage
description My Amazing Package by Example.com
version 1.0
authors [email protected]
files
    bin/${ConfigurationDir = "Release"}/**/*

It can be invoked by paket pack ... -DConfigurationDir=Debug so it will package the files from the Debug folder instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions