Init.ps1 call order?

May 12, 2011 at 12:46 PM

If we have a set of packages referenced by projects in our solution, the Init.ps1 files get executed (only once) on loading the solution.

Are the Init.ps1 filex executed in random order, or is the dependency of packages on other packages respected?

Say I have package B depending on Package A. Can I be sure that A\Tools\Init.ps1 is executed BEFORE B\Tools\Init.ps1?

May 12, 2011 at 1:22 PM
We do respect the dependency order.

Sent from my phone. Why do you want to know what phone it is?

On May 12, 2011, at 4:47 AM, "svdoever" <notifications@codeplex.com> wrote:

From: svdoever

If we have a set of packages referenced by projects in our solution, the Init.ps1 files get executed (only once) on loading the solution.

Are the Init.ps1 filex executed in random order, or is the dependency of packages on other packages respected?

Say I have package B depending on Package A. Can I be sure that A\Tools\Init.ps1 is executed BEFORE B\Tools\Init.ps1?

May 12, 2011 at 7:40 PM

I already thought so, bu rembered reading somewhere that this was not the case. You made my day! I add it to my list of observations about nuget 1.3 at http://weblogs.asp.net/soever/archive/2011/05/12/nuget-1-3-some-observations.aspx.

May 12, 2011 at 8:15 PM

I was not the case in the ealier versions of nuget. We fixed it recently.