Is it possible to declare agent requirements in a Powershell script?


I am using a Powershell script to create a ZIP archive of files coming from the artefacts of two other build configurations. The script uses .NET 4.5 classes. Therefore I would like to declare the agent requirement "DotNetFramework4.5_x86" inside the script to ensure that the agents running build configurations that include the script fulfil the requirement .

Would that be possible?

Please sign in to leave a comment.