Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
1d1c241
Bump actions/stale from 10.0.0 to 10.1.0 (#48973)
dependabot[bot] Oct 8, 2025
4c91d87
Bump the dotnet group with 1 update (#48977)
dependabot[bot] Oct 8, 2025
f1fd822
Bump github/codeql-action from 3.30.5 to 4.30.7 (#48972)
dependabot[bot] Oct 8, 2025
b93d29e
Bump the dotnet group with 1 update (#48983)
dependabot[bot] Oct 8, 2025
6bbbf70
Bump the dotnet group with 3 updates (#48989)
dependabot[bot] Oct 8, 2025
9616e52
Bump the dotnet group with 2 updates (#48996)
dependabot[bot] Oct 8, 2025
6b00923
Bump the dotnet group with 2 updates (#48994)
dependabot[bot] Oct 8, 2025
7048272
Bump the dotnet group with 4 updates (#48990)
dependabot[bot] Oct 8, 2025
75363f0
Bump the dotnet group with 2 updates (#48992)
dependabot[bot] Oct 8, 2025
5d832cd
Bump the dotnet group with 3 updates (#48999)
dependabot[bot] Oct 8, 2025
aed5db4
Bump the dotnet group with 3 updates (#49002)
dependabot[bot] Oct 8, 2025
bfc23a5
Bump the dotnet group with 2 updates (#49015)
dependabot[bot] Oct 8, 2025
d06ec0f
Bump the dotnet group with 2 updates (#49016)
dependabot[bot] Oct 8, 2025
e1d2bab
Bump the dotnet group with 2 updates (#49013)
dependabot[bot] Oct 8, 2025
259ae68
Bump the dotnet group with 2 updates (#49014)
dependabot[bot] Oct 8, 2025
d0493fa
Bump the dotnet group with 1 update (#49022)
dependabot[bot] Oct 8, 2025
3992246
Bump the dotnet group with 4 updates (#49025)
dependabot[bot] Oct 8, 2025
13b697e
Update package index with latest published versions (#48948)
azure-sdk Oct 8, 2025
5110fc7
Fix the issues with `CS0163` page (#48950)
BartoszKlonowski Oct 8, 2025
cb1cfee
Update MSTest analyzer documentation for 4.0.0 (#48969)
Youssef1313 Oct 8, 2025
5735e76
Modify using statement (#48970)
bigboybamo Oct 8, 2025
9945432
Fix incorrect statement about generic interface inheritance requiring…
Copilot Oct 8, 2025
c9a8e03
Clarify what constitutes a type conflict in CS0436 compiler warning d…
Copilot Oct 8, 2025
200895f
Add new compiler errors for `#:` and consolidate all existing preproc…
BillWagner Oct 8, 2025
4395a51
Remove --no-cache (#49029)
nkolev92 Oct 8, 2025
aad61d1
Update dependency-injection-usage.md (#47997)
fcdeveloper00 Oct 8, 2025
f2ee1e8
Add explanation of tuple deconstruction syntax in F# Tour (#48890)
Copilot Oct 8, 2025
3fe0ff4
Remove misleading statement about background threads in F# async expr…
Copilot Oct 8, 2025
02e5e10
Document applicative computation expressions with `and!` keyword (#48…
Copilot Oct 8, 2025
b7cc71c
Add note about unparsed markup in XML documentation comments without …
Copilot Oct 8, 2025
d0b5f56
Add introduction to arrow syntax in for...in expression documentation…
Copilot Oct 8, 2025
1d6c295
Update package index with latest published versions (#49027)
azure-sdk Oct 8, 2025
d416a0e
Add code example for CA1700 rule (#48932) (#48933)
kurnakovv Oct 8, 2025
faf1b37
Add example for CA1005 rule (#48911) (#48912)
kurnakovv Oct 8, 2025
248031f
Fix braces for code example in CA1864 rule (#48937)
kurnakovv Oct 8, 2025
a10afd9
Fix spacing for example in CA3077 rule (#48938)
kurnakovv Oct 8, 2025
fef9c82
Fix formatting for CA5358 code examples (#48939)
kurnakovv Oct 8, 2025
994cc36
Fix formatting and add method signature for CA5372 rule (#48940)
kurnakovv Oct 8, 2025
905d0e3
Fix formatting for CA5391 rule (#48941)
kurnakovv Oct 9, 2025
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
23 changes: 23 additions & 0 deletions .github/prompts/error-consolidation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copilot prompts to consolidate error codes.

## Add a single existing file into the new consolidated article.

Add the contents of cs1027.md to the preprocessor-errors.md file, sort that file by 'source_path_from_root'. Add a redirection for cs1027.md to point to preprocessor-errors.md, add "cs1027: to the list of display names in the TOC for preprocessor-errors.md. Finally, delete cs1027.md

## Search for other related articles that may be missed.

Search all files in the docs/csharp/language-reference/compiler-messages and the docs/csharp/misc folder for any other errors and warnings that involve preprocessor tokens. Give me a list to review for possible additional consolidation.

## Final search in roslyn source

To make sure you've found all related errors, we'll check the source. Look in `CSharpResources.resx` for any elements where the `<value>` element is a message related to preprocessor tokens. The symbolic constant for that value is in the `name` attribute on the parent `data` element. Find that value in `ErrorCodes.cs`. It will map to the compiler error code, where the code is "CS" followed by the number as a four digit number. Build a list of any not already added to preprocessor-errors.md

## Build consolidated sections

Examine the highlighted section. Other H2s with similar themes should be combined in a similar format. The recommendations to fix the errors should point to language reference articles that explain the impacted syntax.

To do that, make a new H2 section for the theme. Remove all the H2s for the individual error codes that are part of that theme. Where applicable, the new H2 can include text or examples from the H2s you remove.

The list of errors at the top of the file should remain in numerical order, so it's easy for readers to scan. Each impacted error code should now have a link to the anchor tag for the new section. Repeat the list in the new section, but without the anchors, as shown in the highlighted text.

Start with CS1024 and other errors that indicate "Not a valid preprocessor directive"
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
uses: github/codeql-action/upload-sarif@e296a935590eb16afc0c0108289f68c87e2a89a5 # v3.29.5
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
egress-policy: audit

- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008
with:
start-date: '2022-03-01T00:00:00Z' # ISO 8601 or RFC 2822
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
88 changes: 88 additions & 0 deletions .openpublishing.redirection.csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs1683.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/assembly-references"
},
{
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs1691.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs0270.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/array-declaration-errors"
Expand Down Expand Up @@ -1834,6 +1838,70 @@
"source_path_from_root": "/docs/csharp/misc/cs1020.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/overload-resolution"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1024.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1025.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1027.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1028.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/language-reference/compiler-messages/cs1029.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1030.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1032.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1038.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1040.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1517.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1560.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1576.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1578.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1633.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1634.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1635.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1100.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/extension-declarations"
Expand Down Expand Up @@ -1994,10 +2062,30 @@
"source_path_from_root": "/docs/csharp/misc/cs1686.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/lambda-expression-errors#syntax-limitations-in-lambda-expressions"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1692.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1694.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1695.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1696.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1706.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/lambda-expression-errors#syntax-limitations-in-lambda-expressions"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1709.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/preprocessor-errors"
},
{
"source_path_from_root": "/docs/csharp/misc/cs1714.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/assembly-references"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@

<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
<PackageReference Include="Azure.Identity" Version="1.16.0" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.9.0" />
<PackageReference Include="Azure.Identity" Version="1.17.0" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.9.1" />
<PackageReference Include="Microsoft.Extensions.AI.Evaluation" Version="9.9.0" />
<PackageReference Include="Microsoft.Extensions.AI.Evaluation.Reporting" Version="9.9.0" />
<PackageReference Include="Microsoft.Extensions.AI.Evaluation.Safety" Version="9.5.0-preview.1.25265.7" />
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.5.0-preview.1.25265.7" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.9" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.9" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="MSTest" Version="3.10.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageReference Include="MSTest" Version="4.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="2.2.0-beta.5" />
<PackageReference Include="Azure.Identity" Version="1.16.0" />
<PackageReference Include="Microsoft.Extensions.AI" Version="9.9.0" />
<PackageReference Include="Azure.Identity" Version="1.17.0" />
<PackageReference Include="Microsoft.Extensions.AI" Version="9.9.1" />
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.4.3-preview.1.25230.7" />
<PackageReference Include="ModelContextProtocol" Version="0.1.0-preview.14" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.4.0-preview.1.25207.5" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.8" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.8" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.9" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.9" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="OllamaSharp" Version="5.3.6" />
<PackageReference Include="OllamaSharp" Version="5.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="10.0.0-rc.1.25451.107" />
<PackageReference Include="OllamaSharp" Version="5.4.4" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.12.0" />
<PackageReference Include="OllamaSharp" Version="5.4.7" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.13.0" />
<ProjectReference Include="..\AI.Shared\AI.Shared.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="10.0.0-rc.1.25451.107" />
<PackageReference Include="OllamaSharp" Version="5.4.6" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.12.0" />
<PackageReference Include="OllamaSharp" Version="5.4.7" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.13.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI" Version="9.9.0" />
<PackageReference Include="OllamaSharp" Version="5.4.2" />
<PackageReference Include="Microsoft.Extensions.AI" Version="9.9.1" />
<PackageReference Include="OllamaSharp" Version="5.4.7" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading