Skip to content

Allow Dependencies Listed in a Nuspec file to have a Parameters Attribute. #2394

@pyrostew

Description

@pyrostew

I have noticed while working on a project where we build customised Windows OS images that there isn't a neat way of passing parameters to package dependencies.

Essentially we have a series of software packages that have been built by internal software teams. Each of these packages can have dependencies on other internal packages or 3rd party packages. Some of these dependant packages need parameters passing to them to install correctly, but there is no apparent mechanism to do that from the parent package nuspec.

At the moment we avoid this by pulling the packages that need parameters up to the top level and add the parameters to the calling code. This isn't ideal as it contaminates the top level build process with information that it shouldn't care about, and should be managed by other teams.

Being able to do something like this in the Dependencies element would be ideal, but I'm not sure what the knock on effects would be from doing this.

<dependencies>
   <dependency id="Internal01" />
   <dependency id="internal02" params="--arch x64" />
   <dependency id="internal03" />
   <dependency id="external01" params="--LogDirectory C:\Logs" />
   <dependency id="external02" />
</dependencies>

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions