question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find extension method AddFluentMigratorCore

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
rhegnercommented, Mar 19, 2020

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.

4reactions
fubar-codercommented, Jan 31, 2019

You need the package FluentMigrator.Runner.

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Guide from 2.0 to 3.0
This isn't needed anymore, because all processor factory providers must be added dynamically using the ConfigureRunner extension method. You can find an example ......
Read more >
c# - Extension Methods not Recognized
In my case it said the reason the method was not recognized had nothing to do with extension methods, but an error in...
Read more >
Extension Methods - C# Programming Guide
Extension methods in C# enable you to add methods to existing types without creating a new derived type, recompiling, or otherwise modifying ...
Read more >
FluentMigrator in ASP.Net Core
Using the SQL query, first, we will check if the database exists in the sys.databases table. If it does not exist we will...
Read more >
Extension methods
Extension methods add functionality to existing libraries. ... For more information about static types and dynamic , see The Dart type system.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found