tags:

views:

225

answers:

1

Is it possible to run an msbuild task that populates a property or Item from an imported file "A" and then use these values in another file which imports file "A"?

EDIT: FileX imports FileA and FileY imports FileA. One of FileA's property is changed in FileX. Can this changed value be accessed in FileY

A: 

Sorry its a bit confusing:

Are you saying FileX imports FileA and FileY imports FileA. FileX sets property P in FileX but FileY reads it? If there is no relationship between X & Y then the only way to do it would be use the fact that properties in MSBUILD overlap with evironment vars. So possbly calling

<exec ... setx.exe Propertyname SomeValue.... /> in fileA and the $(Propertyname) in FileB
Preet Sangha
FileX imports FileA and FileY imports FileA. One of FileA's property is changed in FileX. Can this changed value be accessed in FileY?
Draco
Preet Sangha