Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$ProjectRoot Variable Is Empty - Possible Timing Issue #36

Open
bwright86 opened this issue Sep 13, 2019 · 0 comments
Open

$ProjectRoot Variable Is Empty - Possible Timing Issue #36

bwright86 opened this issue Sep 13, 2019 · 0 comments

Comments

@bwright86
Copy link

I am trying to specify a non-default path for $PSBPreference.Test.RootDir in the psakeBuild.ps1 file. It doesn't appear that the $projectRoot variable is being populated before the Properties block is instantiated.

I can see that the $BHProjectPath is populated at runtime, and $projectRoot is being derived from this value.

But if I output the value of $projectRoot during runtime, from inside the Properties block, it is empty.

Could you take a look and see if I am correct about the timing issue above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant