I've created a tool that needs you to have csc.exe compiler installed and added to PATH.
I want to test that the program works correctly using Azure Pipelines, but I don't know how to install and add it to PATH variable.
How can I do that (and remove the error 'csc' is not recognized as an internal or external command, operable program or batch file.
)?
Here is my pipeline run:
And here it's code:
trigger:
- master
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_11_X64)\bin;$(PATH)"
displayName: Setting up Java
- task: NuGetCommand@2
inputs:
command: 'custom'
arguments: 'install Microsoft.Net.Compilers'
- script: install.bat
displayName: Installing JCC
Thanks a lot for your help!