How to pass parameters to PowerShell script from TFS build process?

Question:

I created a little PowerShell script to change connection string in my web.config.

I added it to my build process. How to pass the build’s variables to the script?

(I use the new script based build process, so I only have a builtin “Arguments” field for the parameter)

Answer:

You can put all parameters in a single line into Arguments files like this:

Source:

How to pass parameters to PowerShell script from TFS build process? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply