Publish-PSArtifactUtility cannot resolve module dependency when publishing even when they are in the same feedHow do I correctly install the PowerShell MSOnline module in Windows 8.1 Enterprise?Not finding PowerShell packages in Nexus OSS when the RequriedModules Attribute has a value in the Module ManifestCredentials in Desired State ConfigurationPublishing Powershell Modules to VSTS Package Management using Publish-ModuleInstall PowerShellGet moduleCannot import AzureAD module in C#visual studio code power-shell update-help on macImport-Module works only when piped from Get-ModuleUnable to find repository on Update-ModuleThe remote server returned an error: (403) Forbidden. At C:Program FilesWindowsPowerShellModulesCosmosDB3.1.0.293CosmosDB.psm1
How could a self contained organic body propel itself in space
Why does glibc's strlen need to be so complicated to run quickly?
Inspiration for failed idea?
Can a network vulnerability be exploited locally?
Why does the `ls` command sort files like this?
Group riding etiquette
How to prevent a hosting company from accessing a VM's encryption keys?
Why did the population of Bhutan drop by 70% between 2007 and 2008?
Is this position a forced win for Black after move 14?
Is it unusual for a math department not to have a mail/web server?
web scraping images
Is the Amazon rainforest the "world's lungs"?
Alternatives to Network Backup
Do multi-engine jets need all engines with equal age to reduce asymmetry in thrust and fuel consumption arising out of deterioration?
Should I ask for a raise one month before the end of an internship?
Can I lend a small amount of my own money to a bank at the federal funds rate?
Should I judge the efficacy of Samadhi based on the ethical qualities of the meditator?
Coupling two 15 Amp circuit breaker for 20 Amp
Why did Starhopper's exhaust plume become brighter just before landing?
Why can't I identify major and minor chords?
Count the number of triangles
Notice period 60 days but I need to join in 45 days
Why is 3/4 a simple meter while 6/8 is a compound meter?
Looking for a plural noun related to ‘fulcrum’ or ‘pivot’ that denotes multiple things as crucial to success
Publish-PSArtifactUtility cannot resolve module dependency when publishing even when they are in the same feed
How do I correctly install the PowerShell MSOnline module in Windows 8.1 Enterprise?Not finding PowerShell packages in Nexus OSS when the RequriedModules Attribute has a value in the Module ManifestCredentials in Desired State ConfigurationPublishing Powershell Modules to VSTS Package Management using Publish-ModuleInstall PowerShellGet moduleCannot import AzureAD module in C#visual studio code power-shell update-help on macImport-Module works only when piped from Get-ModuleUnable to find repository on Update-ModuleThe remote server returned an error: (403) Forbidden. At C:Program FilesWindowsPowerShellModulesCosmosDB3.1.0.293CosmosDB.psm1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to publish a PowerShell module to Azure Artifacts which has a dependency on another module that is hosted in the same Artifacts feed. The idea is that when I install the module locally from the feed, the correct version of the dependency is installed automatically. The problem is that when I run:
Publish-Module -NuGetApiKey "token" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
I get the following error:
Publish-PSArtifactUtility : PowerShellGet cannot resolve the module dependency 'dependency' of the module
'moduleWhichHasDependency' on the repository 'ArtifactsFeed'. Verify that the dependent module 'dependency'
is available in the repository 'ArtifactsFeed'. If this dependent module 'dependency' is managed externally,
add it to the ExternalModuleDependencies entry in the PSData section of the module manifest.
At C:Program FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:1190 char:17
+ Publish-PSArtifactUtility -PSModuleInfo $moduleInfo `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Publish-PSArtifactUtility], InvalidOperationException
+ FullyQualifiedErrorId : UnableToResolveModuleDependency,Publish-PSArtifactUtility
In the manifest, the dependency is added like this:
RequiredModules = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
Then I tried adding:
ExternalModuleDependencies = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
The module is published but when I install it locally, it doesn't install the dependency.
powershell azure-devops nuget azure-pipelines azure-artifacts
add a comment |
I'm trying to publish a PowerShell module to Azure Artifacts which has a dependency on another module that is hosted in the same Artifacts feed. The idea is that when I install the module locally from the feed, the correct version of the dependency is installed automatically. The problem is that when I run:
Publish-Module -NuGetApiKey "token" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
I get the following error:
Publish-PSArtifactUtility : PowerShellGet cannot resolve the module dependency 'dependency' of the module
'moduleWhichHasDependency' on the repository 'ArtifactsFeed'. Verify that the dependent module 'dependency'
is available in the repository 'ArtifactsFeed'. If this dependent module 'dependency' is managed externally,
add it to the ExternalModuleDependencies entry in the PSData section of the module manifest.
At C:Program FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:1190 char:17
+ Publish-PSArtifactUtility -PSModuleInfo $moduleInfo `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Publish-PSArtifactUtility], InvalidOperationException
+ FullyQualifiedErrorId : UnableToResolveModuleDependency,Publish-PSArtifactUtility
In the manifest, the dependency is added like this:
RequiredModules = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
Then I tried adding:
ExternalModuleDependencies = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
The module is published but when I install it locally, it doesn't install the dependency.
powershell azure-devops nuget azure-pipelines azure-artifacts
add a comment |
I'm trying to publish a PowerShell module to Azure Artifacts which has a dependency on another module that is hosted in the same Artifacts feed. The idea is that when I install the module locally from the feed, the correct version of the dependency is installed automatically. The problem is that when I run:
Publish-Module -NuGetApiKey "token" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
I get the following error:
Publish-PSArtifactUtility : PowerShellGet cannot resolve the module dependency 'dependency' of the module
'moduleWhichHasDependency' on the repository 'ArtifactsFeed'. Verify that the dependent module 'dependency'
is available in the repository 'ArtifactsFeed'. If this dependent module 'dependency' is managed externally,
add it to the ExternalModuleDependencies entry in the PSData section of the module manifest.
At C:Program FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:1190 char:17
+ Publish-PSArtifactUtility -PSModuleInfo $moduleInfo `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Publish-PSArtifactUtility], InvalidOperationException
+ FullyQualifiedErrorId : UnableToResolveModuleDependency,Publish-PSArtifactUtility
In the manifest, the dependency is added like this:
RequiredModules = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
Then I tried adding:
ExternalModuleDependencies = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
The module is published but when I install it locally, it doesn't install the dependency.
powershell azure-devops nuget azure-pipelines azure-artifacts
I'm trying to publish a PowerShell module to Azure Artifacts which has a dependency on another module that is hosted in the same Artifacts feed. The idea is that when I install the module locally from the feed, the correct version of the dependency is installed automatically. The problem is that when I run:
Publish-Module -NuGetApiKey "token" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
I get the following error:
Publish-PSArtifactUtility : PowerShellGet cannot resolve the module dependency 'dependency' of the module
'moduleWhichHasDependency' on the repository 'ArtifactsFeed'. Verify that the dependent module 'dependency'
is available in the repository 'ArtifactsFeed'. If this dependent module 'dependency' is managed externally,
add it to the ExternalModuleDependencies entry in the PSData section of the module manifest.
At C:Program FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:1190 char:17
+ Publish-PSArtifactUtility -PSModuleInfo $moduleInfo `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Publish-PSArtifactUtility], InvalidOperationException
+ FullyQualifiedErrorId : UnableToResolveModuleDependency,Publish-PSArtifactUtility
In the manifest, the dependency is added like this:
RequiredModules = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
Then I tried adding:
ExternalModuleDependencies = @( @ModuleName = 'dependency'; ModuleVersion = '1.0.4'; )
The module is published but when I install it locally, it doesn't install the dependency.
powershell azure-devops nuget azure-pipelines azure-artifacts
powershell azure-devops nuget azure-pipelines azure-artifacts
asked Mar 27 at 21:03
MauriRMauriR
941 silver badge10 bronze badges
941 silver badge10 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This issue seems to have been fixed in the latest version of PowershellGet (2.2 in the PSGallery, version installed on my computer was 1.0.1).
You could also install the latest version of PackageManagement (1.4.3 vs 1.0.1)
See :
Added credential parameter to subsequent calls of Publish-Module/Script. #93
https://github.com/PowerShell/PowerShellGet/pull/93
Implement Publish-Module credential parameter propagation to sub-functions #104
https://github.com/PowerShell/PowerShellGet/pull/104
To do this :
Install-Module PowershellGet -Force #-Scope Current #if you don't want to login as Administrator
However, I have a question for you : how do you manage not to give your Credentials when you call Publish-Module with an Azure Artifact feed ? I know they should be stored in the file nuget.config but I have to give them each time.
Publish-Module -NuGetApiKey "whatever" -Credentials "PSCredentials object" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386419%2fpublish-psartifactutility-cannot-resolve-module-dependency-when-publishing-even%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This issue seems to have been fixed in the latest version of PowershellGet (2.2 in the PSGallery, version installed on my computer was 1.0.1).
You could also install the latest version of PackageManagement (1.4.3 vs 1.0.1)
See :
Added credential parameter to subsequent calls of Publish-Module/Script. #93
https://github.com/PowerShell/PowerShellGet/pull/93
Implement Publish-Module credential parameter propagation to sub-functions #104
https://github.com/PowerShell/PowerShellGet/pull/104
To do this :
Install-Module PowershellGet -Force #-Scope Current #if you don't want to login as Administrator
However, I have a question for you : how do you manage not to give your Credentials when you call Publish-Module with an Azure Artifact feed ? I know they should be stored in the file nuget.config but I have to give them each time.
Publish-Module -NuGetApiKey "whatever" -Credentials "PSCredentials object" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
add a comment |
This issue seems to have been fixed in the latest version of PowershellGet (2.2 in the PSGallery, version installed on my computer was 1.0.1).
You could also install the latest version of PackageManagement (1.4.3 vs 1.0.1)
See :
Added credential parameter to subsequent calls of Publish-Module/Script. #93
https://github.com/PowerShell/PowerShellGet/pull/93
Implement Publish-Module credential parameter propagation to sub-functions #104
https://github.com/PowerShell/PowerShellGet/pull/104
To do this :
Install-Module PowershellGet -Force #-Scope Current #if you don't want to login as Administrator
However, I have a question for you : how do you manage not to give your Credentials when you call Publish-Module with an Azure Artifact feed ? I know they should be stored in the file nuget.config but I have to give them each time.
Publish-Module -NuGetApiKey "whatever" -Credentials "PSCredentials object" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
add a comment |
This issue seems to have been fixed in the latest version of PowershellGet (2.2 in the PSGallery, version installed on my computer was 1.0.1).
You could also install the latest version of PackageManagement (1.4.3 vs 1.0.1)
See :
Added credential parameter to subsequent calls of Publish-Module/Script. #93
https://github.com/PowerShell/PowerShellGet/pull/93
Implement Publish-Module credential parameter propagation to sub-functions #104
https://github.com/PowerShell/PowerShellGet/pull/104
To do this :
Install-Module PowershellGet -Force #-Scope Current #if you don't want to login as Administrator
However, I have a question for you : how do you manage not to give your Credentials when you call Publish-Module with an Azure Artifact feed ? I know they should be stored in the file nuget.config but I have to give them each time.
Publish-Module -NuGetApiKey "whatever" -Credentials "PSCredentials object" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
This issue seems to have been fixed in the latest version of PowershellGet (2.2 in the PSGallery, version installed on my computer was 1.0.1).
You could also install the latest version of PackageManagement (1.4.3 vs 1.0.1)
See :
Added credential parameter to subsequent calls of Publish-Module/Script. #93
https://github.com/PowerShell/PowerShellGet/pull/93
Implement Publish-Module credential parameter propagation to sub-functions #104
https://github.com/PowerShell/PowerShellGet/pull/104
To do this :
Install-Module PowershellGet -Force #-Scope Current #if you don't want to login as Administrator
However, I have a question for you : how do you manage not to give your Credentials when you call Publish-Module with an Azure Artifact feed ? I know they should be stored in the file nuget.config but I have to give them each time.
Publish-Module -NuGetApiKey "whatever" -Credentials "PSCredentials object" -Path path -Repository "ArtifactsFeedName" -Verbose -ErrorAction Stop
edited Jul 19 at 15:53
answered Jul 19 at 15:41
clientGOOGclientGOOG
13 bronze badges
13 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386419%2fpublish-psartifactutility-cannot-resolve-module-dependency-when-publishing-even%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown