fluentmigrator: Cannot find extension method AddFluentMigratorCore

Hi,

I’m trying out this library for my project, but can’t get it set up.

From the samples, I try

var services = new ServiceCollection()
    .AddFluentMigratorCore();

My IntelliSense tells me this method is not available and I also couldn’t find it in this repo.

I tried this with a console app using .netcoreapp2.2, .netcoreapp2.0, and .NETFramework4.6.1. My installed nuget packages are

  • FluentMigrator (3.1.3),
  • FluentMigrator.Runner.SqlServer (3.1.3),
  • FluentMigrator.Extensions.SqlServer (3.1.3)

I feel like I’m missing something very simple. Do you know what it could be?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

In my scenario I’m only using one specific runner (MySql). So I don’t necessarily want to add all the indirect dependencies for the other database types to my project. It would be nicer to move AddFluentMigratorCore to the FluentMigrator.Runner.Core or to a new FluentMigrator.Runner.DependencyInjection package.

You need the package FluentMigrator.Runner.

EDIT: Please take a look at the quick start tutorial.

I think I am very close to tagging the 4.0.0 branch now off the master branch. Just folded in a bunch of stuff from the develop branch including Snowflake support.

Hi thank you for your patience. I had to take a break from working on FluentMigrator due to birth of my son but last weekend started working on it again.