Skip to content

Commit

Permalink
Patch the .csproj for versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Oct 5, 2020
1 parent 2ca7f36 commit 314496f
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,38 @@
environment:
package_semantic_version: 6.0.0
assembly_semantic_version: 6.0.0

version: $(package_semantic_version).{build}

image: Visual Studio 2019

assembly_info:
version: 6.0.0.{build}

dotnet_csproj:
version_prefix: '6.0.0'
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '$(assembly_semantic_version).0'
assembly_file_version: '$(appveyor_build_version)'
assembly_informational_version: '$(package_semantic_version)-CI-{build}'
file: 'src\**\*.csproj'

configuration: Release

before_build:
- nuget restore
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
NUGET_XMLDOC_MODE: skip

skip_tags: true

nuget:
disable_publish_on_pr: true

clone_depth: 1

test: off

build:
verbosity: minimal
publish_nuget: true
publish_nuget_symbols: true
build_script:
- ps: .\build.ps1

artifacts:
- path: artifacts\packages\**\*.nupkg
name: MyGet

deploy:
- provider: NuGet
server: https://www.myget.org/F/autofac/api/v2/package
api_key:
secure: rCUEY75fXN0wxtMy6QL4jCrLdaYbxIBzIXWeN+wEu/XDpyqimzreOc5AH5jMd5ah
skip_symbols: false
symbol_server: https://www.myget.org/F/autofac/symbols/api/v2/package

0 comments on commit 314496f

Please sign in to comment.