I'm trying to generate nuget packages by command, but it gives me an error. I put you in situation.
I have generated the .nuspec file with the command
nuget spec
The file structure is as follows
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
<iconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2019</copyright>
<tags>Tag1 Tag2</tags>
</metadata>
</package>
Now I would like to generate it based on the dynamic tags ($id$), for that, I use the following command.
nuget pack "nompre.proyecto.csproj" -Version 6.6.6 -Properties Configuration=release;Id="MiPaquete.Sample";Description="MyDescription";Authors="MeMeMeMeToo";Summary="MySummary";ReleaseNotes="MyChanges";Owners="MyCompany";
It throws me the following errors
Authors is required .
Description is required .
The truth is that I do not understand why, since the labels are there and the command, from what I have seen, it is separated by semicolons.
The idea is to be able to make the entire .nuspec dynamic, with labels, images for each nuget, etc.