This has only just started happening to me, and I'm not sure why.
I simply can't seem to find some nuget packages that I know are on the official feed.
For example: AutoMapper.
This is the package that I'm trying to add: https://www.nuget.org/packages/AutoMapper/3.0.0
Running Install-Package AutoMapper -Version 3.0.0 in the package manager console tells me that no such package could be found
Searching for AutoMapper in the Manage NuGet Packages window only returns a prerelease version (3.3.0-ci1017)
The URL I have for the feed is https://www.nuget.org/api/v2/.
Does anyone have any ideas as to what may be causing this?
You have likely changed NuGet to Include Prerelease packages. Just change the dropdown back to Stable Only.
Related
installed api package version 24.2.0 via nuget in visual studio, still does not find api version v201809
get-package doesn't show any conflicting packages, so im not sure why this isnt showing up when I try to include it.
use nuget to remove package (uninstall-package google.adwords)
manually look at and remove references
check project settings and make sure framework target > 4.5.2
install package (install-package google.adwords)
So pulling in version 18.9.0 of Aspose.Cells to a netcoreapp project results in the following error
warning NU1701: Package 'Aspose.Cells 18.9.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.
And if you open that nuget you can see that the netstandard target is suffixed with _AuthenticodeSigned.
If you look at the dependencies in the nuget gallery it lists netstandard2.0 as supported
So is _AuthenticodeSigned a valid convention? If so where is the doco? and how do i get NuGet/Visual Studio to recognise it?
We have been able to notice the problem on our end. An issue with ID CELLSNETCORE-9 is already logged in our issue management system for further investigations. Once, we will have some news for you, we will update you here.
Note: I am working as Support developer/ Evangelist at Aspose.
#Simon,
This is to inform you that issue with ID CELLSNETCORE-9 is resolved and updated version Aspose.Cells for .NET Core 18.10.0 is available via NuGet Package Manager. You may please try to update the package and provide your feedback.
Given an assembly I need, how do I find the NuGet package that provides it?
For example, I'm using ASP.NET Web API and I need the definition of DelegatingHandler. In a painful manner, I determine that this is available in the NuGet package Microsoft.Net.Http. But then, by accident, I discover it is also available in the latest (4.0.0) version of System.Net.Http.
There should be an easier way to locate the NuGet package or packages that provide the type rather than having a stumbling and guessing exercise with google.
Right now I also need the type System.Net.Http.ObjectContent, which is found in assembly System.Net.Http.Formatting. However, I'm not sure which NuGet provides it. I should not need to guess, but I'm going to guess that the relevant package is Microsoft.AspNet.WebApi.Client. Unfortunately, that package lists Microsoft.Net.Http as a dependency, rather than the version 4.0.0 of System.Net.Http which I have chosen for my other Web API dependencies.
So I'm kinda stuck trying to figure out what NuGet package or packages to grab.
Is there a "Reverse NuGet Lookup" tool I'm overlooking that would simplify this search?
There's the Reverse Package Search website but it includes only some of the NuGet packages, mostly those from BCL and ASP.NET: http://packagesearch.azurewebsites.net/
In addition, if you are using Visual Studio with the latest tooling, you should be able type a type name and intellisense will tell you what package to add. For example, type IApplicationRuntime, press ctrl + . and you'll get a suggestion for Microsoft.Dnx.Runtime.Abstractions.
As the title says, I'd like to know if there is a way to automatically update an installed NuGet package as soon as a new version becomes available in the package source.
The use case is a package that applies certain company policies (code analysis, signing, ...) to our projects, and as soon as this package is updated, I'd like to be able to configure an automatic update for this package.
I do know that there is a package restore feature for NuGet which will automatically download the missing packages when the project is built, but does this download a specific version or the most recent package with a matching name?
Although coming late to the party, I would like to add, that updating NuGet packages may be possible with PackageReference.
See https://learn.microsoft.com/de-de/nuget/reference/package-versioning.
The NuGet package restore feature intentionally only works for one specific version. The same package with a different version number will not be used if the package with a lower version is missing.
Example 1
packages.config references 1.0.0.0
package source contains 1.0.0.0 and 1.0.0.1
1.0.0.0 is the version that will automatically be restored
Example 2
packages.config references 1.0.0.0
package source contains only 1.0.0.1
no automatic restore will be performed, the project won't build
This behaviour makes sense as otherwise there is no way to control what you are actually building. Imagine someone updates the package source with a newer version of a package just before you build a release that will get shipped...
I'm just trying out Breeze.js and decided to convert an existing Web API 2.2 (.net 4.5.2) project to Breeze. I went to NuGet and installed the Breeze.ContextProvider and Breeze.ContextProvider.EF6 packages, since I used EF6 for this project. When I add the [BreezeController] attribute to my controllers Visual Studio (2015 CTP) doesn't know what it is ("Cannot resolve symbol 'BreezeController'" error). So I tried installing other NuGet packages that might contain this attribute (i.e. Breeze.Server.WebApi2), but couldn't find any. The docs don't seem to show what assembly I need to use for that attribute, so I'm stuck. Any help for this? Is that attribute deprecated? I can't find any mention of it in the docs... Thanks!
The BreezeControllerAttribute class is part of the Breeze.ContextProvider assembly. ( and is available as a standalone nuget package: Breeze.Server.ContextProvider or as part of the Breeze.Server.WebApi2 nuget) Not sure why you are having this issue, but nuget can be a little flaky... It might be worth removing all nugets and reinstalling them.
I just searched and installed "breeze.webapi2" and had the same issue. When I did a search for "breeze.server.webapi2", I noticed that that package wasn't installed (I thought it was a dependency on the "breeze.webapi2" package).
Installing just the "breeze.server.webapi2" currently doesn't do anything.
I'm doing this via VS2015 CTP6. My coworker was able to install the very same package using VS2013.