I want to first mention that I do have a workaround and am using the workaround on this feature, but it’s a point of nuisance to me that I’d like to post about it here.
The NuGet pack action has a field where you can specify Configuration. When you run the command it adds to the command:
-Properties "Configuration=%ConfigurationValuePassedIn%"
I want to pass in additional Properties to this, and I found out that I could pass these in via that same field. I’m just required to specify the Configuration every time.
Right now I pass in this:
%BuildConfiguration%;VisualStudioVersion=%VisualStudioVersion%
But it would make a lot more sense if the action was only adding -Properties “” and I need to specify this in the field:
Configuration=%BuildConfiguration%;VisualStudioVersion=%VisualStudioVersion%
Hi Stpitner,
Just to confirm that the issue is actually with the pack command?
sorry, yes, it is with NuGet Pack. Not sure why I had push on the brain.