EF Core command failed in Linux
See original GitHub issueDescribe the bug
When I try to run any of the Entity Framework Core UI tools I get the same error. “EF Core command failed”. The error shows the command that I tried however if I were to copy the command into the terminal in Rider the command will execute.
To Reproduce
Steps to reproduce the behavior:
- Create a new ASP.NET Core Web Application. SDK: Net 6, Web App (MVC), Individual Authentication
- Try to use the tool
Expected behavior
This is the error I received:
Command: dotnet ef database update --project /home/<username>/<path-to-project>/<projectname>.csproj --startup-project /home/<username>/<path-to-project>/<projectname>.csproj --context <projectname>.Data.ApplicationDbContext --configuration Debug 00000000000000_CreateIdentitySchema Output: Unable to retrieve project metadata. Ensure it's an SDK-style project. If you're using a custom BaseIntermediateOutputPath or MSBuildProjectExtensionsPath values, Use the --msbuildprojectextensionspath option. Error: Could not execute because the application was not found or a compatible .NET SDK is not installed. Possible reasons for this include: * You intended to execute a .NET program: The application 'msbuild' does not exist. * You intended to execute a .NET SDK command: It was not possible to find any installed .NET SDKs. Install a .NET SDK from: https://aka.ms/dotnet-download Exit code: 1
Environment (please complete the following information):
- OS: Ubuntu 20.04.4 x86_64
- .NET SDK info (installed ones and version used within Rider): (installed) 3.1, 5; (using) Net 6.0.301
- Plugin version: 1.4.0
- Rider version: 2022.1.2
Additional context
I have manually installed the .Net SDKs that I used because snap is annoying. I don’t know if that affects this bug.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Ok thank you for your hard work on this tool.
Closing this as a fix will be available in the next update.