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

Could not load file or assembly 'NuGet.Versioning #350

Closed
brwilkinson opened this issue Mar 11, 2021 · 2 comments
Closed

Could not load file or assembly 'NuGet.Versioning #350

brwilkinson opened this issue Mar 11, 2021 · 2 comments

Comments

@brwilkinson
Copy link

Install-PSResource : Could not load file or assembly 'NuGet.Versioning, Version=5.7.0.7, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

gmo *get*

ModuleType Version Name          ExportedCommands
---------- ------- ----          ----------------
Script     3.0.0   PowerShellGet {Find-PSResource, Get-PSResource, Get-PSResourceRepository, Install-PSResource...}

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.21318.1000


Install-PSResource -name posh-git
Install-PSResource : Could not load file or assembly 'NuGet.Versioning, Version=5.7.0.7, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot
find the file specified.
At line:1 char:1
+ Install-PSResource -name posh-git
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-PSResource], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.PowerShellGet.Cmdlets.InstallPSResource

I saw some other references to this e.g.: Azure/azure-functions-host#6650

@SydneyhSmith
Copy link
Collaborator

Thanks @brwilkinson this is an interesting issue...are you using Azure Functions? We packaged the nuget assemblies in the latest version of PowerShellGet, so re-installing the module may help...

@brwilkinson
Copy link
Author

Closing this issue, since reinstalling PowerShellGet 3.0.0-beta10 has resolved this.

Not sure why all files weren't originally downloaded.

For some reason the Modules\PowerShellGet\3.0.0\net472 directory wasn't downloaded.

image

I actually tested it again and found it didn't get downloaded 1 of the 3 times that i tested.

Whatever that was is unrelated to this issue.

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

No branches or pull requests

2 participants