5

I am looking for a way to startup visual studio and then run some commands in the package manager console for nuget.

How can I do the following steps:

  • Open visual studio (command prompt/no gui/silent)
  • Call the nuget update statement: Update-Package MyNamespace.MyProject -Version x.x.x

At first I tried to do this via nuget.exe, but it seems that Install.ps1 scripts aren't executed. (http://blog.davidebbo.com/2011/05/thoughts-on-installing-and-updating.html)

1 Answer 1

1

The NuGet FAQ attempts to address this with the "Can I use NuGet outside of Visual Studio?" question, but it falls short of what you are after. As you say, the NuGet.exe command line does not run the included powershell scripts in the package you are installing.

It looks like the NuGet team is planning another route to support the new project.json project structure introduced by ASP.Net 5 / ASP.Net Core 1.0.

You might be able to use this standalone set of powershell cmdlets developed by the SharpDevelop team, but I haven't tried it and it is a bit old. But hey, if it works! :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.