You should specify .nuspec
file when adding a tag by nuget pack
cli.
You can set metadata in .nuspec
file. You can only modify it manually in .nuspec
file to modify tags. Besides, you can also modify metadata in assemblies.cs
file of your project, but it can’t modify tags.
Also you can find details about nuget pack -properties
option:
Specifies a list of properties that override values in the project
file; see Common MSBuild Project Properties for property names. The
Properties argument here is a list of token=value pairs, separated by
semicolons, where each occurrence of $token$
in the .nuspec
file will
be replaced with the given value. Values can be strings in quotation
marks. Note that for the "Configuration" property, the default is
"Debug". To change to a Release configuration, use -Properties
Configuration=Release
.
So tags are not included in Properties argument, you can only modify $token$
in .nuspec
file with -Properties
arguments.
$tags$
– grmbl