question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet core cli missing option

See original GitHub issue

From @daviatorstorm on August 16, 2017 11:35

dotnet core cli missing -e (environment) option in command line. I’m trying to make a migration and database update using ef core tools, but I cannot do it so easy as with -e option

Copied from original issue: dotnet/cli#7454

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bricelamcommented, Aug 17, 2017

How are you running the command? Can’t you just update the invocation to something like this?

SET ASPNETCORE_ENVIRONMENT=NotDevelopment
dotnet ef database update
0reactions
wli3commented, Aug 17, 2017

From @natemcmaster on August 17, 2017 16:56

@wli3 this isn’t the right project for the issue. I recommend you move this here: https://github.com/aspnet/entityframeworkcore

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot .NET tool usage issues
Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET program, but dotnet-xyz does ......
Read more >
dotnet command - .NET CLI
It provides commands for working with .NET projects. For example, dotnet build builds a project. Each command defines its own options and ...
Read more >
dotnet tool install command - .NET CLI
The dotnet tool install command installs the specified .NET tool on your machine. ... NET Core 3.1 SDK and later versions ...
Read more >
Where is the dotnet command executable located on ...
dotnet.exe is located in. C:\Program Files\dotnet>. If you are using command prompt and getting message that 'dotnet' is not recognized as ...
Read more >
Solution-level --output option no longer valid for .NET CLI ...
The dotnet CLI will error if the --output / -o option is used with a solution file. Type of breaking change. This breaking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found