version: 4.3.{build}
skip_tags: true

configuration: 
- Release
- Debug

install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex

before_build:
- ps: >-
    Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion

    nuget restore -Verbosity quiet

assembly_info:
  patch: true
  file: '**\AssemblyInfo.*'
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'

build:
  verbosity: minimal

after_build:
- ps: >-
    if($env:CONFIGURATION -eq "Release")
    {
        Get-ChildItem ./*.vsix -Recurse | Rename-Item -NewName {$_.basename + '_' + $env:APPVEYOR_BUILD_VERSION + $_.extension }
    }
    else 
    {
        Get-ChildItem ./*.vsix -Recurse | Rename-Item -NewName {$_.basename + '_' + $env:APPVEYOR_BUILD_VERSION + '_' + $env:CONFIGURATION + $_.extension }
    } 

    Vsix-PushArtifacts | Vsix-PublishToGallery
version: 4.3.{build}
skip_tags: true

image: Visual Studio 2017

configuration: 
- Release
- Debug

install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex

before_build:
- ps: >-
    Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion

    nuget restore -Verbosity quiet

assembly_info:
  patch: true
  file: '**\AssemblyInfo.*'
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'

build:
  verbosity: minimal

after_build:
- ps: >-
    if($env:CONFIGURATION -eq "Release")
    {
        Get-ChildItem ./*.vsix -Recurse | Rename-Item -NewName {$_.basename + '_' + $env:APPVEYOR_BUILD_VERSION + $_.extension }
    }
    else 
    {
        Get-ChildItem ./*.vsix -Recurse | Rename-Item -NewName {$_.basename + '_' + $env:APPVEYOR_BUILD_VERSION + '_' + $env:CONFIGURATION + $_.extension }
    } 

    Vsix-PushArtifacts | Vsix-PublishToGallery
Fix Appveyor by moving to the VS2017 image
Fix Appveyor by moving to the VS2017 image
