Unable to Publish Module to powershell gallery

%3CLINGO-SUB%20id%3D%22lingo-sub-1622755%22%20slang%3D%22en-US%22%3EUnable%20to%20Publish%20Module%20to%20powershell%20gallery%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1622755%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Folks%2C%3CBR%20%2F%3EAm%20currently%20facing%20issue%20with%20publishing%20the%20module%20to%20Powershell%20Gallery%2C%3C%2FP%3E%3CP%3EMy%20Commands%2C%3C%2FP%3E%3CP%3ETest-ModuleManifest%20-Path%20%22.%5CSamModuleTest1.psd1%22%3CBR%20%2F%3EPublish-Module%20-Path%20%22.%5CSamModuleTest1%22%20-NuGetApiKey%20***%20-Verbose%20-Repository%20%22PSGallery%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22SainathChary2020_0-1598876553698.png%22%20style%3D%22width%3A%20716px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215551i99F98293CDB562D0%2Fimage-dimensions%2F716x237%3Fv%3D1.0%22%20width%3D%22716%22%20height%3D%22237%22%20title%3D%22SainathChary2020_0-1598876553698.png%22%20alt%3D%22SainathChary2020_0-1598876553698.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAm%20able%20to%20generate%20the%20package%20in%20local%20repository.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1622755%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1623046%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20Publish%20Module%20to%20powershell%20gallery%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1623046%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20install%20the%20latest%20NuGet%20binaries%20as%20the%20error%20message%20suggests%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Visitor

Hi Folks,
Am currently facing issue with publishing the module to Powershell Gallery,

My Commands,

Test-ModuleManifest -Path ".\SamModuleTest1.psd1"
Publish-Module -Path ".\SamModuleTest1" -NuGetApiKey *** -Verbose -Repository "PSGallery"

 

SainathChary2020_0-1598876553698.png

 

Am able to generate the package in local repository. 

1 Reply

Did you install the latest NuGet binaries as the error message suggests?