Migrations with dotnet tools #4309

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

Comments

Projects
None yet
5 participants
@christiannagel

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.

Show comment
Hide comment
@rowanmiller

rowanmiller Jan 14, 2016

Member

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.

Member

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.

Show comment
Hide comment
@bricelam

bricelam Jan 14, 2016

Member

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-*"
  }
}
Member

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.

Show comment
Hide comment
@bricelam

bricelam Jan 14, 2016

Member

Work is being tracked by #3925

Member

bricelam commented Jan 14, 2016

Work is being tracked by #3925

@christiannagel

This comment has been minimized.

Show comment
Hide comment
@christiannagel

christiannagel 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 👍

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.

Show comment
Hide comment
@rowanmiller

rowanmiller Jan 14, 2016

Member

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

Member

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.

Show comment
Hide comment
@julielerman

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

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.

Show comment
Hide comment
@ErikEJ

ErikEJ Jan 31, 2016

Contributor

Not yet...

Contributor

ErikEJ commented Jan 31, 2016

Not yet...

@rowanmiller

This comment has been minimized.

Show comment
Hide comment
@rowanmiller

rowanmiller Feb 1, 2016

Member

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

Member

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.

Show comment
Hide comment
@julielerman

julielerman Feb 1, 2016

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

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

@christiannagel

This comment has been minimized.

Show comment
Hide comment
@christiannagel

christiannagel 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

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