Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CamSoper committed Feb 25, 2025
1 parent 22390a1 commit 4cafef7
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/core/compatibility/10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ If you're migrating an app to .NET 10, the breaking changes listed here might af
| [X500DistinguishedName validation is stricter](cryptography/10.0/x500distinguishedname-validation.md) | Behavioral change | Preview 1 |
| [Environment variable renamed to DOTNET_OPENSSL_VERSION_OVERRIDE](cryptography/10.0/version-override.md) | Behavioral change | Preview 1 |

## SDK

| Title | Type of change | Introduced version |
|-----------------------------------------------------------------------------------------------|-------------------|--------------------|
| [MSBUILDCUSTOMBUILDEVENTWARNING escape hatch removed](sdk/10.0/custom-build-event-warning.md) | Behavioral change | Preview 1 |

## Windows Forms

| Title | Type of change | Introduced version |
Expand Down
44 changes: 44 additions & 0 deletions docs/core/compatibility/sdk/10.0/custom-build-event-warning.md
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

View workflow job for this annotation

GitHub Actions / lint

Files should end with a single newline character

docs/core/compatibility/sdk/10.0/custom-build-event-warning.md:44:80 MD047/single-trailing-newline Files should end with a single newline character https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md047.md
8 changes: 8 additions & 0 deletions docs/core/compatibility/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ items:
items:
- name: Environment variable renamed to DOTNET_ICU_VERSION_OVERRIDE
href: globalization/10.0/version-override.md
- name: SDK and MSBuild
items:
- name: MSBUILDCUSTOMBUILDEVENTWARNING escape hatch removed
href: sdk/10.0/custom-build-event-warning.md
- name: Windows Forms
items:
- name: Renamed parameter in HtmlElement.InsertAdjacentElement
Expand Down Expand Up @@ -1868,6 +1872,10 @@ items:
href: reflection/8.0/function-pointer-reflection.md
- name: SDK and MSBuild
items:
- name: .NET 10
items:
- name: MSBUILDCUSTOMBUILDEVENTWARNING escape hatch removed
href: sdk/10.0/custom-build-event-warning.md
- name: .NET 9
items:
- name: "`dotnet restore` audits transitive packages"
Expand Down

0 comments on commit 4cafef7

Please sign in to comment.