I'm using MSBuild to customize the build process of Visual Studio, WiX, SandCastle, ... projects. To keep it as generic as possible I'd like to use text files defining some 'project specific' settings, like where the files should be loaded from, which custom executables to run and so on.
A text file could look like this: $(MSBuildProjectDirectory)....\Projects\Project1\bin\Release obj\$(Configuration)\Project1.Files.wxi -in *.dll -id TEST
Each line represents one command or file.
Inside my targets I'm using ReadLinesFromFile to get the contents of these files. So far so good!
The problem is that the reserved properties like '$(Configuration), $(MSBuildProjectDirectory)' are not evaluated when doing so, they are just processed as regular text.
Any ideas on how I could evaluate these $-placeholders without creating a custom task?
Thanks in advance!
Regards, robert.oh.