Once again I\'m battling MSBuild. I want to have a property value defined with a root path. As part of the build, the path will get updated with version information. Howe
Building on sll's answer, making the target that sets the new path a dependency instead of using CallTarget will yield the expected behaviour:
\\server\folder
$(MyPath)\version5
Build Output:
Main:
In Main Before - MyPath = \\server\folder\version5
Task1:
In Task1 - MyPath = \\server\folder\version5
Main:
In Main After - MyPath = \\server\folder\version5
Making SetMyPathProperty a dependency of Task1 instead of Main will result in identical behaviour to your PropertyScopeTest1.proj.