I use MSBuild to customize the build process for Visual Studio, WiX, SandCastle, ... projects. To keep it as general as possible, I would like to use text files that define some "project specific" parameters, for example, where the files should be downloaded, which user executables to run, etc.
The text file may 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 goals, I use ReadLinesFromFile to get the contents of these files. So far so good!
The problem is that the reserved properties, such as' $ (Configuration), $ (MSBuildProjectDirectory), are not evaluated at the same time, they are simply processed as plain text.
Any ideas on how I could evaluate these $ -local holders without creating a custom task?
Thanks in advance!
Regards, robert.oh.
properties msbuild reserved
robert.oh.
source share