A Mutable Log

A blog by Devendra Tewari


Project maintained by tewarid Hosted on GitHub Pages — Theme by mattgraham

Minimal GitLab CI config to build Visual Studio solution

stages:
  - build

variables:
  nuget: 'C:\Gitlab-Runner\nuget.exe'
  msbuild: 'C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe'
  vstest: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\TestPlatform\vstest.console.exe'

compile:
  stage: build
  script:
    -  '%nuget% restore .\code\MyApp.sln'
    -  '"%msbuild%" .\code\MyApp.sln /t:Clean,Build /p:Configuration=Debug'
    - '"%vstest%" .\code\MyApp\bin\Debug\MyApp.exe'