i have been pouring over Chocolatey documentation and have not yet found an example of the use of package-parameter argument that addresses my need. Note, i am relativey new to Chocolatey.
I am attempting to create a NuGet package, using Chocolately, from within a DOS batch file. The NuGet package is getting created, however, the attempt to pass in a checksum value as a package parameter is failing. The following two line excerpt shows gathering of a checksum value (i've confirmed this works), and my calling of the Chocolatey pack command. My reading of the Chocolatey documentation suggests this should work, but it does not.
FOR /F "usebackq delims=" %%v IN (powershell -noprofile "& {(get-filehash -path "foo.zip" -Algorithm MD5).hash} "
) DO set "CHECKSUM=%%v"
cpack --package-parameters=""checksum:%CHECKSUM%""