MSBuild エンジンは、'$([MSBuild]::Add($(OldRevision), 1))' ステートメントに対してエラー MSB4186 を返します。hereの例を使用していますが、うまくいきません:
error MSB4186: Invalid static method invocation syntax:
"[MSBuild]::Add($(OldRevision), 1)". Input string was not in a correct format.
Static method invocation should be of the form: $([FullTypeName]::Method()),
e.g. $([System.IO.Path]::Combine(`a`, `b`))
これが私が実行しようとしているものです:
<CreateProperty Value="$([MSBuild]::Add($(OldRevision), 1))">
<Output
TaskParameter="Value"
PropertyName="NewRevision" />
</CreateProperty>
適切な構文は何だろう
ps はい、MSBuild 4.5 を使用しています