Share data between different msbuild inline tasks

278 Views Asked by At

I would like to create two custom inline tasks that share some data.
For example, one task sets a global variable and the other one reads it.
Is there some common context in which both tasks are compiled where I could place the common data? (btw I know I can do it in non-inline task, the question is specific to inline tasks)

A possible solution is to create just one inline task with a parameter that specifies which "function" to run, much like TaskAction property in MSBuild Extension Pack. But is there a way to do that with two separate inline tasks?

0

There are 0 best solutions below