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

Can't install NuGet package through PowerShell #21

Closed
xhevahir opened this issue Mar 12, 2019 · 3 comments
Closed

Can't install NuGet package through PowerShell #21

xhevahir opened this issue Mar 12, 2019 · 3 comments
Labels
question Just question about the library

Comments

@xhevahir
Copy link

Hi,
I'm trying to install using the NuGet instructions, and Powershell gives this error:
Install-Package : A parameter cannot be found that matches parameter name 'Version'.
At line:1 char:44

  • Try {Install-Package Melanchall.DryWetMidi -Version 4.0.0}Catch {$_ | ...
  •                                        ~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Install-Package], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

I'm new to .NET, so maybe I'm missing something obvious.

@melanchall melanchall changed the title Can't install through NuGet Package Manager Can't install NuGet package through PowerShell Mar 12, 2019
@melanchall
Copy link
Owner

melanchall commented Mar 12, 2019

Hi,

Please note that Install-Package with -Version parameter is a command for NuGet Package Manager Console inside Visual Studio. It's not a command for PowerShell.

PowerShell's Install-Package has not -Version parameter. Try to remove -Version 4.0.0 and run command again.

Is it an option to install package for your project with Visual Studio? Or you must do it via PowerShell only?

@xhevahir
Copy link
Author

That worked! Thanks a lot for helping a newbie.

@ajnair100
Copy link

am still facing the issue am unable to install SMO 14 for sql 2017 for me to run my Avamar backup which needs these Smo14

how can I do this ? any idea is it powershell script or Nuget or what should be done to get these SMo14 for sql 2017??

the above command PS fails ..

@melanchall melanchall added the question Just question about the library label Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Just question about the library
Projects
None yet
Development

No branches or pull requests

3 participants