You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Get-PSRepositoryName InstallationPolicy SourceLocation---- ------------------ --------------PSGallery Untrusted https://www.powershellgallery.com/api/v2PS> nugetnuget : The term 'nuget' 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+ nuget+ ~~~~~+ CategoryInfo : ObjectNotFound: (nuget:String) [], CommandNotFoundException+ FullyQualifiedErrorId : CommandNotFoundExceptionPS> Install-PackageProvider NugetInstall-PackageProvider : No match was found for the specified search criteria for the provider 'Nuget'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.At line:1 char:1+ Install-PackageProvider Nuget+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (Microsoft.PowerShel\u2026tallPackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception+ FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider^D
$ sudo zypper install mono-nugetLoading repository data...Reading installed packages...Resolving package dependencies...The following 2 NEW packages are going to be installed: mono-devel mono-nuget2 new packages to install.Overall download size: 12.5 MiB. Already cached: 0 B. After the operation, additional 77.7 MiB will be used.Continue? [y/n/v/...? shows all options] (y): yRetrieving package mono-devel-5.20.1-2.3.x86_64 (1/2), 12.2 MiB ( 76.3 MiB unpacked)Retrieving: mono-devel-5.20.1-2.3.x86_64.rpm .........................................................................................................[done (613.3 KiB/s)]Retrieving package mono-nuget-2.8.7-1.9.noarch (2/2), 347.0 KiB ( 1.5 MiB unpacked)Retrieving: mono-nuget-2.8.7-1.9.noarch.rpm ...........................................................................................................[done (31.0 KiB/s)]Checking for file conflicts: .......................................................................................................................................[done](1/2) Installing: mono-devel-5.20.1-2.3.x86_64 .....................................................................................................................[done](2/2) Installing: mono-nuget-2.8.7-1.9.noarch ......................................................................................................................[done]
$ pwshPS> Install-PackageProvider NugetInstall-PackageProvider : No match was found for the specified search criteria for the provider 'Nuget'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.At line:1 char:1+ Install-PackageProvider Nuget+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (Microsoft.PowerShel\u2026tallPackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception+ FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider^D
$ nuget install FudgeIf 'nuget' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf nuget
$ rpm -ql mono-nuget/usr/lib/mono/nuget/usr/lib/mono/nuget/Microsoft.Web.XmlTransform.dll/usr/lib/mono/nuget/NuGet.Core.dll/usr/lib/mono/nuget/NuGet.exe
$ NuGet install FudgeIf 'NuGet' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf NuGet
$ NuGet.exe install FudgeIf 'NuGet.exe' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf NuGet.exe
$ /usr/lib/mono/nuget/NuGet.exe install Fudgebash: /usr/lib/mono/nuget/NuGet.exe: cannot execute binary file: Exec format error
$ mono /usr/lib/mono/nuget/NuGet.exe install FudgeInstalling 'fudge 1.3.0'.Successfully installed 'fudge 1.3.0'.jayvdb@linux-lwww:~/projects/coala/coala-bears> pwsh
$ pwshPS> fudgefudge : The term 'fudge' 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+ fudge+ ~~~~~+ CategoryInfo : ObjectNotFound: (fudge:String) [], CommandNotFoundException+ FullyQualifiedErrorId : CommandNotFoundExceptionPS> . ./fudge.1.3.0/tools/Fudge.ps1 search chocoFudge v1.3.0Error checking user administrator priviledgesWindows Principal functionality is not supported on this platform.Must be running with administrator priviledges for Fudge to fully functionDuration: 00:00:00.2168319
i.e. I dont know why Install-PackageProvider Nuget doesnt 'just work' - it does on Windows. The openSUSE mono-dotnet doesnt install the provider into OneGet , and it doesnt do the voodoo needed to make .exe an executable format.
Sure I can work all of this out, and do it manually, and I will, but all of this can be bypassed because PSGallery is the only provider pre-installed with pwsh.
The text was updated successfully, but these errors were encountered:
It would be nice if this worked
Otherwise it is a bit difficult on Linux. e.g.
i.e. I dont know why
Install-PackageProvider Nuget
doesnt 'just work' - it does on Windows. The openSUSE mono-dotnet doesnt install the provider into OneGet , and it doesnt do the voodoo needed to make .exe an executable format.Sure I can work all of this out, and do it manually, and I will, but all of this can be bypassed because PSGallery is the only provider pre-installed with
pwsh
.The text was updated successfully, but these errors were encountered: