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

Migration add-migrations.ps1 is broken when run donet ef migrations #460

Closed
danielmeza opened this issue Jan 15, 2020 · 1 comment
Closed

Comments

@danielmeza
Copy link
Contributor

This happen to me when I run the powershell script even before I restore the package and before I double check that the Microsoft.EntityFrameworkCore.Tools package was installed in the Admin project.

To solve this had to add the followin two lines in the add-migrations.ps1 file.

$env:Path += "%USERPROFILE%\.dotnet\tools";
dotnet tool update --global dotnet-ef --version 3.1.0 

With it make is update the dotnet ef tools and ensure to install it in a global folder.

danielmeza added a commit to danielmeza/IdentityServer4.Admin that referenced this issue Jan 15, 2020
* Add command to update ef tools globally.
* Create variable to minimize the effort when the user run the script. 
* Initialize hasmaps to reduce code
* Create hasmap to map context with destination path
* Globalize project name
skoruba pushed a commit that referenced this issue Jan 20, 2020
* Add command to update ef tools globally.
* Create variable to minimize the effort when the user run the script. 
* Initialize hasmaps to reduce code
* Create hasmap to map context with destination path
* Globalize project name
@danielmeza
Copy link
Contributor Author

Fixed by #461

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

1 participant