Skip to content

Misleading default configuration value #12604

Closed

Description

@dannarsavage

This page indicates that the default configuration value is "Debug", but I removed the Debug configuration from my solution & all projects and my build server happily built using my new "Development" configuration after a simple "dotnet build [solution]". Perhaps that note should instead indicate that dotnet will go with the first config it finds in the solution?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. Thraka commented on May 31, 2019

    @Thraka
    Contributor

    Thank you for opening this issue. I'll add it to the backlog. This does sound like the "default" in this case means when the setting is omitted from the command line, and there is no config defined in the project.

    @KathleenDollard Please confirm.

    Thanks again!

  2. added and removed
    ⌚ Not Triaged
    on May 31, 2019
  3. added this to the Backlog milestone on May 31, 2019
  4. KathleenDollard commented on Jun 3, 2019

    @KathleenDollard
    Contributor
  5. added
    waiting-on-feedback
    on Jun 3, 2019
  6. mairaw commented on Jul 26, 2019

    @mairaw
    Contributor

    @livarcocc @dsplaisted can you comment on this issue?

  7. dsplaisted commented on Jul 26, 2019

    @dsplaisted
    Member

    The default configuration is defined by MSBuild and the .NET Core SDK. If not specified elsewhere it will be Debug. However, it is possible to override the default in custom MSBuild logic for your project. So if you don't specify the configuration on the command line it will use whatever the default configuration for your project is, which will typically, but not always, be Debug.

  8. Thraka commented on Jul 26, 2019

    @Thraka
    Contributor

    Just to clarify, the searching for the configuration is:

    1. Check command line for parameters
    2. Check the project for a configuration value, choose the first.
    3. Use the MSBuild/Core SDK default, which is Debug
  9. self-assigned this
    on Oct 7, 2019
  10. removed
    waiting-on-feedback
    on Oct 7, 2019
  11. modified the milestones: Backlog, October 2019 on Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions