Cannot find extension method AddFluentMigratorCore
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:13 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 theFluentMigrator.Runner.Core
or to a newFluentMigrator.Runner.DependencyInjection
package.You need the package
FluentMigrator.Runner
.EDIT: Please take a look at the quick start tutorial.