Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Publish-PSResource: Unexpectd error packing into .nupkg #760

Open
mighty-services opened this issue Jan 2, 2023 · 0 comments
Open

Publish-PSResource: Unexpectd error packing into .nupkg #760

mighty-services opened this issue Jan 2, 2023 · 0 comments

Comments

@mighty-services
Copy link

Describe the bug

I just started using BaGet running it as a Docker instance on on Ubuntu 22.04 Server. Its up and running without issues and I could register it on my powershell terminal with
Register-PSResourceRepository -Name 'BaGet' -Uri 'http://172.16.2.120:5555/v3/index.json' -Trusted

Of course I did a Install-Module -Name PowerShellGet -AllowPrerelease -Force beforehand.

But stil I get an error when I try to publish a module with this command:
Publish-PSResource -Path 'path\to\my\module' -Repository BaGet -ApiKey 123456789

The error is:
Publish-PSResource: Unexpectd error packing into .nupkg: 'The required element 'version' is missing from the manifest.'.

I am using the latest Powershell version 7.3 and have the dotnet 7.0 sdk version installed and it ocurs in visual studio code and windows-terminal (with admin priviledges)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant