Reset NuGet credentials in VS2017

As SayusiAndo guessed, the credentials were stored in Control Panel -> Credential Manager. After removing of which everything works fine. UPDATE: Two gotchas (as @Jurri mentioned in the comments): There may be two credentials to delete (Windows and Generic). The generic one, in my case, had “VSCredentials_” prefix. Restart VS.

Is there a way to automatically update nuget.exe in the .nuget folder when using package restore?

I would suggest updating .nuget\nuget.exe with this command from the command line: nuget.exe update -self [EDIT] : Close VS Solution first. If there’s an update and the solution is opened, nuget.exe will be removed from the solution. You could automatically update nuget.exe on restore by modifying the .nuget\nuget.targets to add the above command. I’d look … Read more

Difference between Chocolatey and NuGet

NuGet is designed to allow you to easily add code libraries to your project. Things like JSON.NET, Entity Framework, etc. Chocolatey is actually built on top of the NuGet package system, but it is designed to fill a different need. Chocolatey wraps up applications and other executables and makes it easy to install them on … Read more

What are the application implications of a netstandard library depending on a metapackage?

In the past, we’ve given developers the recommendation to not reference the meta package (NETStandard.Library) from NuGet packages but instead reference individual packages, like System.Runtime and System.Collections. The rationale was that we thought of the meta package as a shorthand for a bunch of packages that were the actual atomic building blocks of the .NET … Read more

Add native files from NuGet package to project output directory

Using the Copy target in the targets file to copy required libraries won’t copy those files to other projects which reference the project, resulting in a DllNotFoundException. This can be done with a much simpler targets file though, using a None element, as MSBuild will copy all None files to referencing projects. <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″> <ItemGroup> … Read more

Setting up a common nuget packages folder for all solutions when some projects are included in multiple solutions

I have a similar situation with external and internal package sources with projects referenced in more than one solution. I just got this working with one of our code bases today and it seems to be working with the developer workstations and our build server. The below process has this scenario in mind (although it … Read more

How do I delete NuGet packages that are not referenced by any project in my solution?

I’ve found a workaround for this. Enable package restore and automatic checking (Options / Package Manager / General) Delete entire contents of the packages folder (to Recycle Bin if you’re nervous!) Manage Nuget Packages For Solution Click the restore button. NuGet will restore only the packages used in your solution. You end up with a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)