2016-08-19 55 views
1

我在Appveyor上创建了一个C#解决方案,最终的工件是一个nuget包。在Appveyor feed上发布nuget包

我想要在定制Appveyor包饲料中发布此类包。

我试图修改appveyor.yml文件是这样的:

version: 1.0.{build} 
branches: 
    only: 
    - develop 
image: Visual Studio 2015 
build: 
    verbosity: minimal 
deploy: 
    - provider: NuGet 
    symbol_server: https://ci.appveyor.com/nuget/dataparsers-xxxxxxxxxx/api/v2/package 
    api_key: 
     secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    artifact: /.*\.symbols\.nupkg/ 

,但它不工作。 yml文件没有正确解析(第8行错误:“部署”基本上)

此外,我在哪里指定包名?

https://www.appveyor.com/docs/nuget/#configuring-appveyor-nuget-feeds-for-your-builds

编辑

实际的错误:

Error parsing appveyor.yml: (Line: 8, Col: 2, Idx: 106) - (Line: 8, Col: 2, Idx: 106): While parsing a block mapping, did not find expected key.

+0

这是正确的YAML,你碰巧有原始的制表符字符? – Anthon

+0

是的,我有一个标签。现在很好。但是,我得到了一个“没有包被推”。如果我有一个nuget包上传我应该在“artifact”中使用的字符串 –

+0

我看到了您的其他帖子,对不起,不知道答案。 – Anthon

回答

1

这是正确的YAML,所以最可能的问题是存在,使源标签字符缩进看起来不错,但会混淆解析器使用的(缩进)字符数,因为它不知道如何展开一个标签(4位,8位,等等)