I am getting this error:
PM> Install-Package GemBox.Document -Version 33.0.1290
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local Cache at C:\Users\ho7035\AppData\Local\NuGet\Cache
Install-Package : Unable to find version '33.0.1290' of package 'GemBox.Document'.
At line:1 char:1
Related
Using PowerShell v7.3.1, I am trying to install the Google.Apis.Calendar.v3 library, but I get this error.
As suggested I run Get-PackageSource
I have also installed .NET Framework 4.8.1
I have also tried Install-Module PowerShellGet -Force, which successfully installed the module, but then when I try Install-Package Google.Apis.Calendar.v3 I get the same error.
what is the correct way of installing Google.Apis.Calendar.v3 using PowerShell?
Google.Apis.Calendar.v3 is a Google package. Which is hosted on NuGet
You don't appear to have NuGet set as a package source See: register-packagesource
register-PackageSource -Name MyNuGet -Location https://www.nuget.org/api/v2 -ProviderName NuGet
I'm having problems getting Swashbuckle to run..
I installed packages:
PM> Install-Package Microsoft.AspNet.WebApi.WebHost
PM> Install-Package WebActivatorEx
PM> Install-Package Microsoft.AspNet.WebApi.Core
PM> Install-Package Swashbuckle.Core
PM> Install-Package Swashbuckle
I cant navigate to /swagger... how can I make my api to get swagger?
Link Will guide you because Microsoft is supporting now.
I was just installing a new package thats not in my local cache. I took the command directly from the NuGet site.
Executing the command in the PMC failed with the following error:
The source at All [(Aggregate source)] is unreachable. Falling back to NuGet Local Cache at C:\Users\Jammer\AppData\Local\NuGet\Cache
Install-Package : Unable to find package 'Xam.Plugins.Settings'.
At line:1 char:16
+ Install-Package <<<< Xam.Plugins.Settings
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
I've confirmed all the settings are correct, all the usual NuGet source URLs are present and correct as expected. I have NuGet 2.8.5 installed.
When I searched using the "Manage Packages for Solution" option within Visual Studio it found the package I was after and installed it all as expected.
Has anyone seen this and have an idea as to what is going on here?
Ahhh, OK> Solved this immediately.
I uninstalled the package from within the solution
Removed the package from the NuGet local cache
Then on the command line I did this
cd C:\Users\username\AppData\Local\NuGet
nuget.exe update -self
Turns out that the version of NuGet required for the package is stated as 2.8.1, the version in the cache was 2.8.3 so should have been fine but an update to 2.8.5 fixed the issue I was having with Package Manager Console.
I was having the same problem, although no C:\Users\username\AppData\Local\NuGet folder existed.
My version is 2.8.60318.667, I downloaded and installed it but I couldn't install any package.
The solution is in Tools > Nuget Package Manager > Package Manager Settings.
Click on the Package Sources branch, and check 'nuget.org' as Available package sources.
Now it works fine.
Best Regards,
I have two pre-release nuget packages A.nuget and B.nuget, and B depends on A.
Install A.nuget works:
nuget.exe install A -Source E:\out\packages -OutputDirectory e:\NugetCache -Prerelease -PackageSaveMode nuspec;nupkg
Installing B.nuget fails:
nuget.exe install B -Source E:\out\packages -OutputDirectory e:\NugetCache -Prerelease -PackageSaveMode nuspec;nupkg
Unable to resolve dependency 'A.1.0.0.196-moma159241025'
I double checked and A.1.0.0.196-moma159241025 is installed under e:\NugetCache.
How can I resolve this error?
The work-around I use to solve this uses the -IgnoreDependencies switch, meaning the chosen package will install without its dependencies, regardless of whether Nuget can find them or not.
Install all packages "B" depends on (including "A")
Install package "B" using the -IgnoreDependencies switch
Install-Package A -IncludePrerelease
Install-Package SomeDependencyFromB
Install-Package SomeOtherDependencyFromB
Install-Package B -IncludePrerelease -IgnoreDependencies
https://docs.nuget.org/consume/package-manager-console-powershell-reference
i tried installing this package and got the following error.
Install-Package : Updating 'Microsoft.AspNet.WebApi.OData 5.0.0' to 'Microsoft.AspNet.WebApi.OData 4.0.30506' failed. Unable to find a version of 'Breeze.Server.WebApi2' that is compatible with
'Microsoft.AspNet.WebApi.OData 4.0.30506'.
At line:1 char:1
+ Install-Package HotTowel.Angular.Breeze -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
any help is appreciated,
thanks
Thanks for watching my course! Some of you have let me know that there are some issues with the newest WebApi NuGet packages. Once these are resolved (coordinating with Microsoft and Breeze folks) I will let you all know. In the meantime, here is the workaround which is quite simple:
For now, the easiest thing to do is install the nuget packages in this order. I am working with the Breeze team and the ASP.NET team to make this easier soon :)
Install-Package Microsoft.AspNet.WebApi -version 4.0.30506.0
Install-Package Microsoft.AspNet.WebApi.Odata -version 4.0.30506.0
Install-Package EntityFramework.SqlServerCompact -version 4.3.6
install-Package HotTowel.angular -pre
Install-Package HotTowel.angular.breeze -pre
The first 3 ask it to use the WebApi 4.0.30506 ... which makes it all work. Once I get confirmation from the Breeze team on some changes and check them with the Web Api team, I will update this and let everyone know how to make it work with Web API v2.
Thanks again for your support!
UPDATE
You can now use EF6, Web API v2 with Breeze 1.4.5. Just install HotTowel.
Install-Package HotTowel.Angular.Breeze -pre