.Net Core 2.0 (and ms build 15), automatic publication of the nuget package does not work

Xambey's Avatar

Xambey

15 Jul, 2018 02:52 PM

hi all
I want to publish the package on the project page on nuget.org
Tell me please, what's wrong with my config, that there isnt call to nuget pack, although there is publish_nuget in the config: true?
Or do you have script examples for .net core?

Structure of project:
//*********************************************************************
DaDataApiClient__
                               DadataApiClient_
                                                            DadataApiClient.nuspec
                                                            DadataApiClient.csproj
                           __ //... sources
                                DadataApiClient.Test_
                                                                     DadataApiClient.Test.csproj
                                                                     //...sources
                           appveyor.yml
                          DadataApiClient.sln
                          ...
//*********************************************************************************

Now the build is being done, tests are being run, and then the system tries to send packets instead of packing dll into the package.
The project is build under .net core 2.0

Сonfig file attached (appveyor.yml)

Build log file attached log.txt ( https://ci.appveyor.com/project/Xambey/dadataapiclient )

Text for the lazy:

version: 1.0.{build}
branches:
  only:
  - master
skip_branch_with_pr: true
image: Visual Studio 2017
configuration: Release
shallow_clone: true
dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: '{version}'
  package_version: '{version}'
  assembly_version: '{version}'
  file_version: '{version}'
  informational_version: '{version}'
environment:
  matrix:
  - TOKEN:
      secure: EFVcZzUo9GxQ+slLBFQc2zhFzlfA9gULAy0cXu5m6mQbyzRYLxnAw3F+Z0Qx0Jef
    SECRET:
      secure: Wz456M9HIV13gTGBd4Eh1F+EsMcmwKgqJhG44BFaXTdC0TyX3k02vAoqOSMo9Xd7
nuget:
  project_feed: true
before_build:
- ps: nuget restore
build:
  publish_nuget: true
  verbosity: minimal
artifacts:
- path: '*\*.nupkg'
deploy:
- provider: NuGet
  api_key:
    secure: MgLMMGChxGhyyhSrWuntCcR83vpMU7geCo8YfmNVFbW8FLtf/GZqQLd3ZdNoMMzY
  skip_symbols: true
  artifact: '*\*.nupkg'
  on:
    branch: master
notifications:
- provider: GitHubPullRequest
  on_build_success: true
  on_build_failure: false
  on_build_status_changed: false

  1. Support Staff 1 Posted by Ilya Finkelshte... on 16 Jul, 2018 05:25 AM

    Ilya Finkelshteyn's Avatar

    Please check PR and this discussion and specifically this answer.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • log.txt 15.9 KB
  • appveyor.yml 1.02 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac