You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Jinseoung Lee, cwe1ss, Efe Burak, Thuy Dao, Paul DeVito, 楊竑昕, Illia Ratkevych, ThirstyJarek, Arthur L., Giorgi Chkhikvadze and 11 more
@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.
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.
Activity
ajcvickers commentedon Jun 2, 2017
@danroth27 @DamianEdwards @Eilon @divega It would be great to have
launchSettings.jsonbe 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.ajcvickers commentedon Jun 5, 2017
@divega to file an issue on CLI side.
divega commentedon Jul 11, 2018
We need a reusable component that dotnet run, VS and us can use.
divega commentedon Jul 25, 2018
Filed https://github.com/dotnet/cli/issues/9730.
44 remaining items
Bykiev commentedon Jul 22, 2022
Hi, is any estimates when it'll be fixed?
enrij commentedon Mar 20, 2024
Just found out that this tip allows firing any
dotnet efcommand with-- --launch-profile YourProfileand it works perfectly. I just tested it out withdotnet ef migrations script.Hope it helps