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

Add-FluentMigration #11

Open
llotall opened this issue Nov 23, 2018 · 5 comments
Open

Add-FluentMigration #11

llotall opened this issue Nov 23, 2018 · 5 comments

Comments

@llotall
Copy link

llotall commented Nov 23, 2018

I use .NET Core 2.1
I know that this version of fluentmigrator-generator not complicated with this .net version.
But when i try add new migration, migration added but in console output i have exception:

PM> Add-FluentMigration TestMigration

Object               : Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAVSProjectItem
Document             : 
FileCount            : 1
Properties           : {LocalPath, Author, FullPath, CopyToOutputDirectory...}
FileCodeModel        : System.__ComObject
ProjectItems         : {}
Kind                 : {6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}
DTE                  : System.__ComObject
Collection           : {20181123202643_TestMigration.cs, AddCityTable.cs}
ExtenderNames        : {}
ConfigurationManager : System.__ComObject
ContainingProject    : Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject
Saved                : True
ExtenderCATID        : {610D4615-D0D5-11D2-8599-006097C68E81}
SubProject           : 
IsDirty              : False
Name                 : 20181123202643_TestMigration.cs

Cannot find an overload for "Save" and the argument count: "0".
At C:\Users\llotall\.nuget\packages\fluentmigrator.generator\1.0.4\tools\FluentMigrator.psm1:39 char:5
+     $project.Save()
+     ~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest

Please can you fix it.

@khalidabuhakmeh
Copy link
Contributor

This version probably won't be ported to use .net core, in favor of a DOTNET global tool.

@llotall
Copy link
Author

llotall commented Nov 30, 2018

This version probably won't be ported to use .net core, in favor of a DOTNET global tool.

Can you get me example?
What do you mean about .Net global tool?
Now i use Dapper and what alternative do i have for use add-migration from console package?

@Mikado68
Copy link

Hi all, I created a PR to fix that.

Cheers
Julien

@ademchenko
Copy link

Hello, I see that the fix is merged #13 , but the package is not redeployed to NuGet, can you do that, please?

@mk148a
Copy link

mk148a commented May 22, 2023

That issue still in v.1.0.5

Here its my result:
PM> Add-FluentMigration InitialMigration

Object : Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAVSProjectItem
Document :
FileCount : 1
Properties : {LocalPath, Author, FullPath, CopyToOutputDirectory...}
FileCodeModel : System.__ComObject
ProjectItems : {}
Kind : {6BB5F8EE-4483-11D3-8BCF-00C04F8EC28C}
DTE : System.__ComObject
Collection : {Installation, UpgradeTo440, UpgradeTo450, 20230522165759_InitialMigration.cs...}
ExtenderNames : {}
ConfigurationManager : System.__ComObject
ContainingProject : Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject
Saved : True
ExtenderCATID : {610D4615-D0D5-11D2-8599-006097C68E81}
SubProject :
IsDirty : False
Name : 20230522165759_InitialMigration.cs

Cannot find an overload for "Save" and the argument count: "0".
At C:\Users\Murat.nuget\packages\fluentmigrator.generator\1.0.5\tools\FluentMigrator.psm1:58 char:5

  • $project.Save()
    
  • ~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodException
    • FullyQualifiedErrorId : MethodCountCouldNotFindBest

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

5 participants