version: 2014.2.{build}

environment:
  nuget_api_key:
    secure: kM3Kse+ivuuE5RVoe6dPdw+aguWx56K2YeXujGa9tMPQTms3lv7QxNpTLFMALYNa
      
install:
  - cinst stylecop
  - cinst LynxToolkit

platform: Any CPU

configuration: Release

build:
  project: Source/HelixToolkit.AppVeyor.sln
  verbosity: normal

before_build:
  - cmd: UpdateVersionNumbers /Version=%APPVEYOR_BUILD_VERSION% /Dependency=HelixToolkit /ReleaseNotesFile=release-notes.txt /Directory=Source
  
deploy_script:
  - cmd: mkdir Packages
  - cmd: NuGet.exe pack Source\HelixToolkit\HelixToolkit.nuspec -OutputDirectory Packages
  - cmd: NuGet.exe pack Source\HelixToolkit.Wpf\HelixToolkit.Wpf.nuspec -OutputDirectory Packages
  - cmd: NuGet.exe pack Source\HelixToolkit.Wpf.SharpDX\HelixToolkit.Wpf.Sharpdx.nuspec -OutputDirectory Packages
  - cmd: for %%G in (Packages\*.nupkg) do NuGet.exe push %%G %nuget_api_key%
artifacts:
  - path: Output
    name: 'HelixToolkit-{version}'
    type: zip
  - path: Packages\*.nupkg

version: 2014.2.{build}

environment:
  nuget_api_key:
    secure: kM3Kse+ivuuE5RVoe6dPdw+aguWx56K2YeXujGa9tMPQTms3lv7QxNpTLFMALYNa
      
install:
  - cinst stylecop
  - cinst LynxToolkit

platform: Any CPU

configuration: Release

build:
  project: Source/HelixToolkit.AppVeyor.sln
  verbosity: normal

before_build:
  - cmd: UpdateVersionNumbers /Version=%APPVEYOR_BUILD_VERSION% /Dependency=HelixToolkit /ReleaseNotesFile=release-notes.txt /Directory=Source
  
deploy_script:
  - cmd: mkdir Packages
  - cmd: NuGet.exe pack Source\HelixToolkit\HelixToolkit.nuspec -OutputDirectory Packages
  - cmd: NuGet.exe pack Source\HelixToolkit.Wpf\HelixToolkit.Wpf.nuspec -OutputDirectory Packages
  - cmd: NuGet.exe pack Source\HelixToolkit.Wpf.SharpDX\HelixToolkit.Wpf.Sharpdx.nuspec -OutputDirectory Packages
  - cmd: for %%G in (Packages\*.nupkg) do NuGet.exe push %%G %nuget_api_key%
artifacts:
  - path: Output
    name: HelixToolkit-$(APPVEYOR_BUILD_VERSION)
    type: zip
  - path: Packages\*.nupkg

Fix artifact output file name
Fix artifact output file name
