|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <PropertyGroup> |
| 4 | + <!-- Place MSBuild properties below this comment... --> |
| 5 | + |
| 6 | + <RunOverPack Condition="'$(RunOverPack)'==''">true</RunOverPack> |
| 7 | + <OverPackIncludeReferencedProjects Condition="'$(OverPackIncludeReferencedProjects)' == ''">true</OverPackIncludeReferencedProjects> |
| 8 | + <!-- |
| 9 | + Uncomment and override any of the following properties to customize how |
| 10 | + your NuGet package is created and/or published. All of these properties |
| 11 | + may even be specified in your TFS build definition such as "/p:RunOverPack=true". |
| 12 | +
|
| 13 | + <RunOverPack Condition="'$(RunOverPack)'==''">true</RunOverPack> |
| 14 | + By default, all the tasks are disabled and you must explicitly enable |
| 15 | + them by specifing the property below. If this property is omitted, blank, |
| 16 | + or false then your NuGet package will not be created or published. |
| 17 | +
|
| 18 | + <OverPackNuGetExePath Condition="'$(OverPackNuGetExePath)' == ''"></OverPackNuGetExePath> |
| 19 | + Specifies the location for the NuGet.exe command. The default behavior is |
| 20 | + to check the following in order: |
| 21 | + 1) The latest version of 'NuGet.CommandLine' (under the 'tools' subfolder) in the solution packages folder. |
| 22 | + 2) Attempting to find 'NuGet.exe' in the system's PATH environment variable by using the SearchPath Win32 API. |
| 23 | + Usually one of these methods will always succeed, but if any of the above |
| 24 | + fail, then the user must specify the location of the NuGet.exe command |
| 25 | + with this property. |
| 26 | +
|
| 27 | + NuGet Pack Command: |
| 28 | + http://docs.nuget.org/docs/Reference/Command-Line-Reference#Pack_Command |
| 29 | +
|
| 30 | + <OverPackInputFile Condition="'$(OverPackInputFile)' == ''">$(ProjectPath)</OverPackInputFile> |
| 31 | + A convienent way to create a NuGet package from a csproj or vbproj that |
| 32 | + supports replacement tokens in the NuSpec file. This is the default |
| 33 | + behavior. |
| 34 | + http://docs.nuget.org/docs/reference/nuspec-reference#Replacement_Tokens |
| 35 | + http://docs.nuget.org/docs/Creating-Packages/Creating-and-Publishing-a-Package#From_a_project |
| 36 | +
|
| 37 | + <OverPackInputFile Condition="'$(OverPackInputFile)' == ''">$(ProjectDir)$(TargetName).nuspec</OverPackInputFile> |
| 38 | + Creates a NuGet package from a NuSpec manifest file. Note that replacement |
| 39 | + tokens are NOT supported. |
| 40 | + http://docs.nuget.org/docs/reference/nuspec-reference |
| 41 | +
|
| 42 | + <OverPackSolutionDir Condition="'$(OverPackSolutionDir)' == ''">$(SolutionDir)</OverPackSolutionDir> |
| 43 | + <OverPackProjectPath Condition="'$(OverPackProjectPath)' == ''">$(ProjectPath)</OverPackProjectPath> |
| 44 | + The above properties should not be overridden unless you REALLY have a |
| 45 | + good reason to do so. Also, these properties most definitly should NOT |
| 46 | + be specified in a TFS build definition because they would apply to all |
| 47 | + projects in a solution file. |
| 48 | +
|
| 49 | + <OverPackOutputDirectory Condition="'$(OverPackOutputDirectory)' == ''">$(TargetDir)</OverPackOutputDirectory> |
| 50 | + Specifies the directory where to place the newly created NuGet package |
| 51 | + file. The default specifies the build output directory. |
| 52 | +
|
| 53 | + <OverPackBasePath Condition="'$(OverPackBasePath)' == ''">$(TargetDir)</OverPackBasePath> |
| 54 | + The base path of the files defined in the nuspec file. If not specified, |
| 55 | + uses the build output directory. For any files to be properly included |
| 56 | + in the NuGet package, make sure to set the 'Copy to Output Directory' |
| 57 | + property to anything other than 'Do not copy'. |
| 58 | +
|
| 59 | + <OverPackVersion Condition="'$(OverPackVersion)' == ''"></OverPackVersion> |
| 60 | + Overrides the version number for the NuGet package. If not specified, |
| 61 | + uses the version from the project or nuspec file. |
| 62 | +
|
| 63 | + <OverPackExclude Condition="'$(OverPackExclude)' == ''"></OverPackExclude> |
| 64 | + Specifies one or more wildcard patterns to exclude when creating the |
| 65 | + NuGet package. Separate multiple entries with a semicolon ';'. |
| 66 | +
|
| 67 | + <OverPackSymbols Condition="'$(OverPackSymbols)' == ''">false</OverPackSymbols> |
| 68 | + Determines if a NuGet package containing sources and symbols should be |
| 69 | + created. When specified with a nuspec, creates a regular NuGet package |
| 70 | + file and the corresponding symbols package. |
| 71 | +
|
| 72 | + <OverPackTool Condition="'$(OverPackTool)' == ''">false</OverPackTool> |
| 73 | + Determines if the output files of the project should be in the tool folder. |
| 74 | +
|
| 75 | + <OverPackNoDefaultExcludes Condition="'$(OverPackNoDefaultExcludes)' == ''">false</OverPackNoDefaultExcludes> |
| 76 | + Prevent default exclusion of NuGet package files and files and folders |
| 77 | + starting with a dot e.g. .svn. |
| 78 | +
|
| 79 | + <OverPackNoPackageAnalysis Condition="'$(OverPackNoPackageAnalysis)' == ''">false</OverPackNoPackageAnalysis> |
| 80 | + Specifies if the command should not run package analysis after building |
| 81 | + the NuGet package. |
| 82 | +
|
| 83 | + <OverPackIncludeReferencedProjects Condition="'$(OverPackIncludeReferencedProjects)' == ''">false</OverPackIncludeReferencedProjects> |
| 84 | + Include referenced projects either as dependencies or as part of the package. |
| 85 | + If a referenced project has a corresponding nuspec file that has the same |
| 86 | + name as the project, then that referenced project is added as a dependency. |
| 87 | + Otherwise, the referenced project is added as part of the NuGet package. |
| 88 | +
|
| 89 | + <OverPackExcludeEmptyDirectories Condition="'$(OverPackExcludeEmptyDirectories)' == ''">false</OverPackExcludeEmptyDirectories> |
| 90 | + Prevents inclusion of empty directories when building the NuGet package. |
| 91 | +
|
| 92 | + <OverPackVerbosity Condition="'$(OverPackVerbosity)' == ''">detailed</OverPackVerbosity> |
| 93 | + Specifies the amount of details to show from the command output: normal, |
| 94 | + quiet, detailed. This property is used for both the 'pack' and 'push' |
| 95 | + NuGet commands. |
| 96 | +
|
| 97 | + <OverPackMinClientVersion Condition="'$(OverPackMinClientVersion)' == ''"></OverPackMinClientVersion> |
| 98 | + Specifies the minClientVersion attribute for the created package. This |
| 99 | + value will override the value of the existing minClientVersion attribute |
| 100 | + (if any) in the .nuspec file. |
| 101 | +
|
| 102 | + <OverPackExtraArguments Condition="'$(OverPackExtraArguments)' == ''"></OverPackExtraArguments> |
| 103 | + Specifies any additional arguments to pass to NuGet when invoking the 'pack' command. |
| 104 | +
|
| 105 | + NuGet Push Command: |
| 106 | + http://docs.nuget.org/docs/Reference/Command-Line-Reference#Push_Command |
| 107 | +
|
| 108 | + <OverPackPublishToFolder Condition="'$(OverPackPublishToFolder)' == ''"></OverPackPublishToFolder> |
| 109 | + Specifies the UNC/folder location where to publish the package to. If not |
| 110 | + specified, the default uses $(TF_BUILD_BINARIESDIRECTORY) for TFS builds. |
| 111 | + http://msdn.microsoft.com/en-us/library/hh850448.aspx |
| 112 | +
|
| 113 | + <OverPackPublishToHttp Condition="'$(OverPackPublishToHttp)' == ''"></OverPackPublishToHttp> |
| 114 | + Specifies the server URL where to publish the package to. If not specified, |
| 115 | + nuget.org is used unless DefaultPushSource config value is set in the |
| 116 | + NuGet config file. |
| 117 | +
|
| 118 | + <OverPackPublishApiKey Condition="'$(OverPackPublishApiKey)' == ''"></OverPackPublishApiKey> |
| 119 | + Specifies the API key for the publishing server. |
| 120 | +
|
| 121 | + <OverPackPublishConfigFile Condition="'$(OverPackPublishConfigFile)' == ''"></OverPackPublishConfigFile> |
| 122 | + Specifies the NuGet configuation file. If not specified, %AppData%\NuGet\NuGet.config |
| 123 | + is used as the configuration file. |
| 124 | +
|
| 125 | + <OverPackPublishArguments Condition="'$(OverPackPublishArguments)' == ''"></OverPackPublishArguments> |
| 126 | + Specifies any additional arguments to pass to NuGet when invoking the 'push' command. |
| 127 | +
|
| 128 | + --> |
| 129 | + </PropertyGroup> |
| 130 | +</Project> |
0 commit comments