Skip to content

Tools: Honor launchSettings.json #8695

Open

Description

@bricelam

The CLI added support for launchSettings.json in dotnet/cli#6617. Unfortunately, it only works with dotnet run and thus doesn't light up in our tooling.

If we want to honor launchSettings.json (particularly environment variables and command line arguments) in our tools, we'll have to look for and parse the file ourselves.

If we do this, we should also remove our existing logic that defaults the ASPNETCORE_ENVIRONMENT variable to Development.

Activity

  1. ajcvickers commented on Jun 2, 2017

    @ajcvickers
    Contributor

    @danroth27 @DamianEdwards @Eilon @divega It would be great to have launchSettings.json be something that would work when using EF tooling. However, we're not going to try to hack this in by trying to parse the file in our own code. Do you guys see this as something we should push the CLI team to support? If so, we'll file an issue for it in dotnet/cli.

  2. added this to the Backlog milestone on Jun 5, 2017
  3. ajcvickers commented on Jun 5, 2017

    @ajcvickers
    Contributor

    @divega to file an issue on CLI side.

  4. removed this from the Backlog milestone on Apr 24, 2018
  5. self-assigned this
    on Jul 11, 2018
  6. added this to the milestone on Jul 11, 2018
  7. divega commented on Jul 11, 2018

    @divega
    Contributor

    We need a reusable component that dotnet run, VS and us can use.

  8. 44 remaining items

  9. Bykiev commented on Jul 22, 2022

    @Bykiev

    Hi, is any estimates when it'll be fixed?

  10. removed their assignment
    on Jul 8, 2023
  11. enrij commented on Mar 20, 2024

    @enrij

    Just found out that this tip allows firing any dotnet ef command with -- --launch-profile YourProfile and it works perfectly. I just tested it out with dotnet ef migrations script.

    Hope it helps

  12. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions