質問

Can I do the following and see if the configuration contains the word "Extra":

<?if $(var.MyProject.Configuration) >< "Extra" ?>

This link suggests I can use >< but it doesn't work for me. It compiles with this error:

error CNDL0162: An illegal number was found in the expression
役に立ちましたか?

解決

Short answer: not without writing a preprocessor extension.

The link you provided discusses MSI expressions. The WiX preprocessor is slightly different and doesn't have the substring operators (or bitwise numeric operators for that matter).

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top