Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
153 views
in Technique[技术] by (71.8m points)

c# - The replacement token 'description' has no value

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?

question from:https://stackoverflow.com/questions/14982266/the-replacement-token-description-has-no-value

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This warning appear when the Visual Studio project was not built before packaging using NuGet. Just rebuild your project and repack.

  1. Go to Build then Rebuild.
  2. From command prompt: 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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...