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

Change NuGet package folders used by Visual Studio 2017

Cache locations Solution-local packages folders are no longer exist for .NET Core and Visual Studio 2017. NuGet is now fully integrated into MSBuild: Solution-local packages folders are no longer used – Packages are now resolved against the user’s cache at %userdata%.nuget, rather than a solution specific packages folder. This makes PackageReference perform faster and consume … Read more

provide credentials in nuget command line parameters

You have to change the NuGet.config you use. That is possible from the command line: nuget sources add -Name “MyExample” -Source “XXX” -username “Y” -password “Z” The password will be stored encrypted in the config file and can only be decrypted in the same user context as it was encrypted.

Could not install package ‘–‘. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.5’

Your package targets NETFramework,Version=v4.5.2. That means the assembly folder is lib\net452. You are trying to install the package to a higher framework (greater than 4.5) project. Create a project with framework 4.5.2 or rename the package’s lib folder from net452 to the version which you want to target like net45 or net46. You can target … Read more

How to get the url of a .nupkg file?

The URLs are typically in the format: http://nuget.org/api/v2/package/PACKAGE_ID/VERSION For example, for WebActivator: http://nuget.org/api/v2/package/Microsoft.Web.Infrastructure/1.0.0.0 If you just want the latest version of the package, leave out the version number: http://nuget.org/api/v2/package/Microsoft.Web.Infrastructure/

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