In MSBuild, is there a way to extract part of a path and save that for use

Viewed 20

I'm currently wanting to take in the value of $(MSBuildProjectFullPath) and extract just a part of that full path and save it to a PreProcessorDefinition in order to make it available for use later on in the pipeline.

I've attempted to split the string up, but since it's a path, MSBuild doesn't play nice with me trying to split via ''.

The path is 'C:\xxx\xxx\Thing_I_Want\xxx\xxx\xxx\xxx.vcxproj

0 Answers
Related