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
Describe the bug dotnet-ef tool cannot be used with dotnet (dotnet ef) when setting languages.dotnet.enable = true;.
It's pretty common to use dotnet-ef in .NET projects to run database migrations (Entity Framework); but for some reason when I try to use dotnet-ef, I get a message that it does not recognize the .NET runtime.
A typical way to install this tool is by running dotnet tool install --global dotnet-ef and export the binary path (export PATH="$PATH:$HOME/.dotnet/tools"). The installation seems to work fine but when I execute it (dotnet-ef --help, for example), I get the error shown.
AFAIK, dotnet-ef is looking for the DOTNET_ROOT env var, which for me is something like /nix/store/kfwdfmi8mw2x71sw9b3snfxr8pd61zv6-dotnet-sdk-wrapped-8.0.404.
Error Message:
You must install .NET to run this application.
App: /Users/robinsonmarquez/.dotnet/tools/dotnet-ef
Architecture: arm64
App host version: 8.0.11
.NET location: Not found
Learn more:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=arm64&rid=osx-arm64&os=osx.15&apphost_version=8.0.11
Expectation
I would expect commands dotnet-ef --help or dotnet ef --help to work correctly by providing the help text.
Just FYI: A workaround could be to nix profile install nixpkgs#dotnet-ef hoping that having it globally won't bring issues with local version of dotnet. So far has not happen to me.
Describe the bug
dotnet-ef
tool cannot be used withdotnet
(dotnet ef
) when settinglanguages.dotnet.enable = true;
.It's pretty common to use
dotnet-ef
in .NET projects to run database migrations (Entity Framework); but for some reason when I try to usedotnet-ef
, I get a message that it does not recognize the .NET runtime.A typical way to install this tool is by running
dotnet tool install --global dotnet-ef
and export the binary path (export PATH="$PATH:$HOME/.dotnet/tools"
). The installation seems to work fine but when I execute it (dotnet-ef --help
, for example), I get the error shown.AFAIK,
dotnet-ef
is looking for theDOTNET_ROOT
env var, which for me is something like/nix/store/kfwdfmi8mw2x71sw9b3snfxr8pd61zv6-dotnet-sdk-wrapped-8.0.404
.Error Message:
Expectation
I would expect commands
dotnet-ef --help
ordotnet ef --help
to work correctly by providing the help text.To reproduce
devenv.nix
devenv,yaml
devenv.lock
Version
devenv 1.3.1 (aarch64-darwin)
The text was updated successfully, but these errors were encountered: