What is the best way to pass variables from Visual studio build definition to powershell running in post build section

What is the best way to pass variables from Visual studio build definition to powershell running in post build section.
I have a build running in visual studio 2013. I have in the post build section running a powershell script and i want it to be able to see the drop location also maybe even the bin directory. Since each build creates a new dynamic directory how does that variable that is used in the build get exposed to powershell post build/ compile?
josephh610Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QlemoBatchelor, Developer and EE Topic AdvisorCommented:
There are a lot of predefined variables you can provide as argument - did you take a look thru the drop-down list? You can use the vars as positional or named parameters, Whatever you prefer, in PowerShell.
0
josephh610Author Commented:
I figured the solution out myself. It automatically accepts the build vars.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
So you used the environment variables, or provide parameters?
0
josephh610Author Commented:
Visual studio build has variables that are available during build time.
0
josephh610Author Commented:
Figured out solution myself.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.