cake-contrib / Cake.DotNetCoreEf

https://cakebuild.net/extensions/cake-dotnetcoreef/
MIT License
5 stars 12 forks source link

Is there a way to run migrations script without building the project? #39

Closed x2764tech closed 5 years ago

x2764tech commented 5 years ago

Want to run dotnet ef migrations script --no-build ...., but can't find option to do this

x2764tech commented 5 years ago

DotNetCorePublishSettings has a NoBuild, and this project should mirror that.

mvput commented 5 years ago

I've released this in the 0.9.0. Thanks for your contribution @x2764tech !

chimepalden commented 3 years ago

@mvput So, after no-build migration, before updating database, do we have to run add migration sameMigrationName with no-build option again?

mvput commented 3 years ago

@chimepalden if you add a migration with EF Core with the --no-build`` option and then update the database you can add the--no-build` option again. There is no need for a run add migration again.

chimepalden commented 3 years ago

@mvput i just ran update database command but build failed.

chimepalden commented 3 years ago

how do i build after no-build migration?

mvput commented 3 years ago

@chimepalden what are you trying to achieve? And can you share some code and error stack?

chimepalden commented 3 years ago

Screenshot (745) @mvput i got this.

chimepalden commented 3 years ago

@mvput just wanted to create a table in database.

mvput commented 3 years ago

@chimepalden this looks like an build error of the project. Build the project to see what's going on. Btw this repo is an extension for using ef core commands with cake. For using dotnet core cli please go the original repo.

chimepalden commented 3 years ago

@mvput ok thanks for help