Nuget.exe pack WARNING: Description was not specified. Using 'Description' -


i'm trying create nuget package via command line , can't seem figure out how set description, author, title, summary, releasenotes, , owner. package creates gives me warning:

warning: description not specified. using 'description'. warning: author not specified. using 'user'. 

here's command:

nuget.exe pack "<myprojectpath>.csproj" -outputdirectory "<myoutputdirectory>" -properties configuration=release;description="mydescription";authors="mememe...metoo";title="mytitle";summary="mysummary";releasenotes="mychanges;"owners="mycompany" 

i'm not sure if matters i'm using nuget.exe came "credentialproviderbundle.zip" file downloaded visual studio team services.

there's nothing wrong command.

it not possible question asks without prerequisites.

  1. there must *.nuspec file in same directory *.csproj same exact name.
  2. the *.nuspec file must contain elements trying set via command line
  3. all elements populated via command line must contain token in form "$tokenname$"
  4. in command line must not specify *.nuspec element name rather value contained between dollar signs (aka token name)
  5. the token name may same element name properties listed in question exception of description element. description element's token must not named "description". "desc" works fine here. (this why said nothing wrong command listed in question)

here's example of *.nuspec file specific example:

<?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">     <metadata>         <id>$id$</id>         <version>$version$</version>         <title>$title$</title>         <authors>$authors$</authors>         <owners>$owners$</owners>         <requirelicenseacceptance>false</requirelicenseacceptance>         <description>$desc$</description>         <summary>$summary$</summary>         <releasenotes>$releasenotes$</releasenotes>         <copyright>copyright ©  2016</copyright>         <dependencies />     </metadata> </package> 

the id , version don't need have tokens because automatically overwritten either way, doesn't hurt.

here's command line should use *.nuspec file specified above:

nuget.exe pack "<myprojectpath>.csproj" -outputdirectory "<myoutputdirectory>" -properties configuration=release;desc="mydescription";authors="mememe...metoo";title="mytitle";summary="mysummary";releasenotes="mychanges;"owners="mycompany" 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -