Best way to force an update of a transitive nuget package dependency?

The best way to force an update of a transitive Nuget package dependency is to update the directly referenced package to a newer version that includes the updated transitive dependency Open the Package Manager Console in Visual Studio. You can do this by going to Tools > NuGet Package Manager > Package Manager Console. Run … Read more

NuGet add external reference

The <references> element defines the references that will be added to the project when your package is installed. What you are missing is the part that defines the files that are part of your package which is done with the <files> element. So your .nuspec file should look something like the following: <?xml version=”1.0″?> <package> … Read more

Nuget Package – feed (VSTS) :Exception ‘System.AggregateException’ thrown when trying to add source

I met this issue today and fix it by following: If you have delete the feed from VSTS, then you need to delete it from VS\Tools\Options\Nuget Package Manager\Package Sources: If you didn’t delete the feed in VSTS and want to use it, sign in with your VSTS team project account from VS upper right corner … Read more

The current status of System.Net.Http vs. Microsoft.Net.Http

This has been for a long time and continues to be confusing. I have seen such messaging myself but as of right now, it appears System.Net.Http is the correct choice, at least for .NET on the Windows platform and has no external dependencies. For .NET Core, I have used Microsoft.Net.Http although it does require Microsoft.BCL. … Read more

Debugging private NuGet packages?

What is the command that you used to generate the packages with the symbols? I tried to do the same exact thing nuget.exe pack -Prop Configuration=Release Framework.csproj -Symbols This creates two files: Framework.nupkg and Framework.symbols.nupkg. I put these files on a network share, used them from another project and debugging worked fine. Have you tried … Read more

How should I create or upload a 32-bit and 64-bit NuGet package?

We’ve been discussing a similar issue on the Chocolatey Google Group. There aren’t any semantics built into NuGet. The requirement wouldn’t be, what processor architecture are you running on. It would have to be what processor architecture is your project targeting. And then that complicates things… you’d have to understand AnyCPU as well. I think … Read more

Specify NuGet sources for build server to use with NuGet Package Restore?

With the current version of NuGet it’s possible to specify custom repositories in the solution’s NuGet.config file and enable package restore during a build. Having this NuGet.config file allowed us to automatically restore packages from internal repository under a TFS build without any other actions in the build definition: <configuration> <solution> <add key=”disableSourceControlIntegration” value=”true” /> … Read more