How to use system variable in NAnt script?

I am looking for the use of variables like% WinDir%,% ProgramFiles%, ect. in an NAnt script, but I don't know the syntax.

Please, help!

+6
source share
2 answers

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

+12
source

You can use the get-variable function.

0
source

Source: https://habr.com/ru/post/887002/


All Articles