After 1.6, Init.ps1 is no-longer executed

Dec 15, 2011 at 3:09 PM
Edited Dec 15, 2011 at 3:09 PM

I'm sure we're doing something wrong, but we noticed that after installing NuGet 1.6.2, our Init.ps1 scripts are no-longer run when opening a solution. Anyone know how we can get it working again?

Dec 15, 2011 at 4:08 PM

When opening the solution, do you have the Package Manager console open? PS scripts only run when PM console is open.

Dec 15, 2011 at 4:13 PM

@dotnetjunky I just tried it and it doesn't work for me.

Repro steps:
1. Create new MVC 3 Internet Project

2. Install-Package MvcScaffolding 

3. Verified Scaffold command.

4. Save solution.

5. Close and re-open solution

Expected: Scaffold command to exist

Actual: Scaffold command does not exist 

Dec 15, 2011 at 4:32 PM
Edited Dec 19, 2011 at 6:48 PM
Hmm that's bad. I'll investigate.

Dec 15, 2011 at 5:27 PM

Created work item 1781. Thanks for confirming, guys.

Dec 16, 2011 at 12:39 AM

How did 1.6 even ship like this?

How can I revert back to 1.5?

Dec 16, 2011 at 12:54 AM

You can re-install 1.5 from

Dec 16, 2011 at 1:00 AM

Thanks, appreciate it David.

Dec 16, 2011 at 1:15 AM

Apologize for letting this bug slip into 1.6. I've fixed the bug and we're testing it right now. If things go well, we'll release an updated version.

Dec 19, 2011 at 6:26 PM

We've just released a hotfix to fix this issue. Please update your NuGet extension and let us know.

Dec 19, 2011 at 6:36 PM

Looks like a winner. Thanks for the quick turnaround, Luan.