Edit

Share via


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

Previous behavior

Previously, users could set the MSBUILDCUSTOMBUILDEVENTWARNING environment variable to enable processing of custom build events.

New behavior

Starting in .NET 10, the value of the MSBUILDCUSTOMBUILDEVENTWARNING environment variable is not respected anymore.

Type of breaking change

This change 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