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



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

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

不确定我哪里出错了。好像nuget.exe是错误的版本,还是需要在我的解决方案中包含任何内容这只是一个基本的.enter图像描述Herecsproj库,有一个静态函数来测试过程。

打包程序日志

2016-02-27T09:07:35.2714664Z Set workingFolder to default: C:LRMMSServicesMmsTaskAgentProvisionerToolsagentsdefaulttasksNuGetPackager.1.57
2016-02-27T09:07:35.2714664Z Executing the powershell script: C:LRMMSServicesMmsTaskAgentProvisionerToolsagentsdefaulttasksNuGetPackager.1.57NuGetPackager.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:a1sNugetTestLibraryNugetTestLibrary.csproj"
2016-02-27T09:07:35.4589718Z Creating Nuget Arguments:
2016-02-27T09:07:35.4589718Z --ARGS: pack "C:a1sNugetTestLibraryNugetTestLibrary.csproj" -OutputDirectory "C:a1a" -Properties Configuration=${BuildConfiguration};Platform any cpu
2016-02-27T09:07:35.4589718Z Invoking nuget with pack "C:a1sNugetTestLibraryNugetTestLibrary.csproj" -OutputDirectory "C:a1a" -Properties Configuration=${BuildConfiguration};Platform any cpu on C:a1sNugetTestLibrary
2016-02-27T09:07:35.4747124Z C:LRMMSServicesMmsTaskAgentProvisionerToolsagentsdefaultagentworkertoolsNuGet.exe pack "C:a1sNugetTestLibraryNugetTestLibrary.csproj" -OutputDirectory "C:a1a" -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

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

相关内容

最新更新