I have an MSBuild question.

I have an <Exec> task. On some systems, the tool this <Exec> executes may not be present. In this case, I want to print a prominent warning, and proceed with the build anyway.

MSBuild <Exec> allows an IgnoreExitCode="true" property, which is the closest to a solution I find. But it is not a solution because: one, it does not print a warning; and two, it suppresses failures which are caused by the app actually failing, rather than just being missing.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115849716000854732 on your instance and quote it. (Note that quoting is not supported in Mastodon.)