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

@christiannagel christiannagel commented Jan 14, 2016

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

@rowanmiller

This comment has been minimized.

Copy link
Member

@rowanmiller rowanmiller commented Jan 14, 2016

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

This comment has been minimized.

Copy link
Member

@bricelam bricelam commented Jan 14, 2016

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

This comment has been minimized.

Copy link
Member

@bricelam bricelam commented Jan 14, 2016

Work is being tracked by #3925

@christiannagel

This comment has been minimized.

Copy link
Author

@christiannagel christiannagel commented Jan 14, 2016

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

This comment has been minimized.

Copy link
Member

@rowanmiller rowanmiller commented Jan 14, 2016

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

@julielerman

This comment has been minimized.

Copy link

@julielerman julielerman commented Jan 31, 2016

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

This comment has been minimized.

Copy link
Contributor

@ErikEJ ErikEJ commented Jan 31, 2016

Not yet...

@rowanmiller

This comment has been minimized.

Copy link
Member

@rowanmiller rowanmiller commented Feb 1, 2016

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

@julielerman

This comment has been minimized.

Copy link

@julielerman julielerman commented Feb 1, 2016

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

@christiannagel

This comment has been minimized.

Copy link
Author

@christiannagel christiannagel commented Feb 21, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.