I have an .exe file of my console app in a repository and I want to run it on a pipeline. I tried using a cmd task but it kept failing, saying it's not finding my .exe file.
Basically I tried the steps on here
when I followed the steps on the link above exactly, the log shows this
/home/vsts/work/_temp/7b7bec7c-25c2-4077-bdfb-052d01fcc054.sh: line 1: ConsoleApp.exe: command not found
##[error]Bash exited with code '127'.
then I tried changing the script, from simply
ConsoleApp.exe
into
$(Build.SourcesDirectory)/ConsoleApp.exe
then it threw me another error
/home/vsts/work/_temp/da794edd-60c7-43c5-bd5d-eeff7fbefa46.sh: line 1: /home/vsts/work/1/s/ConsoleApp.exe: Permission denied
##[error]Bash exited with code '126'.
and now I'm starting to run out of ideas on why it's happening, so if anyone could help me out that would be great.