Where is Nuget 4 installed - nuget

Visual Studio 2017 comes with Nuget 4.0.0. However, it's not placed on the path. Where can I find the nuget executable to use the CLI?

Visual Studio 2017 doesn't use NuGet.exe but instead uses an extension of NuGet to achieve this. You should be able to find the extension in this path:
C:\Program Files (x86)\Microsoft Visual Studio\2017\<VSEdition>\Common7\IDE\CommonExtensions\Microsoft\NuGet
... where <VSEdition> is the version of Visual Studio being used, for example Community or Enterprise.
If you want to use the CLI, you'll have to download it separately. Here is a link explaining the same.

Related

Compiling VSTS Extension in VisualStudio 2017

How to build a VSTS extension in Visual Studio 2017. The post build event configured in package.json doesn't work from Visual Studio.
Only the Command npm run build triggers the build and postbuild events. I want vsix file to be created on building the VisualStudio 2017 project.
We cannot build directly to generate the vsix file in VS. Just as you said we can only trigger the postbuild events to call the command tfx extension create --manifest-globs vss-extension.json to package it.
To create TFS/VSTS extensions, you can refer to this article for detials :Create your first extension with Visual Studio
To package as the vsix file, please see Packaging and publishing - Package
If you mean create Visual Studio VSIX Package, then you can reference below articles:
Creating Your First Visual Studio VSIX Package
Visual Studio Extensibility: Creating Visual Studio VSIX package
extension

New Project, Old Nuget

Every time I start a new MVC project in Visual Studio, I have to update my Nuget packages. Things are several versions behind. I'm regularly updating my Visual Studio to stay current there, but how do I make sure my packages are up to date in new framework?
If needed, running Visual Studio 2017 Enterprise
What update of Visual Studio 2017 are you on?
How about modifying the inbuilt templates?
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ItemTemplates\Web\CSharp\1033

How to package Visual Studio extensions into a Nuget package

I would like to create a Visual Studio Nuget package for work. I also want to develop a Visual Studio extension to allow right-click deploy functionality for me and my co-workers. My question is: can I accomplish both of my requirements using the Nuget package alone, or do I have to develop a Nuget package and extension separately? If I have to do them separately, how can I roll the extension into the Nuget package so it can all be delivered together?

Nuget not restoring packages in visual studio 2015

I installed the Visual Studio 2015 yesterday on my work machine and map a project from TFS that i was working on the previous version (VS 2013). All the projects in this solution are build on top of .NET framework 4.5.1 . When i try to make a Restore Nuget Packages it says that all the packages in the packages.config files are downloaded already, but im getting a lot of compilation errors. The Microsoft.Exchange.WebServices.Data; reference for example, its declared on the packages.config file but im getting the 'red' error on the using clause of this reference in visual studio.
ThereĀ“s other package that the nuget says it is installed but in the references its possible to see an yellow triangle. And this package is on the packages.config too.
Is that something different in this new versio of nuget?
Ps. I already installed the update of the nuget program.

Error Installing NuGet 1.8

NuGet 1.8 seems to have some interesting new features. Unfortunately when I attempt to update from within Visual Studio, I get the error:
Value cannot be null.
Parameter name: v1
I figured I would just install it from outside Visual Studio and see if that works better, but the download link I found
http://nuget.codeplex.com/releases
does not list any downloads for "NuGet Visual Studio extension".
How can I update NuGet?
Update
This is on Windows 7 64-bit, Visual Studio Ultimate 2010SP 1, upgrading from recent NuGet version (how do I check version number?) to NuGet 1.8.
Based on the comments, I did the following:
Closed all instances of Visual Studio
Started a new instance of Visual Studio as Administrator
Tools / Extension Manager
Select NuGet Package Manager
Click Uninstall (if you're not Administrator, Uninstall is grayed out)
Restart Visual Studio (still as Administrator)
Tools / Extension Manager
Online Gallery
Install NuGet
Restarted Visual Studio (this time not as Administrator)
Resumed work