Description
I'm running into more and more packages where the version number in the .nuspec file does not match the version number in the .psd1 of the module. This is bad.
A small handful of examples:
This causes problems with software like ProGet as I guess ProGet can only depend upon the .nuspec version number as it applies to the entire NuGet package.
I don't know whether ProGet plays a specific part in this problem but I don't believe that ProGet reading the package version number from the .nuspec file is unreasonable.
As a result, when a package is installed from a ProGet repository onto a Windows machine, it ends up in the wrong location, e.g.
C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\12.2.0
... where the .psd1 actually says 12.2.0.0
. Then PowerShell refuses to load the module because it believes the manifest is incorrect.
I feel that it is a bug that PowerShellGallery allows packages to be uploaded with obvious version mismatches in the metadata like this.
It should either prevent the upload with a very clear warning or update the .nuspec file to match the version as specified in the .psd1 file.