My project was created via
dotnet new webapi --name=ProjectName. I've setup a build definition in VSTS. The Deployment to Azure runs fine, but I can't figure out how to run my migrations, i.e.,
dotnet ef database update
I've reviewed several of the other Stack Overflow questions. Though helpful, none of them provided a current solution. References:
The closest I've come to being successful is adding tasks like so:
This almost works, but for some reason ef still targets development.
Any recent solutions?
ASPNETCORE_ENVIRONMENT variable to build/release definition and specify