diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index d762c9fada3f6..29f590ef1b7f3 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -43,19 +43,42 @@ updates:
nuget:
patterns: ["*"]
group-by: dependency-name
- # NuGet updates for IoT, Machine Learning, Orleans,
- # Standard, and Visual Basic snippets.
+ # NuGet updates for IoT, Machine Learning, Standard, and Visual Basic snippets.
- package-ecosystem: "nuget"
directories:
- "docs/iot/**/snippets/**/*"
- "docs/machine-learning/**/snippets/**/*"
- - "docs/orleans/**/snippets/**/*"
- - "docs/orleans/**/snippets-v3/**/*"
- "docs/standard/**/snippets/**/*"
- "docs/visual-basic/**/snippets/**/*"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
+ cooldown:
+ default-days: 7
+ groups:
+ nuget:
+ patterns: ["*"]
+ group-by: dependency-name
+ # NuGet updates for non-V3 Orleans snippets.
+ - package-ecosystem: "nuget"
+ directories:
+ - "docs/orleans/**/snippets/**/*"
+ schedule:
+ interval: "weekly"
+ open-pull-requests-limit: 5
+ cooldown:
+ default-days: 7
+ groups:
+ nuget:
+ patterns: ["*"]
+ group-by: dependency-name
+ # NuGet updates for Orleans V3 snippets.
+ - package-ecosystem: "nuget"
+ directories:
+ - "docs/orleans/**/snippets-v3/**/*"
+ schedule:
+ interval: "weekly"
+ open-pull-requests-limit: 5
cooldown:
default-days: 7
groups:
diff --git a/.github/workflows/do-not-merge-label-check.yml b/.github/workflows/do-not-merge-label-check.yml
index 220ca3a37bcd4..b6274d433932a 100644
--- a/.github/workflows/do-not-merge-label-check.yml
+++ b/.github/workflows/do-not-merge-label-check.yml
@@ -28,7 +28,7 @@ jobs:
- name: 'Check "${{ matrix.label }}" label'
run: |
- echo "::notice::Merging permission is diabled for PRs when the '${{ matrix.label }}' label is applied."
+ echo "::notice::Merging permission is disabled for PRs when the '${{ matrix.label }}' label is applied."
if [ "${{ contains(github.event.pull_request.labels.*.name, matrix.label) }}" = "true" ]; then
echo "::error::Pull request is labeled as '${{ matrix.label }}'. Please remove the label before merging."
diff --git a/.github/workflows/markdownlint-problem-matcher.json b/.github/workflows/markdownlint-problem-matcher.json
deleted file mode 100644
index 712ff4a99231d..0000000000000
--- a/.github/workflows/markdownlint-problem-matcher.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "problemMatcher": [
- {
- "owner": "markdownlint",
- "pattern": [
- {
- "regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$",
- "file": 1,
- "line": 2,
- "column": 3,
- "code": 4,
- "message": 5
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml
index 4f54fcdf8d5ce..e92421e20c696 100644
--- a/.github/workflows/markdownlint.yml
+++ b/.github/workflows/markdownlint.yml
@@ -8,7 +8,6 @@ on:
- "**/*.md"
- ".markdownlint-cli2.jsonc"
- ".github/workflows/markdownlint.yml"
- - ".github/workflows/markdownlint-problem-matcher.json"
pull_request:
permissions:
diff --git a/.openpublishing.redirection.csharp.json b/.openpublishing.redirection.csharp.json
index 6723d630b6f08..8796e427efd30 100644
--- a/.openpublishing.redirection.csharp.json
+++ b/.openpublishing.redirection.csharp.json
@@ -1856,6 +1856,10 @@
"source_path_from_root": "/docs/csharp/misc/cs0081.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/generic-type-parameters-errors"
},
+ {
+ "source_path_from_root": "/docs/csharp/misc/cs0101.md",
+ "redirect_url": "/dotnet/csharp/language-reference/compiler-messages/using-directive-errors"
+ },
{
"source_path_from_root": "/docs/csharp/misc/cs0104.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/using-directive-errors#cs0104"
@@ -2916,6 +2920,10 @@
"source_path_from_root": "/docs/csharp/misc/cs1526.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/new-object-creation-errors"
},
+ {
+ "source_path_from_root": "/docs/csharp/misc/cs1527.md",
+ "redirect_url": "/dotnet/csharp/language-reference/compiler-messages/using-directive-errors"
+ },
{
"source_path_from_root": "/docs/csharp/misc/cs1529.md",
"redirect_url": "/dotnet/csharp/language-reference/compiler-messages/using-directive-errors"
diff --git a/docs/azure/includes/dotnet-all.md b/docs/azure/includes/dotnet-all.md
index 1c5281de4453a..02089020fc4c4 100644
--- a/docs/azure/includes/dotnet-all.md
+++ b/docs/azure/includes/dotnet-all.md
@@ -6,10 +6,10 @@
| AI Agent Server - Invocations | NuGet [1.0.0-beta.7](https://www.nuget.org/packages/Azure.AI.AgentServer.Invocations/1.0.0-beta.7) | [docs](/dotnet/api/overview/azure/AI.AgentServer.Invocations-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.7](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.AgentServer.Invocations_1.0.0-beta.7/sdk/agentserver/Azure.AI.AgentServer.Invocations/) |
| AI Agent Server - Responses | NuGet [1.0.0-beta.8](https://www.nuget.org/packages/Azure.AI.AgentServer.Responses/1.0.0-beta.8) | [docs](/dotnet/api/overview/azure/AI.AgentServer.Responses-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.8](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.AgentServer.Responses_1.0.0-beta.8/sdk/agentserver/Azure.AI.AgentServer.Responses/) |
| AI Agents Persistent | NuGet [1.1.0](https://www.nuget.org/packages/Azure.AI.Agents.Persistent/1.1.0) NuGet [1.2.0-beta.10](https://www.nuget.org/packages/Azure.AI.Agents.Persistent/1.2.0-beta.10) | [docs](/dotnet/api/overview/azure/AI.Agents.Persistent-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Agents.Persistent_1.1.0/sdk/ai/Azure.AI.Agents.Persistent/) GitHub [1.2.0-beta.10](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Agents.Persistent_1.2.0-beta.10/sdk/ai/Azure.AI.Agents.Persistent/) |
-| AI Extensions - OpenAI | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/2.0.0) NuGet [3.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/3.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Extensions.OpenAI-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_2.0.0/sdk/ai/Azure.AI.Extensions.OpenAI/) GitHub [3.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_3.0.0-beta.2/sdk/ai/Azure.AI.Extensions.OpenAI/) |
-| AI Foundry | NuGet [2.0.1](https://www.nuget.org/packages/Azure.AI.Projects/2.0.1) NuGet [3.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Projects/3.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Projects-readme) | GitHub [2.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_2.0.1/sdk/ai/Azure.AI.Projects/) GitHub [3.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_3.0.0-beta.2/sdk/ai/Azure.AI.Projects/) |
+| AI Extensions - OpenAI | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/2.0.0) NuGet [3.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/3.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.Extensions.OpenAI-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_2.0.0/sdk/ai/Azure.AI.Extensions.OpenAI/) GitHub [3.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_3.0.0-beta.3/sdk/ai/Azure.AI.Extensions.OpenAI/) |
+| AI Foundry | NuGet [2.0.1](https://www.nuget.org/packages/Azure.AI.Projects/2.0.1) NuGet [3.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.Projects/3.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.Projects-readme) | GitHub [2.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_2.0.1/sdk/ai/Azure.AI.Projects/) GitHub [3.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_3.0.0-beta.3/sdk/ai/Azure.AI.Projects/) |
| AI Model Inference | NuGet [1.0.0-beta.5](https://www.nuget.org/packages/Azure.AI.Inference/1.0.0-beta.5) | [docs](/dotnet/api/overview/azure/AI.Inference-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.5](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Inference_1.0.0-beta.5/sdk/ai/Azure.AI.Inference/) |
-| AI Projects - Agents | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Projects.Agents/2.0.0) NuGet [3.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Projects.Agents/3.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Projects.Agents-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_2.0.0/sdk/ai/Azure.AI.Projects.Agents/) GitHub [3.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_3.0.0-beta.2/sdk/ai/Azure.AI.Projects.Agents/) |
+| AI Projects - Agents | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Projects.Agents/2.0.0) NuGet [3.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.Projects.Agents/3.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.Projects.Agents-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_2.0.0/sdk/ai/Azure.AI.Projects.Agents/) GitHub [3.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_3.0.0-beta.3/sdk/ai/Azure.AI.Projects.Agents/) |
| AI Projects - OpenAI | NuGet [2.0.0-beta.1](https://www.nuget.org/packages/Azure.AI.Projects.OpenAI/2.0.0-beta.1) | [docs](/dotnet/api/overview/azure/AI.Projects.OpenAI-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [2.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.OpenAI_2.0.0-beta.1/sdk/ai/Azure.AI.Projects.OpenAI/) |
| Anomaly Detector | NuGet [3.0.0-preview.7](https://www.nuget.org/packages/Azure.AI.AnomalyDetector/3.0.0-preview.7) | [docs](/dotnet/api/overview/azure/AI.AnomalyDetector-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [3.0.0-preview.7](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.AnomalyDetector_3.0.0-preview.7/sdk/anomalydetector/Azure.AI.AnomalyDetector/) |
| App Configuration | NuGet [1.11.1](https://www.nuget.org/packages/Azure.Data.AppConfiguration/1.11.1) NuGet [1.12.0-beta.1](https://www.nuget.org/packages/Azure.Data.AppConfiguration/1.12.0-beta.1) | [docs](/dotnet/api/overview/azure/Data.AppConfiguration-readme) | GitHub [1.11.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Data.AppConfiguration_1.11.1/sdk/appconfiguration/Azure.Data.AppConfiguration/) GitHub [1.12.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Data.AppConfiguration_1.12.0-beta.1/sdk/appconfiguration/Azure.Data.AppConfiguration/) |
@@ -468,13 +468,13 @@
| App Configuration Provider | NuGet [8.6.0](https://www.nuget.org/packages/Microsoft.Azure.AppConfiguration.AspNetCore/8.6.0) NuGet [8.7.0-preview](https://www.nuget.org/packages/Microsoft.Azure.AppConfiguration.AspNetCore/8.7.0-preview) | | |
| Azure Functions CLI | NuGet [5.0.0-preview.1](https://www.nuget.org/packages/Azure.Functions.Cli.Abstractions/5.0.0-preview.1) | | |
| Azure Functions SDK | NuGet [1.0.1](https://www.nuget.org/packages/Azure.Functions.Sdk/1.0.1) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp/3.0.0-beta.45) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.linux-arm64/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp.linux-arm64/3.0.0-beta.45) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.linux-x64/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp.linux-x64/3.0.0-beta.45) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.osx-arm64/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp.osx-arm64/3.0.0-beta.45) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.osx-x64/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp.osx-x64/3.0.0-beta.45) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.win-arm64/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp.win-arm64/3.0.0-beta.45) | | |
-| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.win-x64/1.0.0) NuGet [3.0.0-beta.45](https://www.nuget.org/packages/Azure.Mcp.win-x64/3.0.0-beta.45) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp/3.0.0-beta.46) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.linux-arm64/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp.linux-arm64/3.0.0-beta.46) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.linux-x64/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp.linux-x64/3.0.0-beta.46) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.osx-arm64/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp.osx-arm64/3.0.0-beta.46) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.osx-x64/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp.osx-x64/3.0.0-beta.46) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.win-arm64/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp.win-arm64/3.0.0-beta.46) | | |
+| Azure MCP | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Mcp.win-x64/1.0.0) NuGet [3.0.0-beta.46](https://www.nuget.org/packages/Azure.Mcp.win-x64/3.0.0-beta.46) | | |
| Azure MCP Types Internal | NuGet [0.2.804](https://www.nuget.org/packages/Microsoft.Azure.Mcp.AzTypes.Internal.Compact/0.2.804) | | |
| Azure.Communication.Administration | NuGet [1.0.0-beta.3](https://www.nuget.org/packages/Azure.Communication.Administration/1.0.0-beta.3) | | |
| Caching - PostgreSQL | NuGet [1.2.2](https://www.nuget.org/packages/Microsoft.Extensions.Caching.Postgres/1.2.2) | | |
diff --git a/docs/azure/includes/dotnet-new.md b/docs/azure/includes/dotnet-new.md
index eed7f35cadcb3..938a6c390ed70 100644
--- a/docs/azure/includes/dotnet-new.md
+++ b/docs/azure/includes/dotnet-new.md
@@ -6,10 +6,10 @@
| AI Agent Server - Invocations | NuGet [1.0.0-beta.7](https://www.nuget.org/packages/Azure.AI.AgentServer.Invocations/1.0.0-beta.7) | [docs](/dotnet/api/overview/azure/AI.AgentServer.Invocations-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.7](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.AgentServer.Invocations_1.0.0-beta.7/sdk/agentserver/Azure.AI.AgentServer.Invocations/) |
| AI Agent Server - Responses | NuGet [1.0.0-beta.8](https://www.nuget.org/packages/Azure.AI.AgentServer.Responses/1.0.0-beta.8) | [docs](/dotnet/api/overview/azure/AI.AgentServer.Responses-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.8](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.AgentServer.Responses_1.0.0-beta.8/sdk/agentserver/Azure.AI.AgentServer.Responses/) |
| AI Agents Persistent | NuGet [1.1.0](https://www.nuget.org/packages/Azure.AI.Agents.Persistent/1.1.0) NuGet [1.2.0-beta.10](https://www.nuget.org/packages/Azure.AI.Agents.Persistent/1.2.0-beta.10) | [docs](/dotnet/api/overview/azure/AI.Agents.Persistent-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Agents.Persistent_1.1.0/sdk/ai/Azure.AI.Agents.Persistent/) GitHub [1.2.0-beta.10](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Agents.Persistent_1.2.0-beta.10/sdk/ai/Azure.AI.Agents.Persistent/) |
-| AI Extensions - OpenAI | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/2.0.0) NuGet [3.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/3.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Extensions.OpenAI-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_2.0.0/sdk/ai/Azure.AI.Extensions.OpenAI/) GitHub [3.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_3.0.0-beta.2/sdk/ai/Azure.AI.Extensions.OpenAI/) |
-| AI Foundry | NuGet [2.0.1](https://www.nuget.org/packages/Azure.AI.Projects/2.0.1) NuGet [3.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Projects/3.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Projects-readme) | GitHub [2.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_2.0.1/sdk/ai/Azure.AI.Projects/) GitHub [3.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_3.0.0-beta.2/sdk/ai/Azure.AI.Projects/) |
+| AI Extensions - OpenAI | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/2.0.0) NuGet [3.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.Extensions.OpenAI/3.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.Extensions.OpenAI-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_2.0.0/sdk/ai/Azure.AI.Extensions.OpenAI/) GitHub [3.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Extensions.OpenAI_3.0.0-beta.3/sdk/ai/Azure.AI.Extensions.OpenAI/) |
+| AI Foundry | NuGet [2.0.1](https://www.nuget.org/packages/Azure.AI.Projects/2.0.1) NuGet [3.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.Projects/3.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.Projects-readme) | GitHub [2.0.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_2.0.1/sdk/ai/Azure.AI.Projects/) GitHub [3.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects_3.0.0-beta.3/sdk/ai/Azure.AI.Projects/) |
| AI Model Inference | NuGet [1.0.0-beta.5](https://www.nuget.org/packages/Azure.AI.Inference/1.0.0-beta.5) | [docs](/dotnet/api/overview/azure/AI.Inference-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [1.0.0-beta.5](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Inference_1.0.0-beta.5/sdk/ai/Azure.AI.Inference/) |
-| AI Projects - Agents | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Projects.Agents/2.0.0) NuGet [3.0.0-beta.2](https://www.nuget.org/packages/Azure.AI.Projects.Agents/3.0.0-beta.2) | [docs](/dotnet/api/overview/azure/AI.Projects.Agents-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_2.0.0/sdk/ai/Azure.AI.Projects.Agents/) GitHub [3.0.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_3.0.0-beta.2/sdk/ai/Azure.AI.Projects.Agents/) |
+| AI Projects - Agents | NuGet [2.0.0](https://www.nuget.org/packages/Azure.AI.Projects.Agents/2.0.0) NuGet [3.0.0-beta.3](https://www.nuget.org/packages/Azure.AI.Projects.Agents/3.0.0-beta.3) | [docs](/dotnet/api/overview/azure/AI.Projects.Agents-readme) | GitHub [2.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_2.0.0/sdk/ai/Azure.AI.Projects.Agents/) GitHub [3.0.0-beta.3](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.Agents_3.0.0-beta.3/sdk/ai/Azure.AI.Projects.Agents/) |
| AI Projects - OpenAI | NuGet [2.0.0-beta.1](https://www.nuget.org/packages/Azure.AI.Projects.OpenAI/2.0.0-beta.1) | [docs](/dotnet/api/overview/azure/AI.Projects.OpenAI-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [2.0.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.Projects.OpenAI_2.0.0-beta.1/sdk/ai/Azure.AI.Projects.OpenAI/) |
| Anomaly Detector | NuGet [3.0.0-preview.7](https://www.nuget.org/packages/Azure.AI.AnomalyDetector/3.0.0-preview.7) | [docs](/dotnet/api/overview/azure/AI.AnomalyDetector-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [3.0.0-preview.7](https://github.com/Azure/azure-sdk-for-net/tree/Azure.AI.AnomalyDetector_3.0.0-preview.7/sdk/anomalydetector/Azure.AI.AnomalyDetector/) |
| App Configuration | NuGet [1.11.1](https://www.nuget.org/packages/Azure.Data.AppConfiguration/1.11.1) NuGet [1.12.0-beta.1](https://www.nuget.org/packages/Azure.Data.AppConfiguration/1.12.0-beta.1) | [docs](/dotnet/api/overview/azure/Data.AppConfiguration-readme) | GitHub [1.11.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Data.AppConfiguration_1.11.1/sdk/appconfiguration/Azure.Data.AppConfiguration/) GitHub [1.12.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Data.AppConfiguration_1.12.0-beta.1/sdk/appconfiguration/Azure.Data.AppConfiguration/) |
diff --git a/docs/core/diagnostics/snippets/resource-monitoring-with-manual-metrics/resource-monitoring-with-manual-metrics.csproj b/docs/core/diagnostics/snippets/resource-monitoring-with-manual-metrics/resource-monitoring-with-manual-metrics.csproj
index 8eb28eb212285..64ca9de1b347d 100644
--- a/docs/core/diagnostics/snippets/resource-monitoring-with-manual-metrics/resource-monitoring-with-manual-metrics.csproj
+++ b/docs/core/diagnostics/snippets/resource-monitoring-with-manual-metrics/resource-monitoring-with-manual-metrics.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/core/extensions/snippets/workers/background-service/App.WorkerService.csproj b/docs/core/extensions/snippets/workers/background-service/App.WorkerService.csproj
index a774213cefba1..0f6d6a523d246 100644
--- a/docs/core/extensions/snippets/workers/background-service/App.WorkerService.csproj
+++ b/docs/core/extensions/snippets/workers/background-service/App.WorkerService.csproj
@@ -10,6 +10,6 @@
-
+
diff --git a/docs/core/extensions/snippets/workers/cloud-service/App.CloudService.csproj b/docs/core/extensions/snippets/workers/cloud-service/App.CloudService.csproj
index 8ce215b76a7d0..27963bf6513b7 100644
--- a/docs/core/extensions/snippets/workers/cloud-service/App.CloudService.csproj
+++ b/docs/core/extensions/snippets/workers/cloud-service/App.CloudService.csproj
@@ -8,6 +8,6 @@
-
+
diff --git a/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs b/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs
index 370bf61f7d684..ccb2ca1a82310 100644
--- a/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs
+++ b/docs/csharp/asynchronous-programming/snippets/async-scenarios/Program.cs
@@ -123,7 +123,8 @@ private static async Task GetUserAsync(int userId)
// Given a user Id {userId}, retrieves a User object corresponding
// to the entry in the database with {userId} as its Id.
- return await Task.FromResult(new User() { id = userId });
+ await Task.Yield(); // Simulate asynchronous database retrieval
+ return new User() { id = userId };
}
private static async Task> GetUsersAsync(IEnumerable userIds)
diff --git a/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md b/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md
index 4c2d46801f144..6e820828272f0 100644
--- a/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md
+++ b/docs/csharp/language-reference/compiler-messages/array-declaration-errors.md
@@ -97,7 +97,7 @@ helpviewer_keywords:
- "CS9357"
- "CS9358"
- "CS9359"
-ms.date: 02/04/2026
+ms.date: 09/18/2026
ai-usage: ai-assisted
---
# Resolve errors and warnings in array and collection declarations and initialization expressions
@@ -105,7 +105,7 @@ ai-usage: ai-assisted
This article covers the following compiler errors:
- [**CS0022**](#invalid-array-element-access): *Wrong number of indices inside [], expected 'number'*
- [**CS0178**](#invalid-array-rank): *Invalid rank specifier: expected '`,`' or '`]`'*
@@ -141,14 +141,14 @@ That's by design. The text closely matches the text of the compiler error / warn
- [**CS9215**](#invalid-collection-initializer): *Collection expression type 'type' must have an instance or extension method 'Add' that can be called with a single argument.*
- [**CS9222**](#invalid-collection-initializer): *Collection initializer results in an infinite chain of instantiations of collection 'type'.*
- [**CS9332**](#invalid-collection-initializer): *Cannot use '..' spread operator in the filter expression of a catch clause.*
-- [**CS9354**](#invalid-collection-initializer): *'with(...)' element must be the first element*
-- [**CS9355**](#invalid-collection-initializer): *'with(...)' elements are not supported for type 'type'*
-- [**CS9356**](#invalid-collection-initializer): *'with(...)' element arguments cannot be dynamic*
-- [**CS9357**](#invalid-collection-initializer): *'with(...)' element for a read-only interface must be empty if present*
-- [**CS9358**](#invalid-collection-initializer): *Element type of this collection may not be a ref struct or a type parameter allowing ref structs*
-- [**CS9359**](#invalid-collection-initializer): *No overload for method 'method' takes 'number' 'with(...)' element arguments*
+- [**CS9354**](#invalid-collection-expression-arguments): *'with(...)' element must be the first element*
+- [**CS9355**](#invalid-collection-expression-arguments): *'with(...)' elements are not supported for type 'type'*
+- [**CS9356**](#invalid-collection-expression-arguments): *'with(...)' element arguments cannot be dynamic*
+- [**CS9357**](#invalid-collection-expression-arguments): *'with(...)' element for a read-only interface must be empty if present*
+- [**CS9358**](#invalid-collection-expression-element-type): *Element type of this collection may not be a ref struct or a type parameter allowing ref structs*
+- [**CS9359**](#invalid-collection-expression-arguments): *No overload for method 'method' takes number 'with(...)' element arguments*
-In addition, the following warnings are covered in this article:
+In addition, this article covers the following warnings:
- [**CS1062**](#invalid-collection-initializer): *The best overloaded Add method for the collection initializer element is obsolete.*
- [**CS1064**](#invalid-collection-initializer): *The best overloaded Add method for the collection initializer element is obsolete.*
@@ -189,12 +189,6 @@ To access array elements correctly, follow these indexing rules. For more inform
- **CS9215**: *Collection expression type 'type' must have an instance or extension method 'Add' that can be called with a single argument.*
- **CS9222**: *Collection initializer results in an infinite chain of instantiations of collection 'type'.*
- **CS9332**: *Cannot use '..' spread operator in the filter expression of a catch clause.*
-- **CS9354**: *'with(...)' element must be the first element*
-- **CS9355**: *'with(...)' elements are not supported for type 'type'*
-- **CS9356**: *'with(...)' element arguments cannot be dynamic*
-- **CS9357**: *'with(...)' element for a read-only interface must be empty if present*
-- **CS9358**: *Element type of this collection may not be a ref struct or a type parameter allowing ref structs*
-- **CS9359**: *No overload for method 'method' takes 'number' 'with(...)' element arguments*
The compiler might also generate the following warnings:
@@ -219,12 +213,28 @@ To create valid collection initializers, follow these rules. For more informatio
- Implement enumeration patterns (like `GetEnumerator`) for spread operator support (**CS9212**).
- Avoid circular dependencies in collection initialization (**CS9222**).
- Don't use the spread operator in catch clause filter expressions (**CS9332**).
-- Place the `with(...)` element first in collection expressions (**CS9354**).
-- Use `with(...)` elements only with types that support collection expression arguments (**CS9355**).
-- Don't use dynamic arguments in `with(...)` elements (**CS9356**).
-- Use empty `with()` for read-only interface types (**CS9357**).
-- Don't use ref struct types as element types in collections that don't support them (**CS9358**).
-- Match the number of `with(...)` arguments to available constructor overloads (**CS9359**).
+
+## Invalid collection expression arguments
+
+- **CS9354**: *'with(...)' element must be the first element*
+- **CS9355**: *'with(...)' elements are not supported for type 'type'*
+- **CS9356**: *'with(...)' element arguments cannot be dynamic*
+- **CS9357**: *'with(...)' element for a read-only interface must be empty if present*
+- **CS9359**: *No overload for method 'method' takes number 'with(...)' element arguments*
+
+For the supported targets and syntax, see [Collection expression arguments](../operators/collection-expressions.md#collection-expression-arguments).
+
+- **CS9354**: The `with(...)` element follows another collection element, or the expression contains more than one `with(...)` element. Move the single `with(...)` element to the first position.
+- **CS9355**: The target type doesn't support collection expression arguments, as with arrays and span types. Remove the `with(...)` element, or change the target to a type that supports collection expression arguments.
+- **CS9356**: An argument in the `with(...)` element has the compile-time type `dynamic`. Cast or convert each dynamic argument to the intended non-dynamic type.
+- **CS9357**: A read-only interface target supports only an empty `with()` element. Remove the arguments, remove the `with()` element, or use a target type that accepts those arguments.
+- **CS9359**: No accessible constructor, collection builder method, or supported interface signature accepts the supplied number of `with(...)` arguments. Match the arguments to an applicable constructor or interface signature. For a collection builder, match them to parameters before the final `ReadOnlySpan` parameter, or add a matching overload.
+
+## Invalid collection expression element type
+
+- **CS9358**: *Element type of this collection may not be a ref struct or a type parameter allowing ref structs*
+
+The collection target doesn't support a `ref struct` element type or a type parameter that allows ref-like types. Use a non-ref-like element type. For generic code, use a type parameter that doesn't allow ref-like types.
## Invalid array rank
@@ -276,7 +286,7 @@ The following example shows both mechanisms:
To use arrays with correct element types, follow these type restrictions. For more information, see [Implicitly typed local variables](../statements/declarations.md#implicitly-typed-local-variables) and [best common type](~/_csharpstandard/standard/expressions.md#126317-finding-the-best-common-type-of-a-set-of-expressions).
- Don't use restricted types like and as array element types (**CS0611**).
-- Don't use `static` classes as array element types because instances can't be created (**CS0719**).
+- Don't use `static` classes as array element types because you can't create instances (**CS0719**).
- Initialize implicitly typed arrays with a `new` expression (**CS0820**).
- Ensure all elements in an implicitly typed array initializer have a best common type (**CS0826**).
@@ -293,7 +303,7 @@ To ensure a best common type, use any of these techniques:
## Invalid array initializer
- **CS0623**: *Array initializers can only be used in a variable or field initializer. Try using a new expression instead.*
-- **CS0846**: *A nested array initializer is expected*
+- **CS0846**: *A nested array initializer is expected.*
- **CS1925**: *Cannot initialize object of type 'type' with a collection initializer.*
These errors indicate invalid array initializer syntax. For more information, see [Arrays](../builtin-types/arrays.md).
@@ -352,7 +362,7 @@ To create collection expressions with collection builder attributes correctly, f
- Avoid using collection expressions in expression trees (**CS9175**).
- Use the correct language version for collection expressions and related features (**CS9196**, **CS9197**, **CS9198**, **CS9199**, **CS9202**).
-## Common language specification warnings
+## Common Language Specification warnings
- **CS3007**: *Overloaded method 'method' differing only by unnamed array types is not CLS-compliant*
- **CS3016**: *Arrays as attribute arguments is not CLS-compliant*
@@ -362,6 +372,6 @@ To write CLS-compliant code with arrays, follow these guidelines. For more infor
- Don't create overloaded methods that differ only in array element types (**CS3007**).
- Don't use arrays as attribute arguments (**CS3016**).
-CS3007 occurs if you have an overloaded method that takes a jagged array and the only difference between the method signatures is the element type of the array. To avoid this error, consider using a rectangular array rather than a jagged array or, if CLS Compliance isn't needed, remove the attribute. For more information on CLS Compliance, see [Language independence and language-independent components](../../../standard/language-independence.md).
+CS3007 occurs if you have an overloaded method that takes a jagged array and the only difference between the method signatures is the element type of the array. To avoid this error, consider using a rectangular array rather than a jagged array or, if CLS compliance isn't needed, remove the attribute. For more information about CLS compliance, see [Language independence and language-independent components](../../../standard/language-independence.md).
-CS3016 indicates that not compliant with the Common Language Specification (CLS) to pass an array to an attribute. For more information on CLS compliance, see [Language independence and language-independent components](../../../standard/language-independence.md).
+CS3016 indicates that passing an array to an attribute isn't compliant with the Common Language Specification (CLS). For more information about CLS compliance, see [Language independence and language-independent components](../../../standard/language-independence.md).
diff --git a/docs/csharp/language-reference/compiler-messages/constructor-errors.md b/docs/csharp/language-reference/compiler-messages/constructor-errors.md
index c8d81f0a034b1..88d32cc2db0ed 100644
--- a/docs/csharp/language-reference/compiler-messages/constructor-errors.md
+++ b/docs/csharp/language-reference/compiler-messages/constructor-errors.md
@@ -18,8 +18,8 @@ f1_keywords:
- "CS1018" # ERR_ThisOrBaseExpected
- "CS8054" # ERR_EnumsCantContainDefaultConstructor
- "CS8091" # ERR_ExternHasConstructorInitializer
- - "CS8760" # ERR_ExternEventInitializer
- "CS8358" # ERR_AttributeCtorInParameter
+ - "CS8760" # ERR_ExternEventInitializer
- "CS8813" # ERR_ModuleInitializerMethodMustBeOrdinary
- "CS8814" # ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType
- "CS8815" # ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid
@@ -62,6 +62,7 @@ f1_keywords:
- "CS9124"
- "CS9136"
- "CS9179"
+ - "CS9343"
helpviewer_keywords:
- "CS0132"
- "CS0514"
@@ -122,14 +123,15 @@ helpviewer_keywords:
- "CS9124"
- "CS9136"
- "CS9179"
-ms.date: 05/19/2026
+ - "CS9343"
+ms.date: 09/17/2026
---
# Resolve errors and warnings for constructor declarations and module initializers
This article covers the following compiler errors:
- [**CS0132**](#static-constructors): *'constructor': a static constructor must be parameterless.*
- [**CS0514**](#static-constructors): *static constructor cannot have an explicit 'this' or 'base' constructor call.*
@@ -145,8 +147,8 @@ That's by design. The text closely matches the text of the compiler error / warn
- [**CS1018**](#constructor-calls-with-base-and-this): *Keyword 'this' or 'base' expected.*
- [**CS8054**](#constructor-declaration): *Enums cannot contain explicit parameterless constructors.*
- [**CS8091**](#constructor-declaration): *cannot be extern and have a constructor initializer.*
-- [**CS8760**](#constructor-declaration): *'event': extern event cannot have initializer.*
- [**CS8358**](#constructor-declaration): *Cannot use attribute constructor because it has 'in' or 'ref readonly' parameters.*
+- [**CS8760**](#constructor-declaration): *'event': extern event cannot have initializer.*
- [**CS8813**](#module-initializer-declarations): *A module initializer must be an ordinary member method*
- [**CS8814**](#module-initializer-declarations): *Module initializer method 'method' must be accessible at the module level*
- [**CS8815**](#module-initializer-declarations): *Module initializer method 'method' must be static, and non-virtual, must have no parameters, and must return 'void'*
@@ -180,8 +182,9 @@ That's by design. The text closely matches the text of the compiler error / warn
- [**CS9121**](#primary-constructor-declaration): *Struct primary constructor parameter of type causes a cycle in the struct layout.*
- [**CS9122**](#primary-constructor-declaration): *Unexpected parameter list.*
- [**CS9136**](#primary-constructor-declaration): *Cannot use primary constructor parameter of type inside an instance member.*
+- [**CS9343**](#primary-constructor-declaration): *Cannot pass arguments to the base type without a parameter list on the type declaration.*
-In addition, the following warnings are covered in this article:
+In addition, this article covers the following warnings:
- [**CS0824**](#constructor-declaration): *Constructor 'name' is marked external.*
- [**CS9107**](#primary-constructor-declaration): *Parameter is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.*
@@ -325,13 +328,15 @@ For more information, see
+- [**CS0101**](#namespace-and-type-naming-conflicts): *Error: The namespace 'namespace' already contains a definition for 'identifier'*
- [**CS0104**](#namespace-and-type-naming-conflicts): *Error: 'reference' is an ambiguous reference between 'identifier' and 'identifier'.*
-- [**CS0116**](#namespace-declarations): *Error: A namespace cannot directly contain members such as fields, methods or statements.*
+- [**CS0116**](#compilation-unit-and-namespace-declarations): *Error: A namespace cannot directly contain members such as fields, methods or statements.*
- [**CS0138**](#using-static-directive): *Error: A using namespace directive can only be applied to namespaces; 'type' is a type not a namespace.*
- [**CS0430**](#using-directive): *Error: The extern alias 'alias' was not specified in a /reference option.*
- [**CS0431**](#alias-qualifier): *Error: Cannot use alias 'identifier' with `::` since the alias references a type. Use `.` instead*.
@@ -114,10 +124,11 @@ That's by design. The text closely matches the text of the compiler error or war
- [**CS0518**](#predefined-type-imports): *Error: Predefined type 'type' is not defined or imported.*
- [**CS0576**](#using-alias-restrictions): *Error: Namespace 'namespace' contains a definition conflicting with alias 'identifier'.*
- [**CS0687**](#alias-qualifier): *Error: The namespace alias qualifier `::` always resolves to a type or namespace so is illegal here. Consider using `.` instead.*
-- [**CS1022**](#namespace-declarations): *Error: Type or namespace definition, or end-of-file expected.*
+- [**CS1022**](#compilation-unit-and-namespace-declarations): *Error: Type or namespace definition, or end-of-file expected.*
+- [**CS1527**](#compilation-unit-and-namespace-declarations): *Error: Elements defined in a namespace cannot be explicitly declared as private, protected, protected internal, or private protected*
- [**CS1529**](#using-directive): *Error: A using clause must precede all other elements defined in the namespace except extern alias declarations.*
- [**CS1537**](#using-alias-restrictions): *Error: The using alias 'alias' appeared previously in this namespace.*
-- [**CS1671**](#namespace-declarations): *Error: A namespace declaration cannot have modifiers or attributes.*
+- [**CS1671**](#compilation-unit-and-namespace-declarations): *Error: A namespace declaration cannot have modifiers or attributes.*
- [**CS1679**](#using-directive): *Error: Invalid extern alias for '/reference'; 'identifier' is not a valid identifier.*
- [**CS1680**](#using-directive): *Error: Invalid reference alias option: 'alias=' -- missing filename.*
- [**CS1681**](#using-directive): *Error: You cannot redefine the global extern alias.*
@@ -126,7 +137,8 @@ That's by design. The text closely matches the text of the compiler error or war
- [**CS7000**](#alias-qualifier): *Error: Unexpected use of an aliased name.*
- [**CS7007**](#using-static-directive): *Error: A `using static` directive can only be applied to types. Consider a `using namespace` directive instead.*
- [**CS7015**](#using-directive): *Error: 'extern alias' is not valid in this context.*
-- [**CS7021**](#namespace-declarations): *Error: Cannot declare namespace in script code.*
+- [**CS7016**](#using-alias-restrictions): *Error: Alias 'alias' conflicts with symbol-kind definition*
+- [**CS7021**](#compilation-unit-and-namespace-declarations): *Error: Cannot declare namespace in script code.*
- [**CS8083**](#alias-qualifier): *Error: An alias-qualified name is not an expression.*
- [**CS8085**](#using-alias-restrictions): *Error: A 'using static' directive cannot be used to declare an alias.*
- [**CS8914**](#global-using-directive): *Error: A global using directive cannot be used in a namespace declaration.*
@@ -139,6 +151,7 @@ That's by design. The text closely matches the text of the compiler error or war
- [**CS9132**](#using-alias-restrictions): *Error: Using alias cannot be a nullable reference type.*
- [**CS9133**](#using-static-directive): *Error: `static` modifier must precede `unsafe` modifier.*
- [**CS9162**](#using-static-directive): *Type is not valid for 'using static'. Only a class, struct, interface, enum, delegate, or namespace can be used.*
+- [**CS9348**](#compilation-unit-and-namespace-declarations): *A compilation unit cannot directly contain members such as fields, methods or properties*
And the following compiler warnings:
@@ -151,7 +164,7 @@ And the following compiler warnings:
- [**CS8020**](#using-directive): *Info: Unused extern alias.*
- [**CS8933**](#using-directive): *Info: The using directive appeared previously as global using.*
-These errors and warnings indicate problems with `using` directives, namespace declarations, or naming conflicts between types and namespaces. The following sections describe these errors and how to correct them.
+These errors and warnings indicate problems with `using` directives, declarations in compilation units and namespaces, or naming conflicts between types and namespaces. The following sections describe these errors and how to correct them.
## Using directive
@@ -209,7 +222,7 @@ See the [global using directive](../keywords/using-directive.md#the-global-modif
- Move `global using` directives outside of any namespace declaration to file scope, because global usings apply project-wide and can't be scoped to a namespace (**CS8914**).
- Place all `global using` directives before any non-global `using` directives in the file, because the language requires global directives to precede local ones (**CS8915**).
-- Note that a `static global using` directive can't reference a [file-local](../keywords/file.md) type.
+- A `static global using` directive can't reference a [file-local](../keywords/file.md) type.
## File-scoped namespace
@@ -249,6 +262,7 @@ The following errors relate to restrictions on using aliases:
- **CS0576**: *Namespace 'namespace' contains a definition conflicting with alias 'identifier'.*
- **CS1537**: *The using alias 'alias' appeared previously in this namespace.*
+- **CS7016**: *Alias 'alias' conflicts with symbol-kind definition*
- **CS8085**: *A 'using static' directive cannot be used to declare an alias.*
- **CS9130**: *Using alias cannot be a `ref` type.*
- **CS9131**: *Only a using alias can be `unsafe`.*
@@ -258,6 +272,7 @@ See the [using alias](../keywords/using-directive.md#the-using-alias) language r
- Choose a unique name for your alias that doesn't conflict with existing type or namespace names in scope, because the compiler can't distinguish between the alias and the existing definition (**CS0576**).
- Use each alias name only once within a namespace, because duplicate alias declarations create ambiguity (**CS1537**).
+- In script or submission code, rename the using alias or the conflicting submission member so their names are unique (**CS7016**). The diagnostic identifies the member kind, such as `field` or `type`.
- Remove the `static` modifier when declaring an alias, because aliases and static imports are mutually exclusive - use either `using static` to import members or `using Alias =` to create an alias, but not both together (**CS8085**).
Starting with C# 12, the following restrictions apply to using aliases:
@@ -266,19 +281,23 @@ Starting with C# 12, the following restrictions apply to using aliases:
- Use the `unsafe` modifier only with aliases that reference pointer types or with `using static` directives, because `unsafe` without an alias or static import isn't permitted (**CS9131**).
- Use a non-nullable reference type when creating an alias to a reference type, because nullable reference types can't be aliased directly (**CS9132**).
-## Namespace declarations
+## Compilation unit and namespace declarations
-The following errors relate to namespace declaration rules:
+The following errors relate to declarations in compilation units and namespaces:
-- **CS0116**: *A namespace cannot directly contain members such as fields, methods or statements.*
+- **CS0116**: *A namespace cannot directly contain members such as fields, methods, or statements.*
- **CS1022**: *Type or namespace definition, or end-of-file expected.*
+- **CS1527**: *Elements defined in a namespace cannot be explicitly declared as private, protected, protected internal, or private protected.*
- **CS1671**: *A namespace declaration cannot have modifiers or attributes.*
- **CS7021**: *Cannot declare namespace in script code.*
+- **CS9348**: *A compilation unit cannot directly contain members such as fields, methods, or properties.*
See the [namespace keyword](../keywords/namespace.md) and [General Structure of a C# Program](../../fundamentals/program-structure/index.md) language reference for the rules that govern these diagnostics. Potential fixes include:
- Ensure all methods, fields, and properties are declared inside a type (class, struct, record, or interface) rather than directly inside a namespace, because namespaces can only contain type declarations, nested namespaces, and `using` directives (**CS0116**).
+- Move fields, properties, events, indexers, operators, and member methods into a class, struct, record, or interface (**CS9348**). At compilation-unit scope, executable code can be a top-level statement in the global namespace, and a method-shaped declaration is a local function rather than a member method.
- Check for mismatched braces in your source file, because an extra closing brace after a namespace or type definition produces an error when the compiler encounters unexpected content at the end of the file (**CS1022**).
+- Change a namespace-level type's accessibility to `public` or `internal`, or omit the access modifier to use the default `internal` accessibility (**CS1527**). Types declared without an explicit namespace are members of the global namespace, so the same restriction applies.
- Remove any access modifiers or attributes from namespace declarations, because namespaces don't support modifiers like `public` or `private`, and attributes can't be applied to them (**CS1671**).
- Move namespace declarations out of C# script files (`.csx`) and into regular source files (`.cs`), because script code evaluates in a single execution context that doesn't support namespace declarations (**CS7021**).
@@ -286,6 +305,7 @@ See the [namespace keyword](../keywords/namespace.md) and [General Structure of
The following errors and warnings relate to naming conflicts between namespaces and types:
+- **CS0101**: *The namespace 'namespace' already contains a definition for 'identifier'*
- **CS0104**: *'reference' is an ambiguous reference between 'identifier' and 'identifier'.*
- **CS0434**: *The namespace NamespaceName1 in NamespaceName2 conflicts with the type TypeName1 in NamespaceName3.*
- **CS0435**: *The namespace 'namespace' in 'assembly' conflicts with the imported type 'type' in 'assembly'. Using the namespace defined in 'assembly'.*
@@ -297,6 +317,7 @@ See the [using directive](../keywords/using-directive.md), [extern alias](../key
- Use a fully qualified name or a [namespace alias](../operators/namespace-alias-qualifier.md) when your code references a name that exists in multiple imported namespaces.
- The compiler can't determine which type you intend to use when the same name appears in two or more namespaces imported by `using` directives (**CS0104**).
+- Rename or remove a duplicate namespace member (**CS0101**). A namespace and a type also can't have the same fully qualified name, so rename either declaration when a type name conflicts with a nested namespace name.
- Rename either the type or the namespace when an imported type and an imported nested namespace share the same fully qualified name. The compiler can't distinguish between them when the name is referenced (**CS0434**, **CS0438**).
To resolve the naming conflict warnings, rename one of the conflicting declarations, use a different namespace, remove the unnecessary assembly reference, or use an [extern alias](../keywords/extern-alias.md) to disambiguate between the two definitions. The compiler resolves these conflicts automatically - using the locally defined namespace over the imported type (**CS0435**), the locally defined type over the imported type (**CS0436**), or the locally defined type over the imported namespace (**CS0437**) - but the warnings indicate a potential source of confusion that you should address.
diff --git a/docs/csharp/language-reference/toc.yml b/docs/csharp/language-reference/toc.yml
index 22f76d5cd5bc4..823f3a3459c9d 100644
--- a/docs/csharp/language-reference/toc.yml
+++ b/docs/csharp/language-reference/toc.yml
@@ -483,7 +483,8 @@ items:
displayName: >
CS1024, CS1025, CS1027, CS1028, CS1029, CS1030, CS1032, CS1038, CS1040, CS1517,
CS1560, CS1576, CS1578, CS1633, CS1634, CS1635, CS1691, CS1692, CS1694, CS1695,
- CS1696, CS1709, CS9297, CS9298, CS9299, CS9314
+ CS1696, CS1709, CS7009, CS7010, CS7011, CS8097, CS8098, CS8938, CS8939, CS8996,
+ CS9028, CS9297, CS9298, CS9299, CS9314, CS9378
- name: Parsing C# code
href: ./compiler-messages/parsing-errors.md
displayName: >
@@ -544,10 +545,10 @@ items:
Primary constructors, module initializers, UnmanagedCallersOnly,
CS0132, CS0514, CS0515, CS0516, CS0517, CS0522, CS0526, CS0568, CS0573, CS0710,
CS0768, CS0824, CS1018, CS8054, CS8091, CS8358, CS8760, CS8813, CS8814, CS8815,
- CS8816, CS8862, CS8867, CS8868, CS8878, CS8900, CS8901, CS8902, 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
+ CS8816, CS8861, CS8862, CS8867, CS8868, CS8878, CS8900, CS8901, CS8902, 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, CS9343
- name: Property declarations
href: ./compiler-messages/property-declaration-errors.md
displayName: >
@@ -764,14 +765,14 @@ items:
CS8075, CS8110, CS8122, CS8143, CS8144, CS8153, CS8155, CS8198, CS8207, CS8382,
CS8514, CS8640, CS8642, CS8790, CS8791, CS8792, CS8810, CS8849, CS8927, CS8952,
CS9170, CS9175, CS9307, CS9369
- - name: Using directive and aliases
+ - name: Using directives and namespace declarations
href: ./compiler-messages/using-directive-errors.md
displayName: >
- CS0104, CS0105, CS0116, CS0138, CS0430, CS0431, CS0432, CS0434, CS0435, CS0436,
- CS0437, CS0438, CS0439, CS0440, CS0518, CS0576, CS0687, CS1022, CS1529, CS1537,
- CS1671, CS1679, CS1680, CS1681, CS1730, CS2034, CS7000, CS7007, CS7015, CS7021,
- CS8019, CS8020, CS8083, CS8085, CS8914, CS8915, CS8933, CS8954, CS8955, CS8956,
- CS9130, CS9131, CS9132, CS9133, CS9162
+ CS0101, CS0104, CS0105, CS0116, CS0138, CS0430, CS0431, CS0432, CS0434, CS0435,
+ CS0436, CS0437, CS0438, CS0439, CS0440, CS0518, CS0576, CS0687, CS1022, CS1527,
+ CS1529, CS1537, CS1671, CS1679, CS1680, CS1681, CS1730, CS2034, CS7000, CS7007,
+ CS7015, CS7016, CS7021, CS8019, CS8020, CS8083, CS8085, CS8914, CS8915, CS8933,
+ CS8954, CS8955, CS8956, CS9130, CS9131, CS9132, CS9133, CS9162, CS9348
- name: Using statements and declarations
href: ./compiler-messages/using-statement-declaration-errors.md
displayName: >
@@ -921,8 +922,6 @@ items:
href: ../misc/cs0082.md
- name: CS0100
href: ../misc/cs0100.md
- - name: CS0101
- href: ../misc/cs0101.md
- name: CS0102
href: ../misc/cs0102.md
- name: CS0103
@@ -1351,8 +1350,6 @@ items:
href: ../misc/cs1524.md
- name: CS1525
href: ../misc/cs1525.md
- - name: CS1527
- href: ../misc/cs1527.md
- name: CS1528
href: ../misc/cs1528.md
- name: CS1530
diff --git a/docs/csharp/misc/cs0101.md b/docs/csharp/misc/cs0101.md
deleted file mode 100644
index fec76070e3a32..0000000000000
--- a/docs/csharp/misc/cs0101.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-description: "Compiler Error CS0101"
-title: "Compiler Error CS0101"
-ms.date: 07/20/2015
-f1_keywords:
- - "CS0101"
-helpviewer_keywords:
- - "CS0101"
-ms.assetid: edb5246b-c16b-4845-bb2d-0ef769d014c7
----
-# Compiler Error CS0101
-
-The namespace 'namespace' already contains a definition for 'type'
-
- A [namespace](../language-reference/keywords/namespace.md) has duplicate identifiers. Rename or delete one of the duplicate identifiers. For more information, see [Namespaces](../fundamentals/program-structure/namespaces.md)
-
- The following sample generates CS0101:
-
-```csharp
-// CS0101.cs
-namespace MyNamespace
-{
- public class MyClass
- {
- static public void Main()
- {
- }
- }
-
- public class MyClass // CS0101
- {
- }
-}
-```
-
-A CS0101 is also generated when your class name clashes with your namespace name. This can happen when expanding with helper classes for the base class where you attempt to keep the namespace route the same. In the below example, the UTF8 class should clearly be a subsidiary of the String class, but attempting to force it into the same name space by declaring said namespace as Utilities.String will cause a CS0101 error:
-
-```csharp
-//CS0101-Utilities.String.cs
-namespace Utilities
-{
- public class String
- {
- public string MyString;
- }
-}
-
-//CS0101-Utilities.String.UTF8.cs
-namespace Utilities.String // CS0101
-{
- public class UTF8
- {
- public string MySecondString;
- }
-}
-```
diff --git a/docs/csharp/misc/cs1527.md b/docs/csharp/misc/cs1527.md
deleted file mode 100644
index 02419788e4df8..0000000000000
--- a/docs/csharp/misc/cs1527.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-description: "Compiler Error CS1527"
-title: "Compiler Error CS1527"
-ms.date: 07/20/2015
-f1_keywords:
- - "CS1527"
-helpviewer_keywords:
- - "CS1527"
-ms.assetid: a0d52130-d6da-41bb-b153-8e96cbb7e316
----
-# Compiler Error CS1527
-
-Elements defined in a namespace cannot be explicitly declared as private, protected, protected internal or private protected.
-
- Type declarations in a namespace can have either [public](../language-reference/keywords/public.md) or [internal](../language-reference/keywords/internal.md) access. If no accessibility is specified, **internal** is the default.
-
- The following sample generates CS1527:
-
-```csharp
-// CS1527.cs
-namespace Sample
-{
- private class C1 {} // CS1527
- protected class C2 {} // CS1527
- protected internal class C3 {} // CS1527
- private protected class C4 {} // CS1527
-}
-```
-
- The following example generates CS1527 because when no namespace is explicitly declared in your program code, all type declarations are located implicitly within the global namespace.
-
-```csharp
-//cs1527_2.cs
-using System;
-
-protected class C4 {}
-private struct S1 {}
-```
-
-## See also
-
-- [Namespaces](../fundamentals/program-structure/namespaces.md)
-- [:: Operator](../language-reference/operators/namespace-alias-qualifier.md)
-- [Accessibility Domain](../language-reference/keywords/accessibility-domain.md)
-- [Access Modifiers](../programming-guide/classes-and-structs/access-modifiers.md)
diff --git a/docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md b/docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md
index 8c0990013e9ba..ea1dd27338184 100644
--- a/docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md
+++ b/docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md
@@ -51,7 +51,6 @@ f1_keywords:
- "CS7006"
- "CS7012"
- "CS7013"
- - "CS7016"
- "CS7017"
- "CS7018"
- "CS7019"
@@ -190,18 +189,6 @@ f1_keywords:
# C# 7.3 diagnostics
- "CS8378"
- "CS8381"
- # Coming in C# 15
- - "CS9343" # misc
- - "CS9348"
-# Collection arguments:
- - "CS9354"
- - "CS9355"
- - "CS9356"
- - "CS9357"
- - "CS9358"
- - "CS9359"
-# Shebang
- - "CS9378"
helpviewer_keywords:
- "errors [C#], additional information"
---
diff --git a/docs/fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md b/docs/fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md
index 26ab3600e0398..7e6ce2b4e62cd 100644
--- a/docs/fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md
+++ b/docs/fundamentals/networking/http/httpclient-migrate-from-httpwebrequest.md
@@ -2,7 +2,6 @@
title: Migrate from HttpWebRequest
description: Learn how to migrate from HttpWebRequest to HttpClient.
author: liveans
-ms.author: aaksoy
ms.date: 07/25/2024
helpviewer_keywords:
- "protocols, HTTP"
diff --git a/docs/machine-learning/how-to-guides/snippets/load-data-ml-net/Project.csproj b/docs/machine-learning/how-to-guides/snippets/load-data-ml-net/Project.csproj
index 9b4098a72c9d0..9b0de504d62d2 100644
--- a/docs/machine-learning/how-to-guides/snippets/load-data-ml-net/Project.csproj
+++ b/docs/machine-learning/how-to-guides/snippets/load-data-ml-net/Project.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/docs/machine-learning/snippets/mldotnet-api/csharp/Project.csproj b/docs/machine-learning/snippets/mldotnet-api/csharp/Project.csproj
index d0ecc2ad08790..2f47d011ec73b 100644
--- a/docs/machine-learning/snippets/mldotnet-api/csharp/Project.csproj
+++ b/docs/machine-learning/snippets/mldotnet-api/csharp/Project.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/machine-learning/tutorials/snippets/api-transfer-learning/csharp/Project.csproj b/docs/machine-learning/tutorials/snippets/api-transfer-learning/csharp/Project.csproj
index 769baf7e0dc96..dfa1158f32202 100644
--- a/docs/machine-learning/tutorials/snippets/api-transfer-learning/csharp/Project.csproj
+++ b/docs/machine-learning/tutorials/snippets/api-transfer-learning/csharp/Project.csproj
@@ -8,9 +8,9 @@
-
-
-
+
+
+
diff --git a/docs/machine-learning/tutorials/snippets/github-issue-classification/csharp/GitHubIssueClassification.csproj b/docs/machine-learning/tutorials/snippets/github-issue-classification/csharp/GitHubIssueClassification.csproj
index 50d05c27753e2..e44ffdcc1a130 100644
--- a/docs/machine-learning/tutorials/snippets/github-issue-classification/csharp/GitHubIssueClassification.csproj
+++ b/docs/machine-learning/tutorials/snippets/github-issue-classification/csharp/GitHubIssueClassification.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/docs/machine-learning/tutorials/snippets/image-classification/csharp/TransferLearningTF.csproj b/docs/machine-learning/tutorials/snippets/image-classification/csharp/TransferLearningTF.csproj
index f4b3035637b00..e34d863adeb13 100644
--- a/docs/machine-learning/tutorials/snippets/image-classification/csharp/TransferLearningTF.csproj
+++ b/docs/machine-learning/tutorials/snippets/image-classification/csharp/TransferLearningTF.csproj
@@ -8,9 +8,9 @@
-
-
-
+
+
+
diff --git a/docs/machine-learning/tutorials/snippets/iris-clustering/csharp/IrisFlowerClustering.csproj b/docs/machine-learning/tutorials/snippets/iris-clustering/csharp/IrisFlowerClustering.csproj
index a5b025ddc9b93..4941b033304fd 100644
--- a/docs/machine-learning/tutorials/snippets/iris-clustering/csharp/IrisFlowerClustering.csproj
+++ b/docs/machine-learning/tutorials/snippets/iris-clustering/csharp/IrisFlowerClustering.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/machine-learning/tutorials/snippets/movie-recommendation/csharp/MovieRecommendation.csproj b/docs/machine-learning/tutorials/snippets/movie-recommendation/csharp/MovieRecommendation.csproj
index 9c47d4b9561b0..abf9f03b34372 100644
--- a/docs/machine-learning/tutorials/snippets/movie-recommendation/csharp/MovieRecommendation.csproj
+++ b/docs/machine-learning/tutorials/snippets/movie-recommendation/csharp/MovieRecommendation.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/docs/machine-learning/tutorials/snippets/phone-calls-anomaly-detection/csharp/PhoneCallsAnomalyDetection.csproj b/docs/machine-learning/tutorials/snippets/phone-calls-anomaly-detection/csharp/PhoneCallsAnomalyDetection.csproj
index 365e6e66fb174..f4801383cc579 100644
--- a/docs/machine-learning/tutorials/snippets/phone-calls-anomaly-detection/csharp/PhoneCallsAnomalyDetection.csproj
+++ b/docs/machine-learning/tutorials/snippets/phone-calls-anomaly-detection/csharp/PhoneCallsAnomalyDetection.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/docs/machine-learning/tutorials/snippets/predict-prices/csharp/TaxiFarePrediction.csproj b/docs/machine-learning/tutorials/snippets/predict-prices/csharp/TaxiFarePrediction.csproj
index faeb36e09cc11..6056c5c1f4364 100644
--- a/docs/machine-learning/tutorials/snippets/predict-prices/csharp/TaxiFarePrediction.csproj
+++ b/docs/machine-learning/tutorials/snippets/predict-prices/csharp/TaxiFarePrediction.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/docs/machine-learning/tutorials/snippets/sales-anomaly-detection/csharp/ProductSalesAnomalyDetection.csproj b/docs/machine-learning/tutorials/snippets/sales-anomaly-detection/csharp/ProductSalesAnomalyDetection.csproj
index 14e06a69f0bfe..ae79368f812d3 100644
--- a/docs/machine-learning/tutorials/snippets/sales-anomaly-detection/csharp/ProductSalesAnomalyDetection.csproj
+++ b/docs/machine-learning/tutorials/snippets/sales-anomaly-detection/csharp/ProductSalesAnomalyDetection.csproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/docs/machine-learning/tutorials/snippets/sentiment-analysis/csharp/SentimentAnalysis.csproj b/docs/machine-learning/tutorials/snippets/sentiment-analysis/csharp/SentimentAnalysis.csproj
index acfa5733b12a6..40e19c1adef16 100644
--- a/docs/machine-learning/tutorials/snippets/sentiment-analysis/csharp/SentimentAnalysis.csproj
+++ b/docs/machine-learning/tutorials/snippets/sentiment-analysis/csharp/SentimentAnalysis.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/machine-learning/tutorials/snippets/text-classification-tf/csharp/TextClassificationTF.csproj b/docs/machine-learning/tutorials/snippets/text-classification-tf/csharp/TextClassificationTF.csproj
index 52afb04d03d2d..cc02dff388acd 100644
--- a/docs/machine-learning/tutorials/snippets/text-classification-tf/csharp/TextClassificationTF.csproj
+++ b/docs/machine-learning/tutorials/snippets/text-classification-tf/csharp/TextClassificationTF.csproj
@@ -8,9 +8,9 @@
-
-
-
+
+
+
diff --git a/docs/standard/assembly/snippets/identify/csharp/AssemblySnippets.csproj b/docs/standard/assembly/snippets/identify/csharp/AssemblySnippets.csproj
index 7f1d56b08ae98..bd6dfae75125b 100644
--- a/docs/standard/assembly/snippets/identify/csharp/AssemblySnippets.csproj
+++ b/docs/standard/assembly/snippets/identify/csharp/AssemblySnippets.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/docs/standard/assembly/snippets/identify/visual-basic/AssemblySnippets.vbproj b/docs/standard/assembly/snippets/identify/visual-basic/AssemblySnippets.vbproj
index 1fe2a4e11dcc6..6efd1bca5bf1e 100644
--- a/docs/standard/assembly/snippets/identify/visual-basic/AssemblySnippets.vbproj
+++ b/docs/standard/assembly/snippets/identify/visual-basic/AssemblySnippets.vbproj
@@ -7,7 +7,7 @@
-
+
diff --git a/docs/standard/assembly/snippets/inspect-contents-using-metadataloadcontext/AssemblySnippets.csproj b/docs/standard/assembly/snippets/inspect-contents-using-metadataloadcontext/AssemblySnippets.csproj
index 9d79f4816a9a6..13093308a9540 100644
--- a/docs/standard/assembly/snippets/inspect-contents-using-metadataloadcontext/AssemblySnippets.csproj
+++ b/docs/standard/assembly/snippets/inspect-contents-using-metadataloadcontext/AssemblySnippets.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/csharp/consuming-the-task-based-asynchronous-pattern.csproj b/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/csharp/consuming-the-task-based-asynchronous-pattern.csproj
index 565624abe6e75..4ceae4d558473 100644
--- a/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/csharp/consuming-the-task-based-asynchronous-pattern.csproj
+++ b/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/csharp/consuming-the-task-based-asynchronous-pattern.csproj
@@ -9,8 +9,8 @@
-
-
+
+
diff --git a/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/vb/consuming-the-task-based-asynchronous-pattern.vbproj b/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/vb/consuming-the-task-based-asynchronous-pattern.vbproj
index f631a8368d38b..531689bb8ece5 100644
--- a/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/vb/consuming-the-task-based-asynchronous-pattern.vbproj
+++ b/docs/standard/asynchronous-programming-patterns/snippets/consuming-the-task-based-asynchronous-pattern/vb/consuming-the-task-based-asynchronous-pattern.vbproj
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/csharp/implementing-the-task-based-asynchronous-pattern.csproj b/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/csharp/implementing-the-task-based-asynchronous-pattern.csproj
index ca2de5eb3c757..9a75d3948c1ab 100644
--- a/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/csharp/implementing-the-task-based-asynchronous-pattern.csproj
+++ b/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/csharp/implementing-the-task-based-asynchronous-pattern.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/vb/implementing-the-task-based-asynchronous-pattern.vbproj b/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/vb/implementing-the-task-based-asynchronous-pattern.vbproj
index 9a9fd483212f4..b14fd61451e60 100644
--- a/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/vb/implementing-the-task-based-asynchronous-pattern.vbproj
+++ b/docs/standard/asynchronous-programming-patterns/snippets/implementing-the-task-based-asynchronous-pattern/vb/implementing-the-task-based-asynchronous-pattern.vbproj
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/configuration/csharp/scl.csproj b/docs/standard/commandline/snippets/configuration/csharp/scl.csproj
index 16f8e10d4dda2..6571153134879 100644
--- a/docs/standard/commandline/snippets/configuration/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/configuration/csharp/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/customize-help/csharp/scl.csproj b/docs/standard/commandline/snippets/customize-help/csharp/scl.csproj
index ff64d6d874e91..808d84c5e64c5 100644
--- a/docs/standard/commandline/snippets/customize-help/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/customize-help/csharp/scl.csproj
@@ -8,10 +8,10 @@
-
-
-
-
+
+
+
+
diff --git a/docs/standard/commandline/snippets/define-symbols/csharp/scl.csproj b/docs/standard/commandline/snippets/define-symbols/csharp/scl.csproj
index 88b6015180700..f2e3f63239de8 100644
--- a/docs/standard/commandline/snippets/define-symbols/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/define-symbols/csharp/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage0/scl.csproj b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage0/scl.csproj
index 88b6015180700..f2e3f63239de8 100644
--- a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage0/scl.csproj
+++ b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage0/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage1/scl.csproj b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage1/scl.csproj
index a90fcf7961904..47ffcc028663b 100644
--- a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage1/scl.csproj
+++ b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage1/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage2/scl.csproj b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage2/scl.csproj
index a08635cf763c2..fc01081a97e33 100644
--- a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage2/scl.csproj
+++ b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage2/scl.csproj
@@ -14,7 +14,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage3/scl.csproj b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage3/scl.csproj
index c8f6b6b303d1b..af1d8aec1ffc2 100644
--- a/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage3/scl.csproj
+++ b/docs/standard/commandline/snippets/get-started-tutorial/csharp/Stage3/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/global-options/csharp/scl.csproj b/docs/standard/commandline/snippets/global-options/csharp/scl.csproj
index 5fbb494f7afc8..a2baf6802260b 100644
--- a/docs/standard/commandline/snippets/global-options/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/global-options/csharp/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/handle-termination/csharp/scl.csproj b/docs/standard/commandline/snippets/handle-termination/csharp/scl.csproj
index 88b6015180700..f2e3f63239de8 100644
--- a/docs/standard/commandline/snippets/handle-termination/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/handle-termination/csharp/scl.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/model-binding/csharp/scl.csproj b/docs/standard/commandline/snippets/model-binding/csharp/scl.csproj
index 200c5c83f2204..70013945c47ac 100644
--- a/docs/standard/commandline/snippets/model-binding/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/model-binding/csharp/scl.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/standard/commandline/snippets/tab-completion/csharp/scl.csproj b/docs/standard/commandline/snippets/tab-completion/csharp/scl.csproj
index 9e7c67f1f9ccb..fbb9024831de3 100644
--- a/docs/standard/commandline/snippets/tab-completion/csharp/scl.csproj
+++ b/docs/standard/commandline/snippets/tab-completion/csharp/scl.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/standard/datetime/snippets/system-text-json-support/csharp/datetime-converter-examples/example2/Program.cs b/docs/standard/datetime/snippets/system-text-json-support/csharp/datetime-converter-examples/example2/Program.cs
index ed2bffd695ea0..8959d13ad731e 100644
--- a/docs/standard/datetime/snippets/system-text-json-support/csharp/datetime-converter-examples/example2/Program.cs
+++ b/docs/standard/datetime/snippets/system-text-json-support/csharp/datetime-converter-examples/example2/Program.cs
@@ -25,7 +25,7 @@ public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, Jso
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
{
// The "R" standard format will always be 29 bytes.
- Span utf8Date = new byte[29];
+ Span utf8Date = stackalloc byte[29];
bool result = Utf8Formatter.TryFormat(value, utf8Date, out _, new StandardFormat('R'));
Debug.Assert(result);
diff --git a/docs/standard/io/snippets/pipelines_1/Pipes.csproj b/docs/standard/io/snippets/pipelines_1/Pipes.csproj
index 1bf8f376df58a..059487690d2c4 100644
--- a/docs/standard/io/snippets/pipelines_1/Pipes.csproj
+++ b/docs/standard/io/snippets/pipelines_1/Pipes.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/io/snippets/pipelines_2/ConsoleApp.csproj b/docs/standard/io/snippets/pipelines_2/ConsoleApp.csproj
index 39a6fbb2a6f65..78fb3f369619d 100644
--- a/docs/standard/io/snippets/pipelines_2/ConsoleApp.csproj
+++ b/docs/standard/io/snippets/pipelines_2/ConsoleApp.csproj
@@ -18,7 +18,7 @@
-
+
diff --git a/docs/standard/security/snippets/how-to-use-data-protection/net/csharp/DataProtectionSample.csproj b/docs/standard/security/snippets/how-to-use-data-protection/net/csharp/DataProtectionSample.csproj
index a7c0dff8bc269..a6eeedba81e13 100644
--- a/docs/standard/security/snippets/how-to-use-data-protection/net/csharp/DataProtectionSample.csproj
+++ b/docs/standard/security/snippets/how-to-use-data-protection/net/csharp/DataProtectionSample.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/docs/standard/security/snippets/how-to-use-data-protection/net/vb/DataProtectionSample.vbproj b/docs/standard/security/snippets/how-to-use-data-protection/net/vb/DataProtectionSample.vbproj
index c43bb9e43aaa3..5e09689754269 100644
--- a/docs/standard/security/snippets/how-to-use-data-protection/net/vb/DataProtectionSample.vbproj
+++ b/docs/standard/security/snippets/how-to-use-data-protection/net/vb/DataProtectionSample.vbproj
@@ -7,7 +7,7 @@
-
+
diff --git a/docs/standard/serialization/system-text-json/snippets/how-to-contd/csharp/SystemTextJsonHowTo.csproj b/docs/standard/serialization/system-text-json/snippets/how-to-contd/csharp/SystemTextJsonHowTo.csproj
index 71d1233f72217..9979661fcbb91 100644
--- a/docs/standard/serialization/system-text-json/snippets/how-to-contd/csharp/SystemTextJsonHowTo.csproj
+++ b/docs/standard/serialization/system-text-json/snippets/how-to-contd/csharp/SystemTextJsonHowTo.csproj
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/visual-basic/programming-guide/language-features/strings/walkthrough-encrypting-and-decrypting-strings.md b/docs/visual-basic/programming-guide/language-features/strings/walkthrough-encrypting-and-decrypting-strings.md
index ff39a40dfee8b..d1b68ec75027e 100644
--- a/docs/visual-basic/programming-guide/language-features/strings/walkthrough-encrypting-and-decrypting-strings.md
+++ b/docs/visual-basic/programming-guide/language-features/strings/walkthrough-encrypting-and-decrypting-strings.md
@@ -1,7 +1,8 @@
---
description: "Learn more about: Walkthrough: Encrypting and Decrypting Strings in Visual Basic"
title: "Encrypting and Decrypting Strings"
-ms.date: 07/20/2015
+ms.date: 09/22/2026
+ai-usage: ai-assisted
helpviewer_keywords:
- "encryption [Visual Basic], strings"
- "strings [Visual Basic], encrypting"
@@ -30,15 +31,15 @@ This walkthrough shows you how to use the false
ClientMicrosoft.WCF.Documentation
+ v4.8true
@@ -14,12 +15,14 @@
false.\bin\Debug\DEBUG;TRACE
+ MinimumRecommendedRules.rulesetpdbonlytrue.\bin\Release\TRACE
+ MinimumRecommendedRules.ruleset
@@ -37,7 +40,7 @@
Always
-
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/cs.sln
index 2a5d71c2a7a71..b6c0e685533d4 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/cs.sln
+++ b/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/cs.sln
@@ -1,6 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 18
+VisualStudioVersion = 18.10.12210.168 stable
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Host", "Host.csproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client.csproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}"
@@ -23,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {EBDBB288-CE8D-4F68-86B7-C7C3765428F6}
+ EndGlobalSection
EndGlobal
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/host.csproj
index 227ea09ff0d5a..822be5554bb75 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/host.csproj
@@ -7,6 +7,7 @@
falseHostApplicationMicrosoft.WCF.Documentation
+ v4.8true
@@ -14,12 +15,14 @@
false.\bin\Debug\DEBUG;TRACE
+ MinimumRecommendedRules.rulesetpdbonlytrue.\bin\Release\TRACE
+ MinimumRecommendedRules.ruleset
@@ -37,7 +40,7 @@
Always
-
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/upgradelog.xml b/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/upgradelog.xml
deleted file mode 100644
index 49b64164ef356..0000000000000
--- a/samples/snippets/csharp/VS_Snippets_CFX/c_syncasyncclient/cs/upgradelog.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj
index 6ccfea1bd4f4b..75e2f460199f7 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/client.csproj
@@ -7,6 +7,7 @@
falseClientMicrosoft.WCF.Documentation
+ v4.8true
@@ -14,12 +15,14 @@
false.\bin\Debug\DEBUG;TRACE
+ MinimumRecommendedRules.rulesetpdbonlytrue.\bin\Release\TRACE
+ MinimumRecommendedRules.ruleset
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/cs.sln
index 2a5d71c2a7a71..f8e7afdc71a13 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/cs.sln
+++ b/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/cs.sln
@@ -1,6 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 18
+VisualStudioVersion = 18.10.12210.168 stable
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Host", "Host.csproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client.csproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}"
@@ -23,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {6B3454E5-DC1B-41DC-A6AB-A200DD02E1FD}
+ EndGlobalSection
EndGlobal
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/host.csproj
index 227ea09ff0d5a..87043d125307b 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/callbackbehaviorattribute/cs/host.csproj
@@ -7,6 +7,7 @@
falseHostApplicationMicrosoft.WCF.Documentation
+ v4.8true
@@ -14,12 +15,14 @@
false.\bin\Debug\DEBUG;TRACE
+ MinimumRecommendedRules.rulesetpdbonlytrue.\bin\Release\TRACE
+ MinimumRecommendedRules.ruleset
@@ -37,8 +40,8 @@
Always
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.csproj
index 8357f3af5f23d..9353533fe699d 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/client.csproj
@@ -27,6 +27,7 @@
falsefalsetrue
+ v4.8true
@@ -45,7 +46,7 @@
-
+
@@ -76,7 +77,7 @@
false
-
+
@@ -84,4 +85,4 @@
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/cs.sln
index e306eec826965..a65f650066d2e 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/cs.sln
+++ b/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/cs.sln
@@ -1,6 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 10.00
-# Visual Studio 2008
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 18
+VisualStudioVersion = 18.10.12210.168 stable
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Host", "Host.csproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client.csproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}"
@@ -23,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {604D6264-221B-419F-AFDE-7C4820C504AB}
+ EndGlobalSection
EndGlobal
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/host.csproj
index d8bbde4bae69e..6a898b25b5156 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/channelfactorybehaviors/cs/host.csproj
@@ -12,6 +12,7 @@
3.5
+ v4.8true
@@ -30,7 +31,7 @@
-
+
@@ -44,8 +45,8 @@
Always
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/client.csproj
index 292ab1e1fbe2f..275eb67f307cb 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/client.csproj
@@ -7,6 +7,7 @@
falseClientMicrosoft.WCF.Documentation
+ v4.8true
@@ -25,7 +26,7 @@
-
+
@@ -38,7 +39,7 @@
Always
-
+
@@ -46,4 +47,4 @@
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/cs.sln
index 2a5d71c2a7a71..8765bd1a19137 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/cs.sln
+++ b/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/cs.sln
@@ -1,6 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 18
+VisualStudioVersion = 18.10.12210.168 stable
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Host", "Host.csproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client.csproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}"
@@ -23,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {CC897DCA-0723-40C5-BF44-5CDD6AEFFB1C}
+ EndGlobalSection
EndGlobal
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/host.csproj
index 7a2b4aa333b95..645a2e83fc07f 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/clientproxycodesample/cs/host.csproj
@@ -7,6 +7,7 @@
falseHostApplicationMicrosoft.WCF.Documentation
+ v4.8true
@@ -25,7 +26,7 @@
-
+
@@ -38,8 +39,8 @@
Always
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/client.csproj
index b0e60fbd5e603..ff5c93d741c7e 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/client.csproj
@@ -1,4 +1,4 @@
-
+DebugAnyCPU
@@ -7,6 +7,12 @@
falseClientClient
+
+
+
+
+ v4.8
+ 2.0true
@@ -24,7 +30,7 @@
-
+
@@ -43,8 +49,8 @@
Always
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.csproj b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.csproj
index b12d617bdb103..7b488be43fef5 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.csproj
@@ -1,4 +1,4 @@
-
+DebugAnyCPU
@@ -7,6 +7,12 @@
falseCSCS
+
+
+
+
+ 2.0
+ v4.8true
@@ -25,7 +31,7 @@
-
+
@@ -41,8 +47,8 @@
PolicyExtensions
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.sln
index 39127039e45ae..988a60c3f1e76 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.sln
+++ b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/cs.sln
@@ -1,6 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 18
+VisualStudioVersion = 18.10.12210.168 stable
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CS", "CS.csproj", "{4AB2C7D2-26B4-4378-86CC-40D8756CDE09}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PolicyExtensions", "PolicyExtensions.csproj", "{077677ED-4CE8-4426-8BE2-E7517A72E060}"
@@ -29,4 +31,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {556C18AF-170F-4182-93DD-A7AC9EF3D545}
+ EndGlobalSection
EndGlobal
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/policyextensions.csproj b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/policyextensions.csproj
index 464a82838a89f..39d77eb0aec85 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/policyextensions.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/custompolicysample/cs/policyextensions.csproj
@@ -7,6 +7,7 @@
falsePolicyExtensionsPolicyExtensions
+ v4.8true
@@ -25,15 +26,15 @@
-
+
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/app.config b/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/app.config
new file mode 100644
index 0000000000000..3e0e37cfc8c7a
--- /dev/null
+++ b/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/app.config
@@ -0,0 +1,3 @@
+
+
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/client.csproj
index 0da46402c72e6..bb9a2f4b0622a 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/client.csproj
@@ -1,5 +1,5 @@
-
+DebugAnyCPU
@@ -8,7 +8,7 @@
falseClientMicrosoft.WCF.Documentation
- v4.0
+ v4.8
@@ -38,6 +38,7 @@
.\bin\Debug\DEBUG;TRACEAllRules.ruleset
+ falsepdbonly
@@ -45,6 +46,7 @@
.\bin\Release\TRACEAllRules.ruleset
+ false
@@ -81,7 +83,7 @@
true
-
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/host.csproj
index a3f95db80ebf9..c5305d5a04e25 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/faultcontractattribute/cs/host.csproj
@@ -1,5 +1,5 @@
-
+DebugAnyCPU
@@ -8,7 +8,7 @@
falseHostApplicationMicrosoft.WCF.Documentation
- v4.0
+ v4.8
@@ -38,6 +38,7 @@
.\bin\Debug\DEBUG;TRACEAllRules.ruleset
+ falsepdbonly
@@ -45,6 +46,7 @@
.\bin\Release\TRACEAllRules.ruleset
+ false
@@ -78,7 +80,10 @@
true
-
+
+
+
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/client.csproj
index 0081cf668f164..61331d076c8dc 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/client.csproj
@@ -7,7 +7,7 @@
falseClientMicrosoft.WCF.Documentation
- v4.8.1
+ v4.8
@@ -43,7 +43,7 @@
Always
-
+
@@ -51,4 +51,4 @@
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/host.csproj
index 0acf756085855..4dedd90f8441b 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/iinstancecontextinitializer/cs/host.csproj
@@ -7,7 +7,7 @@
falseHostApplicationMicrosoft.WCF.Documentation
- v4.8.1
+ v4.8
@@ -45,8 +45,8 @@
Always
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/client.csproj
index 38895f791cee0..93cb9d2ef9321 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/client.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/client.csproj
@@ -12,7 +12,7 @@
2.0
- v4.8.1
+ v4.8
@@ -53,7 +53,7 @@
Host
-
+
@@ -61,4 +61,4 @@
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/host.csproj
index 51252bd841341..b02c0d1fc04eb 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/interceptors/cs/host.csproj
@@ -7,7 +7,7 @@
falseHostApplicationMicrosoft.WCF.Documentation
- v4.8.1
+ v4.8
@@ -45,8 +45,8 @@
Always
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/cs.sln
index 2be322ae1b2e1..9b7c6c9b7e7c7 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/cs.sln
+++ b/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/cs.sln
@@ -1,6 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 18
+VisualStudioVersion = 18.10.12210.168 stable
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Host", "Host.csproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InternetClientValidator", "InternetClientValidator.csproj", "{1690809B-62A4-4A9F-8746-9D9647177BF0}"
@@ -23,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {DFC7F32C-E35C-45A6-A732-AD91420E3577}
+ EndGlobalSection
EndGlobal
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/host.csproj
index 740955c663cba..9a2db87458514 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/host.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/host.csproj
@@ -1,4 +1,4 @@
-
+DebugAnyCPU
@@ -7,6 +7,12 @@
falseHostApplicationMicrosoft.WCF.Documentation
+
+
+
+
+ 2.0
+ v4.8true
@@ -41,8 +47,8 @@
InternetClientValidator
-
+
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/internetclientvalidator.csproj b/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/internetclientvalidator.csproj
index bb41bd34485b5..528217e49ff80 100644
--- a/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/internetclientvalidator.csproj
+++ b/samples/snippets/csharp/VS_Snippets_CFX/lockdownvalidation/cs/internetclientvalidator.csproj
@@ -9,6 +9,7 @@
PropertiesMicrosoft.ServiceModel.SamplesInternetClientValidator
+ v4.8true
@@ -42,11 +43,11 @@
-
-
\ No newline at end of file
+
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport.css b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport.css
deleted file mode 100644
index fae98af0a8673..0000000000000
--- a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport.css
+++ /dev/null
@@ -1,207 +0,0 @@
-BODY
-{
- BACKGROUND-COLOR: white;
- FONT-FAMILY: "Verdana", sans-serif;
- FONT-SIZE: 100%;
- MARGIN-LEFT: 0px;
- MARGIN-TOP: 0px
-}
-P
-{
- FONT-FAMILY: "Verdana", sans-serif;
- FONT-SIZE: 70%;
- LINE-HEIGHT: 12pt;
- MARGIN-BOTTOM: 0px;
- MARGIN-LEFT: 10px;
- MARGIN-TOP: 10px
-}
-.note
-{
- BACKGROUND-COLOR: #ffffff;
- COLOR: #336699;
- FONT-FAMILY: "Verdana", sans-serif;
- FONT-SIZE: 100%;
- MARGIN-BOTTOM: 0px;
- MARGIN-LEFT: 0px;
- MARGIN-TOP: 0px;
- PADDING-RIGHT: 10px
-}
-.infotable
-{
- BACKGROUND-COLOR: #f0f0e0;
- BORDER-BOTTOM: #ffffff 0px solid;
- BORDER-COLLAPSE: collapse;
- BORDER-LEFT: #ffffff 0px solid;
- BORDER-RIGHT: #ffffff 0px solid;
- BORDER-TOP: #ffffff 0px solid;
- FONT-SIZE: 70%;
- MARGIN-LEFT: 10px
-}
-.issuetable
-{
- BACKGROUND-COLOR: #ffffe8;
- BORDER-COLLAPSE: collapse;
- COLOR: #000000;
- FONT-SIZE: 100%;
- MARGIN-BOTTOM: 10px;
- MARGIN-LEFT: 13px;
- MARGIN-TOP: 0px
-}
-.issuetitle
-{
- BACKGROUND-COLOR: #ffffff;
- BORDER-BOTTOM: #dcdcdc 1px solid;
- BORDER-TOP: #dcdcdc 1px;
- COLOR: #003366;
- FONT-WEIGHT: normal
-}
-.header
-{
- BACKGROUND-COLOR: #cecf9c;
- BORDER-BOTTOM: #ffffff 1px solid;
- BORDER-LEFT: #ffffff 1px solid;
- BORDER-RIGHT: #ffffff 1px solid;
- BORDER-TOP: #ffffff 1px solid;
- COLOR: #000000;
- FONT-WEIGHT: bold
-}
-.issuehdr
-{
- BACKGROUND-COLOR: #E0EBF5;
- BORDER-BOTTOM: #dcdcdc 1px solid;
- BORDER-TOP: #dcdcdc 1px solid;
- COLOR: #000000;
- FONT-WEIGHT: normal
-}
-.issuenone
-{
- BACKGROUND-COLOR: #ffffff;
- BORDER-BOTTOM: 0px;
- BORDER-LEFT: 0px;
- BORDER-RIGHT: 0px;
- BORDER-TOP: 0px;
- COLOR: #000000;
- FONT-WEIGHT: normal
-}
-.content
-{
- BACKGROUND-COLOR: #e7e7ce;
- BORDER-BOTTOM: #ffffff 1px solid;
- BORDER-LEFT: #ffffff 1px solid;
- BORDER-RIGHT: #ffffff 1px solid;
- BORDER-TOP: #ffffff 1px solid;
- PADDING-LEFT: 3px
-}
-.issuecontent
-{
- BACKGROUND-COLOR: #ffffff;
- BORDER-BOTTOM: #dcdcdc 1px solid;
- BORDER-TOP: #dcdcdc 1px solid;
- PADDING-LEFT: 3px
-}
-A:link
-{
- COLOR: #cc6633;
- TEXT-DECORATION: underline
-}
-A:visited
-{
- COLOR: #cc6633;
-}
-A:active
-{
- COLOR: #cc6633;
-}
-A:hover
-{
- COLOR: #cc3300;
- TEXT-DECORATION: underline
-}
-H1
-{
- BACKGROUND-COLOR: #003366;
- BORDER-BOTTOM: #336699 6px solid;
- COLOR: #ffffff;
- FONT-SIZE: 130%;
- FONT-WEIGHT: normal;
- MARGIN: 0em 0em 0em -20px;
- PADDING-BOTTOM: 8px;
- PADDING-LEFT: 30px;
- PADDING-TOP: 16px
-}
-H2
-{
- COLOR: #000000;
- FONT-SIZE: 80%;
- FONT-WEIGHT: bold;
- MARGIN-BOTTOM: 3px;
- MARGIN-LEFT: 10px;
- MARGIN-TOP: 20px;
- PADDING-LEFT: 0px
-}
-H3
-{
- COLOR: #000000;
- FONT-SIZE: 80%;
- FONT-WEIGHT: bold;
- MARGIN-BOTTOM: -5px;
- MARGIN-LEFT: 10px;
- MARGIN-TOP: 20px
-}
-H4
-{
- COLOR: #000000;
- FONT-SIZE: 70%;
- FONT-WEIGHT: bold;
- MARGIN-BOTTOM: 0px;
- MARGIN-TOP: 15px;
- PADDING-BOTTOM: 0px
-}
-UL
-{
- COLOR: #000000;
- FONT-SIZE: 70%;
- LIST-STYLE: square;
- MARGIN-BOTTOM: 0pt;
- MARGIN-TOP: 0pt
-}
-OL
-{
- COLOR: #000000;
- FONT-SIZE: 70%;
- LIST-STYLE: square;
- MARGIN-BOTTOM: 0pt;
- MARGIN-TOP: 0pt
-}
-LI
-{
- LIST-STYLE: square;
- MARGIN-LEFT: 0px
-}
-.expandable
-{
- CURSOR: hand
-}
-.expanded
-{
- color: black
-}
-.collapsed
-{
- DISPLAY: none
-}
-.foot
-{
-BACKGROUND-COLOR: #ffffff;
-BORDER-BOTTOM: #cecf9c 1px solid;
-BORDER-TOP: #cecf9c 2px solid
-}
-.settings
-{
-MARGIN-LEFT: 25PX;
-}
-.help
-{
-TEXT-ALIGN: right;
-margin-right: 10px;
-}
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport.xslt b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport.xslt
deleted file mode 100644
index a40efef92eec4..0000000000000
--- a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport.xslt
+++ /dev/null
@@ -1,232 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-