branches:
    only:
      - master

version: 2016.0.{build}
configuration: Release

before_build:
- ps: nuget restore Source\MailMessaging.sln

build:
  verbosity: minimal

after_build:
  - cmd: nuget pack build/MailMessaging.Plain.Contracts.nuspec -Properties Configuration=%configuration% -Version %appveyor_build_version% -NoDefaultExcludes
  - cmd: nuget pack build/MailMessaging.Plain.Net.nuspec -Properties Configuration=%configuration% -Version %appveyor_build_version% -NoDefaultExcludes

assembly_info:
  patch: true
  file: AssemblyInfo.cs
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'
  
test:
  assemblies: MailMessaging.Plain.Net.UnitTest
  
artifacts:
  - path: '**\MailMessaging.Plain.Contracts*.nupkg'
    name: MailMessaging.Plain.Contracts.nupkg
  - path: '**\MailMessaging.Plain.Net*.nupkg'
    name: MailMessaging.Plain.Net.nupkg

deploy:
  provider: NuGet
  symbol_server: https://ci.appveyor.com/nuget/jan-schubert/api/v2/package
  api_key:
    secure: EEzMZXyGYmDBGcZfcOsS1QB+8iHT760Kg/ML6l0jHL+wxqMaZYqWSztF0VlpyBCL
  skip_symbols: true
  artifact: /MailMessaging\.Plain\..*\.nupkg/
branches:
    only:
      - master

version: 2017.0.{build}
configuration: Release

before_build:
- ps: nuget restore Source\MailMessaging.sln

build:
  verbosity: minimal

after_build:
  - cmd: nuget pack build/MailMessaging.Plain.Contracts.nuspec -Properties Configuration=%configuration% -Version %appveyor_build_version% -NoDefaultExcludes
  - cmd: nuget pack build/MailMessaging.Plain.Net.nuspec -Properties Configuration=%configuration% -Version %appveyor_build_version% -NoDefaultExcludes

assembly_info:
  patch: true
  file: AssemblyInfo.cs
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'
  
test:
  assemblies: MailMessaging.Plain.Net.UnitTest
  
artifacts:
  - path: '**\MailMessaging.Plain.Contracts*.nupkg'
    name: MailMessaging.Plain.Contracts.nupkg
  - path: '**\MailMessaging.Plain.Net*.nupkg'
    name: MailMessaging.Plain.Net.nupkg

deploy:
  provider: NuGet
  symbol_server: https://ci.appveyor.com/nuget/jan-schubert/api/v2/package
  api_key:
    secure: EEzMZXyGYmDBGcZfcOsS1QB+8iHT760Kg/ML6l0jHL+wxqMaZYqWSztF0VlpyBCL
  skip_symbols: true
  artifact: /MailMessaging\.Plain\..*\.nupkg/
Correct version number to 2017.0.{build}.
Correct version number to 2017.0.{build}.
