MSBUILDCUSTOMBUILDEVENTWARNING escape hatch removed

The MSBUILDCUSTOMBUILDEVENTWARNING environment variable, which previously allowed custom build events derived from BuildEventArgs, is no longer supported.

Version introduced

.NET 10 Preview 1

Previous behavior

Users could set the MSBUILDCUSTOMBUILDEVENTWARNING environment variable to enable processing of custom build events.

New behavior

The value of the MSBUILDCUSTOMBUILDEVENTWARNING environment variable is not respected anymore.

Type of breaking change

This is a behavioral change.

Reason for change

The escape hatch mechanism provided by the MSBUILDCUSTOMBUILDEVENTWARNING environment variable was a temporary workaround. For more information, see the original breaking change.

Use one of the following newly introduced, built-in events for extensibility instead of your custom derived build event:

Affected APIs