Skip to content

Commit 70eb12e

Browse files
BillWagnerpull[bot]
authored andcommitted
Fast follow to #42050 (#42124)
Fix redirects that caused warnings.
1 parent b28dcd5 commit 70eb12e

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

docs/core/extensions/dependency-injection-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To get started, create a new .NET console application named **DI.Basics**. Some
2020

2121
- [Visual Studio: **File > New > Project**](/visualstudio/get-started/csharp/tutorial-console) menu.
2222
- [Visual Studio Code](https://code.visualstudio.com/) and the [C# Dev Kit extension's](https://code.visualstudio.com/docs/csharp/project-management): **Solution Explorer** menu option.
23-
- [.NET CLI: `dotnet new console`](/dotnet/core/tools/dotnet-new-sdk-templates#console) command in the terminal.
23+
- [.NET CLI: `dotnet new console`](../tools/dotnet-new-sdk-templates.md#console) command in the terminal.
2424

2525
You need to add the package reference to the [Microsoft.Extensions.DependencyInjection](https://www.nuget.org/packages/Microsoft.Extensions.DependencyInjection) in the project file. Regardless of the approach, ensure the project resembles the following XML of the _DI.Basics.csproj_ file:
2626

docs/csharp/how-to/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Events provide a mechanism to publish or subscribe to notifications.
9292

9393
- [Subscribe and unsubscribe from events](../programming-guide/events/how-to-subscribe-to-and-unsubscribe-from-events.md).
9494
- [Implement events declared in interfaces](../programming-guide/events/how-to-implement-interface-events.md).
95-
- [Conform to .NET guidelines when your code publishes events](../programming-guide/events/how-to-publish-events-that-conform-to-net-framework-guidelines.md).
95+
- [Conform to .NET guidelines when your code publishes events](/dotnet/standard/events).
9696
- [Raise events defined in base classes from derived classes](../programming-guide/events/how-to-raise-base-class-events-in-derived-classes.md).
9797
- [Implement custom event accessors](../programming-guide/events/how-to-implement-custom-event-accessors.md).
9898

docs/csharp/language-reference/keywords/event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `event` keyword is used to declare an event in a publisher class.
1717

1818
## Example
1919

20-
The following example shows how to declare and raise an event that uses <xref:System.EventHandler> as the underlying delegate type. For the complete code example that also shows how to use the generic <xref:System.EventHandler%601> delegate type and how to subscribe to an event and create an event handler method, see [How to publish events that conform to .NET Guidelines](../../programming-guide/events/how-to-publish-events-that-conform-to-net-framework-guidelines.md).
20+
The following example shows how to declare and raise an event that uses <xref:System.EventHandler> as the underlying delegate type. For the complete code example that also shows how to use the generic <xref:System.EventHandler%601> delegate type and how to subscribe to an event and create an event handler method, see [How to publish events that conform to .NET Guidelines](/dotnet/standard/events).
2121

2222
[!code-csharp[csrefKeywordsModifiers#7](~/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsModifiers/CS/csrefKeywordsModifiers.cs#7)]
2323

docs/csharp/programming-guide/events/how-to-subscribe-to-and-unsubscribe-from-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ You cannot easily unsubscribe from an event if you used an anonymous function to
9393

9494
- [Events](./index.md)
9595
- [event](../../language-reference/keywords/event.md)
96-
- [How to publish events that conform to .NET Guidelines](./how-to-publish-events-that-conform-to-net-framework-guidelines.md)
96+
- [How to publish events that conform to .NET Guidelines](/dotnet/standard/events)
9797
- [- and -= operators](../../language-reference/operators/subtraction-operator.md)
9898
- [+ and += operators](../../language-reference/operators/addition-operator.md)

docs/csharp/programming-guide/events/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In a typical C# Windows Forms or Web application, you subscribe to events raised
3636

3737
- [How to subscribe to and unsubscribe from events](./how-to-subscribe-to-and-unsubscribe-from-events.md)
3838

39-
- [How to publish events that conform to .NET Guidelines](./how-to-publish-events-that-conform-to-net-framework-guidelines.md)
39+
- [How to publish events that conform to .NET Guidelines](/dotnet/standard/events)
4040

4141
- [How to raise base class events in derived classes](./how-to-raise-base-class-events-in-derived-classes.md)
4242

docs/standard/serialization/binaryformatter-migration-guide/functionality-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In most common scenario, the type is annotated with `[Serializable]` and the ser
2424

2525
### C# auto properties
2626

27-
For C# [auto-implemented properties](/dotnet/csharp/programming-guide/classes-and-structs/auto-implemented-properties) (`{ get; set; }`), BinaryFormatter will serialize the backing fields that are generated by the C# compiler, not the properties. The names of those serialized backing fields contain illegal C# characters and cannot be controlled. A C# decompiler (such as [https://sharplab.io/](https://sharplab.io/) or [ILSpy](https://github.com/icsharpcode/ILSpy)) can demonstrate how C# auto properties are presented to the runtime.
27+
For C# [auto-implemented properties](../../../csharp/programming-guide/classes-and-structs/auto-implemented-properties.md) (`{ get; set; }`), BinaryFormatter will serialize the backing fields that are generated by the C# compiler, not the properties. The names of those serialized backing fields contain illegal C# characters and cannot be controlled. A C# decompiler (such as [https://sharplab.io/](https://sharplab.io/) or [ILSpy](https://github.com/icsharpcode/ILSpy)) can demonstrate how C# auto properties are presented to the runtime.
2828

2929
```csharp
3030
[Serializable]

docs/standard/serialization/binaryformatter-migration-guide/winforms-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ helpviewer_keywords:
1313

1414
## BinaryFormatter removal
1515

16-
Starting with .NET 9, [BinaryFormatter] is no longer supported due to its known [security risks](/dotnet/standard/serialization/binaryformatter-security-guide) and its APIs always throw a <xref:System.PlatformNotSupportedException> for all project types, including Windows Forms apps. For more information about the risks BinaryFormatter poses and the reason for its removal, see the [BinaryFormatter migration guide](index.md).
16+
Starting with .NET 9, [BinaryFormatter] is no longer supported due to its known [security risks](../binaryformatter-security-guide.md) and its APIs always throw a <xref:System.PlatformNotSupportedException> for all project types, including Windows Forms apps. For more information about the risks BinaryFormatter poses and the reason for its removal, see the [BinaryFormatter migration guide](index.md).
1717

1818
With BinaryFormatter's removal, it's expected that many Windows Forms applications will be impacted, and you'll need to take action to complete your migration to .NET 9 or a later version.
1919

@@ -91,7 +91,7 @@ For types that aren't intrinsically handled during serialization into resources,
9191
.NET 9 users who can't migrate away from [BinaryFormatter] can install an unsupported compatibility package. For more information, see [BinaryFormatter migration guide: Compatibility Package](compatibility-package.md).
9292

9393
> [!CAUTION]
94-
> BinaryFormatter is dangerous and not recommended as it puts consuming apps at risk for attacks such as denial of service (DoS), information disclosure, or remote code execution. For more information about the risks [BinaryFormatter] poses, see [Deserialization risks in use of BinaryFormatter and related types](/dotnet/standard/serialization/binaryformatter-security-guide).
94+
> BinaryFormatter is dangerous and not recommended as it puts consuming apps at risk for attacks such as denial of service (DoS), information disclosure, or remote code execution. For more information about the risks [BinaryFormatter] poses, see [Deserialization risks in use of BinaryFormatter and related types](../binaryformatter-security-guide.md).
9595
9696
## Issues
9797

docs/standard/serialization/binaryformatter-migration-guide/wpf-applications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ helpviewer_keywords:
1212

1313
## BinaryFormatter removal
1414

15-
Starting with .NET 9, [BinaryFormatter] is no longer supported due to its known [security risks](/dotnet/standard/serialization/binaryformatter-security-guide) and its APIs always throw a <xref:System.PlatformNotSupportedException> for all project types, including WPF apps. For more information about the risks [BinaryFormatter] poses and the reason for its removal, see the [BinaryFormatter migration guide](index.md).
15+
Starting with .NET 9, [BinaryFormatter] is no longer supported due to its known [security risks](../binaryformatter-security-guide.md) and its APIs always throw a <xref:System.PlatformNotSupportedException> for all project types, including WPF apps. For more information about the risks [BinaryFormatter] poses and the reason for its removal, see the [BinaryFormatter migration guide](index.md).
1616

1717
With [BinaryFormatter]’s removal, it's expected that many WPF applications will be impacted, and you'll need to take action to complete your migration to .NET 9 or a later version.
1818

@@ -64,7 +64,7 @@ Ref: [DataStream.cs](https://github.com/dotnet/wpf/blob/4e977f5fe8c73094ee5826db
6464
.NET 9 users who can't migrate away from [BinaryFormatter] can install an unsupported compatibility package. For more information, see [BinaryFormatter migration guide: Compatibility Package](compatibility-package.md).
6565

6666
> [!CAUTION]
67-
> [BinaryFormatter] is dangerous and not recommended as it puts consuming apps at risk for attacks such as denial of service (DoS), information disclosure, or remote code execution. For more information about the risks [BinaryFormatter] poses, see [Deserialization risks in use of BinaryFormatter and related types](/dotnet/standard/serialization/binaryformatter-security-guide).
67+
> [BinaryFormatter] is dangerous and not recommended as it puts consuming apps at risk for attacks such as denial of service (DoS), information disclosure, or remote code execution. For more information about the risks [BinaryFormatter] poses, see [Deserialization risks in use of BinaryFormatter and related types](../binaryformatter-security-guide.md).
6868
6969
### Issues
7070

0 commit comments

Comments
 (0)