0

I am new to the Azure Devops. Your help is very appreciated!! thanks!
I am trying to add EF migration into my project build/release pipeline. I got error on task : build EF Migration by using Command line:

migrations script -i -p TestDBDDeploy -o $(Build.ArtifactStagingDirectory)/Migrations/migration.sql

error showed:

Starting: Build EF Migration
==============================================================================
Task         : Command line
Description  : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version      : 2.201.1
Author       : Microsoft Corporation
Help         : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/ef141c6d-a3c5-4563-aac6-3418165fd854.sh
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '6.0.9') was successfully installed.
/home/vsts/work/_temp/ef141c6d-a3c5-4563-aac6-3418165fd854.sh: line 2: migrations: command not found
##[error]Bash exited with code '127'.
Pranav Singh
  • 17,079
  • 30
  • 77
  • 104
Billede
  • 1
  • 1

0 Answers0