Search code examples
azurepowershellvb6azure-devops-server-2019

Unable to build VB6 application in DevOps Server


My requirement is to be able to Build VB6 application through Microsoft Azure DevOps Server 2019. For this, I have installed VB6 Enterprise IDE on Microsoft Server 2019, which is working perfectly. For building, I opted to use a Powershell script, which is very simple at the moment.

$vb6 = "C:\Program Files (x86)\Microsoft Visual Studio\VB98\Vb6.exe"
$prj = "C:\proj\Project1.vbp"
$outdir = "C:\proj\out"
$out = "C:\proj\out\log.log"

New-Item -ItemType Directory -Force -Path C:\proj\out
& $vb6 /make $prj /out $out /outdir $outdir

Script itself runs regardless of what project folders I use when I run it through the Powershell window. When it is run through the DevOps, it executes with no issues reported, directory is created, but the VB6 part doesn't seem to execute. Why does this happen and what are my options to make it work?


Solution

  • In the end, I made a pipeline without this step with some others that are needed that will occur at same time every day. After the pipeline is completed, I run Windows scheduled task using this script (with build folders) and I have no issues with it. It is not a real 1/1 resolution to the issue, but it works.