Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Create initial version #1

Closed
plastikfan opened this issue May 3, 2020 · 3 comments
Closed

Create initial version #1

plastikfan opened this issue May 3, 2020 · 3 comments
Assignees
Labels
feature New feature or request

Comments

@plastikfan
Copy link
Collaborator

No description provided.

@plastikfan plastikfan added the feature New feature or request label May 3, 2020
@plastikfan plastikfan self-assigned this May 3, 2020
@plastikfan
Copy link
Collaborator Author

@plastikfan
Copy link
Collaborator Author

plastikfan commented May 3, 2020

To publish to PowerShellGallery:
https://mcpmag.com/articles/2017/03/16/submit-module-to-the-powershell-gallery.aspx

First, the module has to be loaded locally (Import-Module)

Essentially, its just:

Publish-Module -Name -NuGetApiKey

@plastikfan
Copy link
Collaborator Author

plastikfan commented May 4, 2020

Attempting to publish this to PowerShellGallery with the following command:

Publish-Module -Name -NuGetApiKey

failed:

Publish-Module: For publish operations, dotnet command version '2.0.0' or newer is required to interact with the NuGet-based repositories. Please ensure that dotnet command version '2.0.0' or newer is installed and available under one of the paths specified in PATH environment variable value. You can also install the dotnet command by following the instructions specified at 'https://aka.ms/dotnet-install-script'.

So it seems more installation is required before being able to publish:

https://docs.microsoft.com/en-us/powershell/module/powershellget/publish-module?view=powershell-7

https://docs.microsoft.com/en-gb/dotnet/core/tools/dotnet-install-script

Or for a simpler life, just publish from windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant