|
| 1 | +#========================================================== |
| 2 | +# Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. |
| 3 | +# |
| 4 | +# If you have modified this script: |
| 5 | +# - if you uninstall the "Create New NuGet Package From Project After Each Build" package, this file may not be removed automatically; you may need to manually delete it. |
| 6 | +# - if you update the "Create New NuGet Package From Project After Each Build" package, this file may not be updated unless you specify it to be overwritten, either by |
| 7 | +# confirming the overwrite if prompted, or by providing the "-FileConflictAction Overwrite" parameter when installing from the command line. |
| 8 | +# If you overwrite this file then your custom changes will be lost, and you will need to manually reapply your changes. |
| 9 | +# If you are not using source control, I recommend backing up this file before updating the package so you can see what changes you had made to it. |
| 10 | +#========================================================== |
| 11 | + |
| 12 | +#------------------------------------------------ |
| 13 | +# Pack parameters used to create the .nupkg file. |
| 14 | +#------------------------------------------------ |
| 15 | + |
| 16 | +# Specify the Version Number to use for the NuGet package. If not specified, the version number of the assembly being packed will be used. |
| 17 | +# NuGet version number guidance: https://docs.nuget.org/docs/reference/versioning and the Semantic Versioning spec: http://semver.org/ |
| 18 | +# e.g. "" (use assembly's version), "1.2.3" (stable version), "1.2.3-alpha" (prerelease version). |
| 19 | +$versionNumber = "" |
| 20 | + |
| 21 | +# Specify any Release Notes for this package. |
| 22 | +# These will only be included in the package if you have a .nuspec file for the project in the same directory as the project file. |
| 23 | +$releaseNotes = "" |
| 24 | + |
| 25 | +# Specify a specific Configuration and/or Platform to only create a NuGet package when building the project with this Configuration and/or Platform. |
| 26 | +# e.g. $configuration = "Release" |
| 27 | +# $platform = "AnyCPU" |
| 28 | +$configuration = "" |
| 29 | +$platform = "" |
| 30 | + |
| 31 | +# Specify any NuGet Pack Properties to pass to MsBuild. |
| 32 | +# e.g. $packProperties = "TargetFrameworkVersion=v3.5;Optimize=true" |
| 33 | +# Do not specify the "Configuration" or "Platform" here; use the $configuration and $platform variables above. |
| 34 | +# MsBuild Properties that can be specified: http://msdn.microsoft.com/en-us/library/vstudio/bb629394.aspx |
| 35 | +$packProperties = "" |
| 36 | + |
| 37 | +# Specify any NuGet Pack options to pass to nuget.exe. |
| 38 | +# e.g. $packOptions = "-Symbols" |
| 39 | +# e.g. $packOptions = "-IncludeReferencedProjects -Symbols" |
| 40 | +# Do not specify a "-Version" (use $versionNumber above), "-OutputDirectory", or "-NonInteractive", as these are already provided. |
| 41 | +# Do not specify any "-Properties" here; instead use the $packProperties variable above. |
| 42 | +# Do not specify "-Build", as this may result in an infinite build loop. |
| 43 | +# NuGet Pack options that can be specified: http://docs.nuget.org/docs/reference/command-line-reference#Pack_Command_Options |
| 44 | +# Use "-Symbols" to also create a symbols package. When pushing your package, the symbols package will automatically be detected and pushed as well: https://www.symbolsource.org/Public/Wiki/Publishing |
| 45 | +$packOptions = "" |
| 46 | + |
| 47 | +# Specify $true if the generated .nupkg file should be renamed to include the Configuration and Platform that was used to build the project, $false if not. |
| 48 | +# e.g. If $true, MyProject.1.1.5.6.nupkg might be renamed to MyProject.1.1.5.6.Debug.AnyCPU.nupkg |
| 49 | +# e.g. If $true, MyProject.1.1.5.6-beta1.nupkg might re renamed to MyProject.1.1.5.6-beta1.Release.x86.nupkg |
| 50 | +$appendConfigurationAndPlatformToNuGetPackageFileName = $true |
| 51 | + |
| 52 | + |
| 53 | +#------------------------------------------------ |
| 54 | +# Push parameters used to upload the .nupkg file to the NuGet gallery. |
| 55 | +#------------------------------------------------ |
| 56 | + |
| 57 | +# The NuGet gallery to upload to. If not provided, the DefaultPushSource in your NuGet.config file is used (typically nuget.org). |
| 58 | +$sourceToUploadTo = "" |
| 59 | + |
| 60 | +# The API Key to use to upload the package to the gallery. If not provided and a system-level one does not exist for the specified Source, you will be prompted for it. |
| 61 | +$apiKey = "" |
| 62 | + |
| 63 | +# Specify any NuGet Push options to pass to nuget.exe. |
| 64 | +# e.g. $pushOptions = "-Timeout 120" |
| 65 | +# Do not specify the "-Source" or "-ApiKey" here; use the variables above. |
| 66 | +# NuGet Push options that can be specified: http://docs.nuget.org/docs/reference/command-line-reference#Push_Command_Options |
| 67 | +$pushOptions = "" |
0 commit comments