-
-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Properties argument in nuget pack #666
Comments
👍 just thinking about this one as well, so that an alternative is mentioned... You could use the ArgumentCustomization method on the base ToolSettings class to extend the arguments that are supported by an alias. |
@gep13 You mean as a user (I.e., if I wanted to get the
|
Assuming that NuGetTool derives from Tool, which I assume it does, then the base class has this covered: cake/src/Cake.Core/Tooling/Tool.cs Line 134 in 2e33d9f
No? |
@patriksvensson did you mean to close this issue? |
I didn't mean to close it, that was an accident on my part, but then I clicked re-open, and immediately it got closed by you 😄 |
Hahaha - "THIS IS THE WORST IDEA EVAR!!!! CLOSE!!!!" |
Indeed it does! I wasn't following the flow close enough and didn't notice that |
It's good to know about the ability to customize the settings arguments - that'll come in handy. I still think the explicit Properties dictionary is warranted since it makes things a little clearer (especially with the slightly goofy |
oh yeah, absolutely, I am not suggesting that this isn't needed. I just wanted to make sure that you were aware of the option to do it using the other technique, in the interim. |
👍 |
@daveaglick @gep13 Seriously, I have no idea why this issue got closed. I've been at a dinner tonight and only looked at the issue on my phone when I got a notification... |
@patriksvensson so did you re-open it as well? If not, maybe a good time to change your GitHub password 😢 |
Have you checked the issue number...👿 |
@gep13 Yes, I reopened the issue manually when I saw your conversation and I have two factor auth. |
So tempted to close and immediately reopen this again just to mess with everyone... |
@daveaglick lol 😄 |
@patriksvensson, any chance this (#681) could be included in milestone v0.9.0 also. This is closely related to #637 in terms of features that will be utilised together. For example, I'm looking to iterate through projects in a solution containing nuspec files, then do a "Nuget pack" against the project file and pass the configuration as a property to nuget to determine the files to pack: nuget pack MyProject.csproj -Version 1.0.0 -Properties Configuration=Release -OutputDirectory ./artifacts -IncludeReferencedProjects |
When packing a project file (#637), the
-Properties
argument is often used to specify the build configuration (or perform substitution in an adjacent nuspec):Support for specifying multiple properties should be added to
NuGetPackSettings
andNuGetPacker.GetArguments()
. The generated argument should separate multiple properties with a semicolon per the NuGet command line reference.The text was updated successfully, but these errors were encountered: