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

Move-MyGetNuGetPackages Fails #12

Open
Leo-zryan opened this issue Nov 29, 2021 · 1 comment
Open

Move-MyGetNuGetPackages Fails #12

Leo-zryan opened this issue Nov 29, 2021 · 1 comment

Comments

@Leo-zryan
Copy link

I have tried to move my nuget packages from one public feed(sourcefeed) stored on an Azure Devops Org (org1) , to another Private (destinationfeed) feed Organization on Azure Devops (org2) , and when i type the command, I get an error. And my powershell version is as follows.

`Move-MyGetNuGetPackages -SourceIndexUrl 'https://pkgs.dev.azure.com/udtrucksQA/_packaging/netcore/nuget/v3/index.json' -DestinationIndexUrl 'https://pkgs.dev.azure.com/leoyanstudy/_packaging/leoyanstudy/nuget/v3/index.json' -DestinationPAT 'xxx' -DestinationFeedName 'leoyanstudy' -Verbose
Move-MyGetNuGetPackages : The term 'Move-MyGetNuGetPackages' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • Move-MyGetNuGetPackages -SourceIndexUrl 'https://pkgs.dev.azure.com/u ...
  •   + CategoryInfo          : ObjectNotFound: (Move-MyGetNuGetPackages:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS H:> host
Name : ConsoleHost
Version : 5.1.19041.1320
InstanceId : 396c9a50-9ff8-4575-a789-e595ae512bb3
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : zh-CN
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace`

@woeterman94
Copy link

Did you install the module? (Because you are getting a command not found exception)

Install-Module -Name AzureArtifactsPackageMigration -Scope CurrentUser -Force
Import-Module -Name AzureArtifactsPackageMigration

But recommended is that you download the script and import it from disk
Import-Module -Name C:\Users\...\WindowsPowerShell\Modules\MyGetPackageMigration.psm1 -Verbose -Force

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

No branches or pull requests

2 participants