Comments (10)
@roberto-sotar Currently there is no way of installing a specific dotnet ef
tools version using "Install" action. The plugin always installs the latest stable version globally it it isn't already installed (quite oftenly, they are backward compatible). Because of that we can't rely on specific EF Core version of your solution (global tools are installed in per-machine basis).
So you have 2 options here:
- Install EF Core Tools globally with a specific version:
dotnet tool install --global dotnet-ef --version 6.0.25
- Install EF Core Tools locally inside solution folder
dotnet tool install dotnet-ef --version 6.0.25
In case you don't have a tool manifest file run
dotnet new tool-manifest
before installing tools locally
After installation, the EF Core UI plugin will acknowledge installed tools and you'll be able to perform migrations.
Please note, sometimes Rider doesn't see tools installed right after installation. It's a known issue and is already addressed in the upcoming 2023.3 release.
from rider-efcore.
Hi @anime-shed, on which level dotnet ef tools are installed? As a local tool on the solution level or as a global tool?
from rider-efcore.
And does restarting Rider fix the issue?
from rider-efcore.
@seclerp It is installed on the Global level and local level for some projects.
And restarting Rider did not solve it.
from rider-efcore.
same issue with EF core tools, with rider 2023.2.3, .NET6, macos sonoma, plugin EntityFrameWork Core UI 232.1.0, the plugin try to install v8.0.0 from EF Core and isn't compatible with .NET6
Any news about this bug ?
from rider-efcore.
@seclerp hello!
I have a question related to local dotnet tools. I have several projects with EF Core, but with different versions. Each project has specific dotnet tools. How can I switch to local dotnet tools instead of the global version?
from rider-efcore.
Hi @my-dev-92, currently you can use one of 2 options:
- Globally installed tools (e.g.
dotnet tool install --global
, Rider installs tools this way when you do it using the "Install" action) - Locally installed in Solution (e.g.
dotnet tool install
on Solution level with Solution level tool manifest)
So Project-level tools are not supported yet. Please open a ticket on YouTrack but no ETA for now.
from rider-efcore.
Hi @my-dev-92, currently you can use one of 2 options:
- Globally installed tools (e.g.
dotnet tool install --global
, Rider installs tools this way when you do it using the "Install" action)- Locally installed in Solution (e.g.
dotnet tool install
on Solution level with Solution level tool manifest)So Project-level tools are not supported yet. Please open a ticket on YouTrack but no ETA for now.
Sorry, I meant solutions instead of projects. E.g. Solution1 has a project with EF Core 6.x.x version and Solution2 has a project with EF Core 7.x.x version. And each of the solutions has a tool manifest file dotnet-tools.json
.
I thought that locally installed in Solution was used in EF Core UI. But I see the following:
from rider-efcore.
@my-dev-92 could you please provide more details about your Solution's folder structure?
from rider-efcore.
Related Issues (20)
- Updating from 232.0.0-rc1 -> 232.1.0 HOT 1
- Connection Strings in User Secret no longer shows up in the Update Database dropdown HOT 7
- Connection: trim long connection items in Connection field
- Dependencies: Make dependencies optional
- Go to DBExplorer table for EF models, context action. HOT 1
- Save different migrations paths for different DbContexts
- Add Migrations UI picks up old binaries - requires manually cleaning projects before running HOT 9
- Common: Add "Enable diagnostic logging" checkbox to Additional options
- Common: Save all files before running operations
- Additional Arguments: Configure permanent settings HOT 6
- Plugin menu is not appearing HOT 6
- Add Migration: Ability to open newly created migration in editor
- Proposal for Enhancement of EF Core Plugin for JetBrains Rider
- Update database - does not recognize previous migrations and target migrations is set to "0" HOT 6
- Option to disable EF Core tools notification HOT 1
- Cannot use update database or add migration. HOT 19
- Rider 2023.3.4 "Quick lists" integration HOT 8
- Cannot select target migration in update database, drop down list always contains only one option: 0
- rider-efcore UI does not work with Rider 2024.1.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rider-efcore.