-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
docs/core/compatibility/sdk/10.0/custom-build-event-warning.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: "Breaking change - MSBUILDCUSTOMBUILDEVENTWARNING escape hatch removed" | ||
description: "Learn about the breaking change where the MSBUILDCUSTOMBUILDEVENTWARNING environment variable is no longer supported." | ||
ms.date: 2/25/2025 | ||
ai-usage: ai-assisted | ||
ms.custom: https://github.com/dotnet/docs/issues/44998 | ||
--- | ||
|
||
# MSBUILDCUSTOMBUILDEVENTWARNING escape hatch removed | ||
|
||
The `MSBUILDCUSTOMBUILDEVENTWARNING` environment variable, which previously allowed processing of custom build events, 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](../../categories.md#behavioral-change). | ||
|
||
## Reason for change | ||
|
||
The escape hatch mechanism provided by the `MSBUILDCUSTOMBUILDEVENTWARNING` environment variable was temporary as described in the [original change](../8.0/custombuildeventargs.md). | ||
|
||
## Recommended action | ||
|
||
Use one of the following newly introduced, built-in events for extensibility instead of your custom derived build event: | ||
|
||
- <xref:Microsoft.Build.Framework.ExtendedCustomBuildEventArgs> | ||
- <xref:Microsoft.Build.Framework.ExtendedBuildErrorEventArgs> | ||
- <xref:Microsoft.Build.Framework.ExtendedBuildMessageEventArgs> | ||
- <xref:Microsoft.Build.Framework.ExtendedBuildWarningEventArgs> | ||
|
||
## Affected APIs | ||
|
||
- <xref:Microsoft.Build.Framework.CustomBuildEventArgs?displayProperty=fullName> | ||
Check failure on line 44 in docs/core/compatibility/sdk/10.0/custom-build-event-warning.md
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters