Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations with dotnet tools #4309

Closed
christiannagel opened this issue Jan 14, 2016 · 10 comments
Closed

Migrations with dotnet tools #4309

christiannagel opened this issue Jan 14, 2016 · 10 comments

Comments

@christiannagel
Copy link

How will the migrations command look like with the CLI / dotnet tools - without the commands section in project.json?

@rowanmiller
Copy link
Contributor

We are still working that out 😄. It will look very similar to what we have now, but dnx ef will be replaced by something dotnet .... @bricelam is just starting on the implementation now.

@bricelam
Copy link
Contributor

It will be mostly the same. Instead of dnx, you'll type dotnet. To align with the NuGet commands better, we'll probably bring back --startupProject. Your project.json will need to contain the following.

{
  "tools": {
    "dotnet-ef": "7.0.0-*"
  }
}

@bricelam
Copy link
Contributor

Work is being tracked by #3925

@christiannagel
Copy link
Author

That's great, so it will be dotnet ef migrations.... This way I don't need to change too much in my book. Also, thanks for the tracking link 👍

@rowanmiller
Copy link
Contributor

Closing this out now, but feel free to post additional questions (we still follow comments even after the issue is closed 😄)

@julielerman
Copy link

If using David Fowler's NDC sample https://github.com/davidfowl/dotnetcli-aspnetcore as my starting point, after adding EFCore & EFCore.commands to project.json (restore worked), I am trying to get dotnet ef into the tools section but it's not recognized yet. Is that correct ...not implemented yet or am I doing something wrong (again)? Thanks.

@ErikEJ
Copy link
Contributor

ErikEJ commented Jan 31, 2016

Not yet...

@rowanmiller
Copy link
Contributor

@julielerman still very much a work in progress, nothing working end-to-end yet

@julielerman
Copy link

understood! :) I don't envy you guys right now.

@christiannagel
Copy link
Author

I tried adding this to project.json:

"tools": {
  "dotnet-ef": "1.0.0-*"
}

Running dotnet ef results in this error:
Failed to initialize CoreCLR, HRESULT: 0x80004005
Am I doing something wrong?

Using CLI tools version 1.0.0-beta-001492, OS Platform Windows 10.0.10586

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants