Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Recommended action
Use one of the following newly introduced, built-in events for extensibility instead of your custom derived build event:
- ExtendedCustomBuildEventArgs
- ExtendedBuildErrorEventArgs
- ExtendedBuildMessageEventArgs
- ExtendedBuildWarningEventArgs