version: 1.1.0.{build} install: - cmd: choco install nsis.portable -y - ps: | $url='http://download.microsoft.com/download/7/B/6/7B629E05-399A-4A92-B5BC-484C74B5124B/dotNetFx40_Client_setup.exe' $exe=(Split-Path $url -Leaf) if (Test-Path $exe) { Write-Output "Using cached $exe" } else { Write-Output "No cached $exe, downloading $url" Start-FileDownload $url } assembly_info: patch: true configuration: - Debug - Release before_build: - nuget restore after_build: - makensis /DSSH_HANDLER_VERSION=%APPVEYOR_BUILD_VERSION% /DSSH_HANDLER_CONFIGURATION=%CONFIGURATION% ssh-handler.nsi artifacts: - path: ssh-handler\bin\$(configuration) - path: ssh-handler-*.exe cache: - dotNetFx40_Client_setup.exe