Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .openpublishing.redirection.csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs1009.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/string-literal"
},
{
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs1018.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#constructor-calls-with-base-and-this"
},
{
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs1019.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/overload-resolution"
Expand Down Expand Up @@ -2021,6 +2025,10 @@
"source_path_from_root": "/docs/csharp/misc/cs0515.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#static-constructors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs0132.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#static-constructors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs0516.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#constructor-calls-with-base-and-this"
Expand Down Expand Up @@ -2137,6 +2145,10 @@
"source_path_from_root": "/docs/csharp/misc/cs0568.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#constructors-in-struct-types"
},
{
"source_path_from_root": "/docs/csharp/misc/cs0573.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#constructors-in-struct-types"
},
{
"source_path_from_root": "/docs/csharp/misc/cs0570.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/constructor-errors#CS0570"
Expand Down

Large diffs are not rendered by default.

46 changes: 0 additions & 46 deletions docs/csharp/language-reference/compiler-messages/cs1018.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ That's be design. The text closely matches the text of the compiler error / warn
- **CS8929**: *Method cannot implement interface member in type because the target runtime doesn't support static abstract members in interfaces.*
- **CS8957**: *Conditional expression is not valid in language version because a common type was not found between types.*
- **CS8967**: *Newlines inside a non-verbatim interpolated string are not supported in C#*
- **CS9041**: *Requires compiler feature, which is not supported by this version of the C# compiler.*
- **CS9041**: *Requires compiler feature that is not supported by this version of the C# compiler.*
- **CS9014**: *Error: Use of possibly unassigned property. Upgrade to auto-default the property.*
- **CS9015**: *Error: Use of possibly unassigned field. Upgrade to auto-default the field.*
- **CS9016**: *Warning: Use of possibly unassigned property. Upgrade to auto-default the property.*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ These errors and warnings follow these themes:

- **CS9137**: *The 'interceptors' experimental feature is not enabled. Add `<Features>InterceptorsPreview</Features>` to your project.*

To use interceptors, add the `<Features>InterceptorsPreview</Features>` element to your project file within a `<PropertyGroup>` section (**CS9137**), because interceptors are an experimental feature that isn't enabled by default. This explicit opt-in is required because interceptors are subject to breaking changes or removal in future releases, and the compiler needs confirmation that you understand the risks before allowing their use. For more information about interceptors and their capabilities, see [Interceptors](../../whats-new/csharp-12.md#interceptors) in the C# 12 features documentation.
To use interceptors, add the `<Features>InterceptorsPreview</Features>` element to your project file within a `<PropertyGroup>` section (**CS9137**), because interceptors are an experimental feature that isn't enabled by default. This explicit opt-in is required because the interceptors feature is subject to breaking changes or removal in future releases, and the compiler needs confirmation that you understand the risks before allowing its use. For more information about interceptors and their capabilities, see [Interceptors](../../whats-new/csharp-12.md#interceptors) in the C# 12 features documentation.

## Signature mismatch

Expand Down Expand Up @@ -229,5 +229,5 @@ The following warnings indicate issues with analyzer or source generator assembl

These warnings occur when there are compatibility issues with analyzer assemblies:

- **CS9057** is generated when an analyzer assembly references a version of the Roslyn compiler that is newer than the one currently running. This prevents the analyzer from loading because it may depend on APIs or behaviors not available in the current compiler version. To resolve this, either upgrade your compiler/SDK to match the analyzer's requirements or use a version of the analyzer compatible with your current compiler version.
- **CS9067** warns when the same analyzer assembly is referenced multiple times in your project. This typically happens when an analyzer is included through multiple paths or package references. While not an error, duplicate references can impact build performance and may cause unexpected behavior. Remove the duplicate references to resolve this warning.
- **CS9057** is generated when an analyzer assembly references a version of the Roslyn compiler that is newer than the one currently running. This prevents the analyzer from loading because it might depend on APIs or behaviors not available in the current compiler version. To resolve this, either upgrade your compiler/SDK to match the analyzer's requirements or use a version of the analyzer compatible with your current compiler version.
- **CS9067** warns when the same analyzer assembly is referenced multiple times in your project. This typically happens when an analyzer is included through multiple paths or package references. While not an error, duplicate references can impact build performance and might cause unexpected behavior. Remove the duplicate references to resolve this warning.
16 changes: 5 additions & 11 deletions docs/csharp/language-reference/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,11 @@ items:
href: ./compiler-messages/constructor-errors.md
displayName: >
Primary constructors,
CS0514, CS0515, CS0516, CS0517, CS0522, CS0526, CS0568, CS0710, CS0768, CS0824,
CS8054, CS8091, CS8358, CS8862, CS8867, CS8868, CS8878, CS8910, CS8958, CS8982,
CS8983, CS9105, CS9106, CS9107, CS9108, CS9109, CS9110, CS9111, CS9112, CS9113,
CS9114, CS9115, CS9116, CS9117, CS9118, CS9119, CS9120, CS9121, CS9122, CS9124,
CS9136, CS9179
CS0132, CS0514, CS0515, CS0516, CS0517, CS0522, CS0526, CS0568, CS0573, CS0710,
CS0768, CS0824, CS1018, CS8054, CS8091, CS8358, CS8862, CS8867, CS8868, CS8878,
CS8910, CS8958, CS8982, CS8983, CS9018, CS9019, CS9020, CS9021, CS9022, CS9105,
CS9106, CS9107, CS9108, CS9109, CS9110, CS9111, CS9112, CS9113, CS9114, CS9115,
CS9116, CS9117, CS9118, CS9119, CS9120, CS9121, CS9122, CS9124, CS9136, CS9179
- name: Property declarations
href: ./compiler-messages/property-declaration-errors.md
displayName: >
Expand Down Expand Up @@ -843,8 +843,6 @@ items:
href: ../misc/cs0128.md
- name: CS0131
href: ../misc/cs0131.md
- name: CS0132
href: ../misc/cs0132.md
- name: CS0133
href: ../misc/cs0133.md
- name: CS0134
Expand Down Expand Up @@ -1131,8 +1129,6 @@ items:
href: ./compiler-messages/property-declaration-errors.md
- name: CS0572
href: ../misc/cs0572.md
- name: CS0573
href: ../misc/cs0573.md
- name: CS0574
href: ../misc/cs0574.md
- name: CS0575
Expand Down Expand Up @@ -1345,8 +1341,6 @@ items:
href: ../misc/cs1015.md
- name: CS1017
href: ../misc/cs1017.md
- name: CS1018
href: ./compiler-messages/cs1018.md
- name: CS1021
href: ../misc/cs1021.md
- name: CS1022
Expand Down
37 changes: 0 additions & 37 deletions docs/csharp/misc/cs0132.md

This file was deleted.

43 changes: 0 additions & 43 deletions docs/csharp/misc/cs0573.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,6 @@ f1_keywords:
- "CS8989"
- "CS9011"
- "CS9012"
- "CS9018"
- "CS9019"
- "CS9020"
- "CS9021"
- "CS9022"
- "CS9044"
- "CS9046"
- "CS9064"
Expand Down
Loading