cake-build / cake-build/cake

Feature Request: Add "Configuration" property to NuGetPackSettings to specify build configuration

Open
#1,168 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
3h 37m
Merged PRs (30d)
21

Description

Feature Request: Add `Configuration` property to `NuGetPackSettings`which would be passed to `nuget.exe` as `-Prop Configuration={NuGetPackSettings.Configuration}`

When building a NuGet package for a project NuGet will use the default configuration from the project (e.g. `SomeProject.csproj` defaults to it's `Debug` configuration–when running `nuget.exe` will expect to find the build output in `bin\Debug\`).

Currently the workaround I'm using is to specify:

```
NuGetPack(project, new NuGetPackSettings {
...
ArgumentCustomization = args => args.Append("-Prop Configuration=" + configuration)
});
```

This works fine, but having `Configuration` as a setting property would be convenient and cleaner:

```
NuGetPack(project, new NuGetPackSettings {
...
Configuration = configuration
});
```

Contributor guide

Open the contributing guide

Research direction

Locate NuGetPackSettings and the NuGetPack entry point, then trace how settings become nuget.exe arguments. Verify that a Configuration value is accepted and passed as -Prop Configuration, while preserving the existing ArgumentCustomization workaround behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.