sed -i '0,/Default[^,]*/s//$(ConnectionStrings)"/g' samples/EShopSample/aspnet-core/src/EShopSample.Web/appsettings.json
echo commands executed
- task:CmdLine@2
inputs:
script:|
echo commands
sed -i '0,/Default[^,]*/s//$(ConnectionStrings)"/g' samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator/appsettings.json
echo commands executed
- task:DotNetCoreCLI@2
displayName:'restore'
inputs:
command:'restore'
feedsToUse:'select'
- task:DotNetCoreCLI@2
displayName:'restore'
inputs:
command:'restore'
feedsToUse:'select'
- task:DotNetCoreCLI@2
displayName:'build'
inputs:
command:'build'
- task:DotNetCoreCLI@2
displayName:'build'
inputs:
command:'build'
- task:CmdLine@2
displayName:'publish'
inputs:
script:|
dotnet publish
- task:CmdLine@2
displayName:'publish'
inputs:
script:|
dotnet publish
- task:CmdLine@2
displayName:'drop database'
inputs:
script:|
dotnet ef database drop --project samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj -s samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj -f
- task:CmdLine@2
displayName:'update database'
inputs:
script:|
dotnet ef database update --project samples/EShopSample/aspnet-core/src/EShopSample.EntityFrameworkCore.DbMigrations/EShopSample.EntityFrameworkCore.DbMigrations.csproj -s samples/EShopSample/aspnet-core/src/EShopSample.Web/EShopSample.Web.csproj
- task:CmdLine@2
inputs:
script:|
cd samples/EShopSample/aspnet-core/src/EShopSample.DbMigrator