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 are not working on latest MyGet feed #4414

Closed
damienbod opened this issue Jan 27, 2016 · 8 comments
Closed

Migrations are not working on latest MyGet feed #4414

damienbod opened this issue Jan 27, 2016 · 8 comments

Comments

@damienbod
Copy link

The following service registers are missing in the latest core version from MyGet

IMigrator
and all its child interfaces
Any ideas what's missing?

Greetings Damien

@bricelam
Copy link
Contributor

I am not able to repro this. Could you share more information about your project/workflow? (e.g. your DbContext class, Startup class, packages.config or project.json, NuGet.config, etc.)

@damienbod
Copy link
Author

Hi @bricelam
Found the missing services, need to add AddSqlite extension method from SqliteEntityFrameworkServicesBuilderExtensions. Migrations still don't work

services.AddEntityFramework().AddSqlite()
              .AddDbContext<LocalizationModelSqliteContext>(options =>
                  options.UseSqlite(sqlConnectionString));

'Microsoft.EntityFrameworkCore.Commands' does not contain a 'Program' type suitable for an entry point

 // Entry point for the application.
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseDefaultConfiguration(args)
                .UseIISPlatformHandlerUrl()
                .UseStartup<Startup>()
                .Build();

            host.Run();
        }
 "dependencies": {
        "Microsoft.EntityFrameworkCore.Commands": "1.0.0-rc2-*",
        "Microsoft.EntityFrameworkCore.Sqlite": "1.0.0-rc2-*",
        "Microsoft.EntityFrameworkCore": "1.0.0-rc2-*",
        "Microsoft.EntityFrameworkCore.Relational.Design": "1.0.0-rc2-*",
        "Microsoft.EntityFrameworkCore.Sqlite.Design": "1.0.0-rc2-*",
        "Microsoft.EntityFrameworkCore.Relational": "1.0.0-rc2-*",
        "Microsoft.Data.Sqlite": "1.0.0-rc2-*",

Greetings Damien

@bricelam
Copy link
Contributor

Ah yes, the DNX commands are gone. We're transitioning to .NET Core CLI. See #3925

@bricelam
Copy link
Contributor

I recommend using the RC1 release during the transition.

@damienbod
Copy link
Author

OK, thanks, I'll see if I can build the .NET Core CLI

Should I close this then?

Greetings Damien

@bricelam
Copy link
Contributor

To clarify, they don't exist for CLI yet either (see PR #4381) 😄

@damienbod
Copy link
Author

😄
OK

Thanks

@rowanmiller
Copy link
Contributor

Closing this out as our nightly builds are not in a state that can be used by external folks due to the transition to .NET CLI. We'll adjust Wiki to reflect this.

@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

4 participants