Questions tagged [invoke-build]

Invoke-Build is a build and test automation tool which invokes tasks defined in PowerShell scripts.

Invoke-Build is a build and test automation tool which invokes tasks defined in PowerShell scripts. It is similar to psake but arguably easier to use and more powerful.

In addition to basic task processing the engine supports

  • Incremental tasks with effectively processed inputs and outputs.
  • Persistent builds which can be resumed after interruptions.
  • Parallel builds as a part of another with common stats.
  • Batch invocation of tests composed as tasks.
  • Ability to define new classes of tasks.

Invoke-Build on GitHib

3 questions
7
votes
2 answers

Dynamic switches before positional parameters may not work as expected

Here is the code that demonstrates the problem. The cmdlet Set-Location has the dynamic switch ReadOnly if the provider is FileSystem. # provider that does not have the dynamic -ReadOnly Set-Location env: # case 1: works because we explicitly…
Roman Kuzmin
  • 40,627
  • 11
  • 95
  • 117
2
votes
1 answer

How to create dynamic build tasks with Invoke-Build in PowerShell

Using Invoke-Build I am trying to create dynamic build tasks, an example of the approach is below. Where, in a similar fashion to the classic UNIX make facility an output file will be generated for each input file iff the input file is newer than…
user1383092
  • 507
  • 1
  • 7
  • 17
0
votes
1 answer

Finding MSBuild using vswhere in invoke-build on an ADO pipeline

On my local machine I can use MSBuild pretty easily. But when I try to use the same PowerShell script as I do on my local machine on an ADO Pipeline, I get complaints that MSBuild is a not a cmdlet. This leads me to believe that I need to use…