【发布时间】:2018-12-23 06:46:27
【问题描述】:
我想在 nuget.org 的项目页面上发布包 请告诉我,我的配置有什么问题,没有调用 nuget pack,尽管配置中有 publish_nuget:true? 或者你有 .net core 的脚本示例吗?
项目结构: //************************************************ ********************
DaDataApiClient__
DadataApiClient_
DadataApiClient.nuspec
DadataApiClient.csproj
__ //... sources
DadataApiClient.Test_
DadataApiClient.Test.csproj
//...sources
appveyor.yml
DadataApiClient.sln
...
//*********************************************************************************
现在构建已经完成,测试正在运行,然后系统尝试发送数据包而不是将 dll 打包到包中(nuget 包)。 该项目是在 .net core 2.0 下构建的
附加配置文件(appveyor.yml)
构建ci的日志文件(https://ci.appveyor.com/project/Xambey/dadataapiclient)
懒人的文字:
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
【问题讨论】:
标签: c# .net-core continuous-integration appveyor