Trying to create and publish a NuGet package from a project (*.csproj) via NuGet.exe and I got the following warning:
The replacement token 'description' has no value.
How can I get rid of this warning?
This warning appear when the Visual Studio project was not built before packaging using NuGet. Just rebuild your project and repack.
nuget pack your-project.csproj
.Then it should work.
Note this behavior was filed as an issue in CodePlex.
Note: as per Boris Callens' response below, can use the -Build
to have NuGet do the build
Ensure you defined the assembly description in your Properties\AssemblyInfo.cs file for the project you are targeting when calling nuget.exe pack *.csproj.
[assembly: AssemblyDescription("Here goes the NuSpec $description$ token.")]
Also check the NuGet docs on tokenized NuGet manifests for more info: http://docs.nuget.org/docs/reference/nuspec-reference#Replacement_Tokens