I have quite simple nuget package creating logic with cake.build:
var nugetSettings = new NuGetPackSettings
{
OutputDirectory = "%some_path%",
Verbosity = NuGetVerbosity.Detailed,
Description = "oops, description",
Version = "2.0.0"
};
context.NuGetPack("%project_path%", nugetSettings);
It generates nguet package and set expected version, but the description value is ignored. This is what I still see in ClassLibrary1.2.0.0.nupkg:
Target framework:
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
Description value is not appeared in the package metadata even if I manually add Description property to the .csproj file like:
<Description>asd</Description>

The short answer is that
NuGetPack(like nuget.exe) has two very distinct usages: One operating on a project file and one operating on a.nuspecfile and not all settings that are available in theNuGetPackSettingsare used for both usages.The documentation (and maybe a warning during runtime) should probably make this more obvious.