1
votes

I've got a build pipeline that pushes a project to Nuget. However, the settings for the pack task configuration is currently $(BuildConfiguration).

As it currently stands, I have to add all the other Nuget package that my package uses manually to the end Project. Is there any way to specify dependencies in the pipeline task? If not, can I combine the variables from the pipeline with a .nuspec file? If so, how?

1

1 Answers

3
votes

You can specify a nuspec file to pack from the nuget pack task. And you can check "Include referennced projects" if your package referenced to other projects.

enter image description here

You can also use nuget custom task to run your custom commands.

enter image description here

Hope above helps!