Code Monkey home page Code Monkey logo

Comments (10)

seclerp avatar seclerp commented on August 25, 2024 1

@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:

  1. Install EF Core Tools globally with a specific version: dotnet tool install --global dotnet-ef --version 6.0.25
  2. 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.

seclerp avatar seclerp commented on August 25, 2024

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.

seclerp avatar seclerp commented on August 25, 2024

And does restarting Rider fix the issue?

from rider-efcore.

anime-shed avatar anime-shed commented on August 25, 2024

@seclerp It is installed on the Global level and local level for some projects.

And restarting Rider did not solve it.

from rider-efcore.

roberto-sotar avatar roberto-sotar commented on August 25, 2024

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
Screenshot 2023-11-17 at 11 50 29
Any news about this bug ?

from rider-efcore.

my-dev-92 avatar my-dev-92 commented on August 25, 2024

@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.

seclerp avatar seclerp commented on August 25, 2024

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.

my-dev-92 avatar my-dev-92 commented on August 25, 2024

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:
image

from rider-efcore.

seclerp avatar seclerp commented on August 25, 2024

@my-dev-92 could you please provide more details about your Solution's folder structure?

from rider-efcore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.