使用Nuget打包程序生成代理的VSO失败,并带有无效的属性

伊恩·比森(Ian Beeson)

我正在使用VSO打包一个简单的DLL,然后将其发布到内部提要中,不幸的是,在打包阶段的构建过程中,它报告成功,但是我没有发布任何工件

在用于发布的日志文件中,该文件指出包装中包含无效的参数(Log 2016-02-27T09:07:35.8808468Z),因此,发布者无法提交任何要发布的.nupkg文件。

我不确定我要去哪里。好像nuget.exe是错误的版本,或者它需要在我的解决方案中包含任何内容,这只是一个基本的。在此处输入图像描述csproj库带有一个用于测试过程的静态函数。

打包程序日志

2016-02-27T09:07:35.2714664Z Set workingFolder to default: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\NuGetPackager\0.1.57
2016-02-27T09:07:35.2714664Z Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\tasks\NuGetPackager\0.1.57\NuGetPackager.ps1
2016-02-27T09:07:35.4277177Z Checking pattern is specified
2016-02-27T09:07:35.4433431Z No Pattern found in solution parameter.
2016-02-27T09:07:35.4433431Z Found files: 1
2016-02-27T09:07:35.4589718Z --File: "C:\a\1\s\NugetTestLibrary\NugetTestLibrary.csproj"
2016-02-27T09:07:35.4589718Z Creating Nuget Arguments:
2016-02-27T09:07:35.4589718Z --ARGS: pack "C:\a\1\s\NugetTestLibrary\NugetTestLibrary.csproj" -OutputDirectory "C:\a\1\a" -Properties Configuration=${BuildConfiguration};Platform any cpu
2016-02-27T09:07:35.4589718Z Invoking nuget with pack "C:\a\1\s\NugetTestLibrary\NugetTestLibrary.csproj" -OutputDirectory "C:\a\1\a" -Properties Configuration=${BuildConfiguration};Platform any cpu on C:\a\1\s\NugetTestLibrary
2016-02-27T09:07:35.4747124Z C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\default\agent\worker\tools\NuGet.exe pack "C:\a\1\s\NugetTestLibrary\NugetTestLibrary.csproj" -OutputDirectory "C:\a\1\a" -Properties Configuration=${BuildConfiguration};Platform any cpu
2016-02-27T09:07:35.8808468Z pack: invalid arguments.
2016-02-27T09:07:35.8964722Z usage: nuget pack <nuspec | project> [options]
2016-02-27T09:07:35.8964722Z Creates a NuGet package based on the specified nuspec or project file.
2016-02-27T09:07:35.8964722Z      Specify the location of the nuspec or project file to create a package.
2016-02-27T09:07:35.8964722Z options:
2016-02-27T09:07:35.8964722Z  -OutputDirectory                                                          Specifies the directory for the created NuGet package file. If not specified, uses the current directory.
2016-02-27T09:07:35.8964722Z  -BasePath                                                                 The base path of the files defined in the nuspec file.
2016-02-27T09:07:35.8964722Z  -Verbose                                                                  Shows verbose output for package building.
2016-02-27T09:07:35.8964722Z  -Version                                                                  Overrides the version number from the nuspec file.
2016-02-27T09:07:35.9120964Z  -Exclude +                                                                Specifies one or more wildcard patterns to exclude when creating a package.
2016-02-27T09:07:35.9120964Z  -Symbols                                                                  Determines if a package containing sources and symbols should be created. When specified with a nuspec, creates a regular NuGet package file and the corresponding symbols package.
2016-02-27T09:07:35.9120964Z  -Tool                                                                     Determines if the output files of the project should be in the tool folder. 
2016-02-27T09:07:35.9120964Z  -Build                                                                    Determines if the project should be built before building the package.
2016-02-27T09:07:35.9120964Z  -NoDefaultExcludes                                                        Prevent default exclusion of NuGet package files and files and folders starting with a dot e.g. .svn.
2016-02-27T09:07:35.9120964Z  -NoPackageAnalysis                                                        Specify if the command should not run package analysis after building the package.
2016-02-27T09:07:35.9120964Z  -ExcludeEmptyDirectories                                                  Prevent inclusion of empty directories when building the package.
2016-02-27T09:07:35.9120964Z  -IncludeReferencedProjects                                                Include referenced projects either as dependencies or as part of the package.
2016-02-27T09:07:35.9120964Z  -Properties +                                                             Provides the ability to specify a semicolon ";" delimited list of properties when creating a package.
2016-02-27T09:07:35.9120964Z  -MinClientVersion                                                         Set the minClientVersion attribute for the created package.
2016-02-27T09:07:35.9120964Z  -MSBuildVersion                                                           Specifies the version of MSBuild to be used with this command. Supported values are 4, 12, 14. By default the MSBuild in your path is picked, otherwise it defaults to the highest installed version of MSBuild.
2016-02-27T09:07:35.9120964Z  -Help                           (?)                                       help
2016-02-27T09:07:35.9120964Z  -Verbosity                                                                Display this amount of details in the output: normal, quiet, detailed.
2016-02-27T09:07:35.9120964Z  -NonInteractive                                                           Do not prompt for user input or confirmations.
2016-02-27T09:07:35.9120964Z For more information, visit http://docs.nuget.org/docs/reference/command-line-reference
伊恩·比森(Ian Beeson)

