Getting error : You intended to execute a .NET program, but dotnet-lambda does not exist

Hello community,

I am setting up CICD pipeline for my .net core lambda project, but on running dotnet lambda package --output-package createOrder.zip command I am getting below error

  • Could not execute because the specified command or file was not found.

  • You misspelled a built-in dotnet command.

  • You intended to execute a .NET program, but dotnet-lambda does not exist.

  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.*

  • What version are you on? Are you using self-managed or GitLab.com? Self managed

  • I have already added PATH variable for %USERPROFILE%.dotnet\tools

  • I have also ran command dotnet tool install -g Amazon.Lambda.Tools

Thanks for taking the time to be thorough in your request, it really helps! :blush: