Skip to content

Commit ad1f35f

Browse files
authored
Add alternative error message for SEO (#48477)
Updated the error message regarding the deprecation of custom event types in .NET 10.
1 parent 7f37578 commit ad1f35f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/core/compatibility/sdk/8.0/custombuildeventargs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ Previously, you could derive from any subclass of <xref:Microsoft.Build.Framewor
1515

1616
Starting in .NET 8, a build error is issued if your code uses any type derived from <xref:Microsoft.Build.Framework.BuildEventArgs> and you build using the .NET 8 version of MSBuild, that is, from the command line:
1717

18-
> Usage of unsecure BinaryFormatter during serialization of custom event type 'MyCustomBuildEventArgs'. This will be deprecated soon. Please use Extended*EventArgs instead. More info: <https://aka.ms/msbuild/eventargs>
18+
> Usage of unsecure BinaryFormatter during serialization of custom event type 'MyCustomBuildEventArgs'. This will be deprecated soon. Please use Extended*EventArgs instead. More info: <https://aka.ms/msbuild/eventargs>.
19+
20+
In .NET 10, the error message was changed to:
21+
22+
> Custom event type 'MyCustomBuildEventArgs' is not supported as all custom event types were deprecated. Please use Extended*EventArgs instead. More info: <https://aka.ms/msbuild/eventargs>.
1923
2024
Starting from Visual Studio version 17.10, the same behavior applies to builds in Visual Studio.
2125

0 commit comments

Comments
 (0)