version: 0.0.{build}

image:
  - Visual Studio 2019

shallow_clone: true

init:
  - ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }

platform:
  - Any CPU

configuration:
  - Release

matrix:
  fast_finish: true

dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: "{version}"
  package_version: "{version}"
  assembly_version: "{version}"
  file_version: "{version}"
  informational_version: "{version}"

before_build:
  - ps: ./Vsxmd/Test.ps1 -Prepare

build_script:
  - dotnet publish --runtime win-x64
  - dotnet publish --runtime win-x86
  - dotnet publish --runtime linux-x64
  - dotnet publish --runtime osx-x64
  - 7z a -r Vsxmd\obj\Vsxmd.zip Vsxmd\bin\Release

test_script:
  - ps: ./Vsxmd/Test.ps1 -Run

artifacts:
  - path: 'Vsxmd\obj\Vsxmd.zip'
  - path: 'Vsxmd\**\*.nupkg'

version: 0.0.{build}

image:
  - Visual Studio 2019

shallow_clone: true

init:
  - ps: if ($env:APPVEYOR_REPO_TAG_NAME) { Update-AppveyorBuild -Version $env:APPVEYOR_REPO_TAG_NAME.Substring(1) }

platform:
  - Any CPU

configuration:
  - Release

matrix:
  fast_finish: true

dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: "{version}"
  package_version: "{version}"
  assembly_version: "{version}"
  file_version: "{version}"
  informational_version: "{version}"

before_build:
  - ps: ./Vsxmd/Test.ps1 -Prepare

build_script:
  - dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --runtime linux-x64
  - dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --runtime osx-x64
  - dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --runtime win-x64
  - dotnet publish /p:PublishSingleFile=true /p:PublishTrimmed=true --runtime win-x86
  - 7z a -r Vsxmd\obj\Vsxmd.zip Vsxmd\bin\Release

test_script:
  - ps: ./Vsxmd/Test.ps1 -Run

artifacts:
  - path: 'Vsxmd\obj\Vsxmd.zip'
  - path: 'Vsxmd\**\*.nupkg'

Configure to publish as trimmed single executable.
Configure to publish as trimmed single executable.
