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:
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)
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! :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With