Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Leverage AssemblyMetadata attribute for nuspec token replacements #2851
Currently there are a fixed number of attributes that are taken from a project's AssemblyInfo to be used as replacement tokens in a nuspec file when generating a package for a project.
Additional replacement values must be specified via the nuget command line only, in order to be usable as replacement tokens.
AssemblyMetadataAttribute (see http://msdn.microsoft.com/en-us/library/system.reflection.assemblymetadataattribute(v=vs.110).aspx) could be used to automatically extend the replacement tokens in a very convenient way.
This would allow easy replacement of an $authors$ or $owners$ tokens in the .nuspec by simply having the following in a common assemblyinfo.cs:
[assembly: AssemblyMetadata("authors", "foo, bar")]