I have an Azure bot service solution, which is in my VSTS Git repository.
I am using Task Runner in visual studio to compile, run and debug code on my local machine.
Similarly, I want to build and compile the code in my VSTS build pipeline, like how we do build using Visual Studio template for .Net applications
I am very new to Bot service projects where it having C# Script files.
I have seen msdn documents all are mentioned Continuous Integration where it will directly link to my Git repo branch. Whenever I commit code it automatically push to My Azure Bot Service, here I want to make sure the code I commit should be compile before push to Azure Bot service. For that I want to setup a Build pipeline.
Can anyone know how to setup a build pipeline for this kind of projects which having C# Script files?
UPDATE:
In my local PC I have installed Azure Functions CLI tools, and Command Task Runner extension to visual studio. I followed the below link to enable debugging locally enter link description here
Task runner running debughost.cmd file which is in my Bot Service code, it contains the following code
@echo off
set size=0
call func settings list -data > %temp%\settings-list
call :filesize %temp%\settings-list
if NOT %size% == 0 goto show
@echo ----------------------------------------------------------------------
@echo To fetch your bot service settings run the following command:
@echo func azure functionapp fetch-app-settings [YOUR_BOT_SERVICE_NAME]
@echo func azure functionapp fetch-app-settings AthenaDevbvpn6xsu2tz6i
@echo ----------------------------------------------------------------------
goto start
:show
type %temp%\settings-list
erase %temp%\settings-list
:start
@func host start -p 3978
goto :eof
:filesize
set size=%~z1
exit /b 0
Output in task runner is
There isn't any out of box task to compile CSX file for now. Following is the workaround I can think for your scenario but which is not perfect:
Here is the powershell script I created for your reference:
And you will get this result if the compilation failed: