Documentation on nuspec token replacements

Jun 9, 2011 at 2:02 PM

Is there any documentation that outlines every $id$ $version$ and etc token replacement for the nuspec file?

Coordinator
Jun 29, 2011 at 11:43 PM

I logged a bug against our docs to document this. http://nugetdocs.codeplex.com/workitem/28

From the code, we support:

manifest.Metadata.Id = "$id$";
manifest.Metadata.Version = "$version$";
manifest.Metadata.Description = "$description$";
manifest.Metadata.Authors = "$author$";

Coordinator
Jun 29, 2011 at 11:46 PM
Edited Jun 30, 2011 at 5:15 AM

FYI, more info:

  • ID: The Assembly Name (typically an assembly named Foo.dll will have an AssemblyName of "Foo")
  • Version: AssemblyName.Version (specified in the AssemblyVersionAttribute)
  • Description AssemblyDescriptionAttribute
  • Author: AssemblyCompanyAttribute

Coordinator
Jun 30, 2011 at 5:34 AM

I just posted updates to our docs with this information. See http://docs.nuget.org/docs/reference/nuspec-reference.

I also posted information in the section on creating packages using a project file: http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package#From_a_project

Make sure to hit CTRL + F5 to see the changes if you don’t see them.