Nam G VU
Nam G VU

Reputation: 35364

How to use a system variable in NAnt script?

I'm looking for usage of such variables as %WinDir%, %ProgramFiles%, ect. in a NAnt script but I don't know the syntax.

Upvotes: 7

Views: 2813

Answers (2)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

You could use the get-variable function.

Upvotes: 0

Matthias Alleweldt
Matthias Alleweldt

Reputation: 2453

${environment::get-variable('WinDir')}

Upvotes: 13

Related Questions