不幸的是,我Configuration=${BuildConfiguration}错误地复制了参数(使用{}代替()),我还必须进行其他更改,而我并不需要platform参数。我还打包到了错误的文件夹中。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

使用Nuget打包程序生成代理的VSO失败,并且属性无效

来自分类Dev

对所有无效属性使用单个错误消息模板

来自分类Dev

在VSO的主机代理程序池上缓存NuGet程序包

来自分类Dev

通过SSH附加到文件失败,并带有无效参数

来自分类Dev

为什么Live Connect SignInButton失败并带有无效的redirect_uri?

来自分类Dev

类元具有无效的属性

来自分类Dev

类元具有无效的属性

来自分类Dev

如何在带有VSTS Nuget提要的Visual Studio Team Services托管生成代理上使用dotnet恢复

来自分类Dev

如何在没有参数的情况下使用带有无效方法的std :: async?

来自分类Dev

VSTS Nuget打包程序任务-如何生成包含所有相关项目dll的程序包

来自分类Dev

使用Facebook ShareLink,标签<provider>属性授权在AndroidManifest.xml中具有无效字符'{'

来自分类Dev

具有无效路径的文件上传不会失败测试

来自分类Dev

带有无效指针参数的回调产生警告

来自分类Dev

带有无效的datetime参数的语法不正确

来自分类Dev

C链表/堆栈带有无效数据成员问题

来自分类Dev

带有无效 ReactElememt 的 renderToString 的 Nashhorn ECMAException

来自分类Dev

使用2个来源(带有和不带有HTTP代理)的NuGet还原

来自分类Dev

如何使用带有DRF序列化程序的camelCase属性生成有效负载

来自分类Dev

JJWT生成的令牌具有无效签名

来自分类Dev

使用带有无限参数的函数

来自分类Dev

带有Azure SDK 2.8的VSO上的托管版本失败

来自分类Dev

Bean属性不可读或具有无效的getter方法

来自分类Dev

房间给出错误:预打包的数据库的FTS表具有无效的架构

来自分类Dev

会议室数据库预打包的数据库具有无效的架构

来自分类Dev

带有超时的urlopen在代理后面失败

来自分类Dev

生成带有无标题页的框图的 Sphinx 文档

来自分类Dev

Bean类的属性'profileManager'无效。Bean属性“ profileManager”不可写或具有无效的setter方法

来自分类Dev

VSO Build代理失败,缺少pfx

来自分类Dev

执行带有多部分参数的rest服务时,Bean属性'componentName'是不可写的,或者具有无效的setter方法错误

Related 相关文章

  1. 1

    使用Nuget打包程序生成代理的VSO失败,并且属性无效

  2. 2

    对所有无效属性使用单个错误消息模板

  3. 3

    在VSO的主机代理程序池上缓存NuGet程序包

  4. 4

    通过SSH附加到文件失败,并带有无效参数

  5. 5

    为什么Live Connect SignInButton失败并带有无效的redirect_uri?

  6. 6

    类元具有无效的属性

  7. 7

    类元具有无效的属性

  8. 8

    如何在带有VSTS Nuget提要的Visual Studio Team Services托管生成代理上使用dotnet恢复

  9. 9

    如何在没有参数的情况下使用带有无效方法的std :: async?

  10. 10

    VSTS Nuget打包程序任务-如何生成包含所有相关项目dll的程序包

  11. 11

    使用Facebook ShareLink,标签<provider>属性授权在AndroidManifest.xml中具有无效字符'{'

  12. 12

    具有无效路径的文件上传不会失败测试

  13. 13

    带有无效指针参数的回调产生警告

  14. 14

    带有无效的datetime参数的语法不正确

  15. 15

    C链表/堆栈带有无效数据成员问题

  16. 16

    带有无效 ReactElememt 的 renderToString 的 Nashhorn ECMAException

  17. 17

    使用2个来源(带有和不带有HTTP代理)的NuGet还原

  18. 18

    如何使用带有DRF序列化程序的camelCase属性生成有效负载

  19. 19

    JJWT生成的令牌具有无效签名

  20. 20

    使用带有无限参数的函数

  21. 21

    带有Azure SDK 2.8的VSO上的托管版本失败

  22. 22

    Bean属性不可读或具有无效的getter方法

  23. 23

    房间给出错误:预打包的数据库的FTS表具有无效的架构

  24. 24

    会议室数据库预打包的数据库具有无效的架构

  25. 25

    带有超时的urlopen在代理后面失败

  26. 26

    生成带有无标题页的框图的 Sphinx 文档

  27. 27

    Bean类的属性'profileManager'无效。Bean属性“ profileManager”不可写或具有无效的setter方法

  28. 28

    VSO Build代理失败,缺少pfx

  29. 29

    执行带有多部分参数的rest服务时,Bean属性'componentName'是不可写的,或者具有无效的setter方法错误

热门标签

归档