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 Client Microsoft.WCF.Documentation + v4.8 true @@ -14,12 +15,14 @@ false .\bin\Debug\ DEBUG;TRACE + MinimumRecommendedRules.ruleset pdbonly true .\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 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -14,12 +15,14 @@ false .\bin\Debug\ DEBUG;TRACE + MinimumRecommendedRules.ruleset pdbonly true .\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 @@ false Client Microsoft.WCF.Documentation + v4.8 true @@ -14,12 +15,14 @@ false .\bin\Debug\ DEBUG;TRACE + MinimumRecommendedRules.ruleset pdbonly true .\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 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -14,12 +15,14 @@ false .\bin\Debug\ DEBUG;TRACE + MinimumRecommendedRules.ruleset pdbonly true .\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 @@ false false true + v4.8 true @@ -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.8 true @@ -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 @@ false Client Microsoft.WCF.Documentation + v4.8 true @@ -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 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -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 @@ - + Debug AnyCPU @@ -7,6 +7,12 @@ false Client Client + + + + + v4.8 + 2.0 true @@ -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 @@ - + Debug AnyCPU @@ -7,6 +7,12 @@ false CS CS + + + + + 2.0 + v4.8 true @@ -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 @@ false PolicyExtensions PolicyExtensions + v4.8 true @@ -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 @@  - + Debug AnyCPU @@ -8,7 +8,7 @@ false Client Microsoft.WCF.Documentation - v4.0 + v4.8 @@ -38,6 +38,7 @@ .\bin\Debug\ DEBUG;TRACE AllRules.ruleset + false pdbonly @@ -45,6 +46,7 @@ .\bin\Release\ TRACE AllRules.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 @@  - + Debug AnyCPU @@ -8,7 +8,7 @@ false HostApplication Microsoft.WCF.Documentation - v4.0 + v4.8 @@ -38,6 +38,7 @@ .\bin\Debug\ DEBUG;TRACE AllRules.ruleset + false pdbonly @@ -45,6 +46,7 @@ .\bin\Release\ TRACE AllRules.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 @@ false Client Microsoft.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 @@ false HostApplication Microsoft.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 @@ false HostApplication Microsoft.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 @@ - + Debug AnyCPU @@ -7,6 +7,12 @@ false HostApplication Microsoft.WCF.Documentation + + + + + 2.0 + v4.8 true @@ -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 @@ Properties Microsoft.ServiceModel.Samples InternetClientValidator + v4.8 true @@ -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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- Solution: - Project: - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - src - - - - - - - - - - - - -
FilenameStatusErrorsWarnings
- javascript:document.images[''].click()src - - - - Converted - - - - Converted - -
- - files - - - 1 file - - - Converted:
- Not converted: -
-
-
- - - - : - - - - - - - - - Conversion Report - <xsl:if test="Properties/Property[@Name='LogNumber']"> - <xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/> - </xsl:if> - - - - -

Conversion Report -

- -

- Time of Conversion:
-

- - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - -
- Conversion Settings -

- - -
-
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport_minus.gif b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport_minus.gif deleted file mode 100644 index 17751cb2fd5c2..0000000000000 Binary files a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport_minus.gif and /dev/null differ diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport_plus.gif b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport_plus.gif deleted file mode 100644 index f6009ca3f6bf6..0000000000000 Binary files a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/_upgradereport_files/upgradereport_plus.gif and /dev/null differ diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/client.csproj index 5774e3f8689c8..628f7ab5fd966 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/client.csproj @@ -7,6 +7,7 @@ false Client Microsoft.WCF.Documentation + v4.8
true @@ -42,7 +43,7 @@ Always - + @@ -50,4 +51,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/cs.sln index 2a5d71c2a7a71..464d1d182cdfe 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/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 = {986294B6-3B26-4BB6-B03E-EE0135B7060B} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/host.csproj index 5592fa4c7d99d..d8e68ce739660 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/host.csproj @@ -7,6 +7,7 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -42,8 +43,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/upgradelog.xml b/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/upgradelog.xml deleted file mode 100644 index 77f71f3563a96..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/messageheaderattribute/cs/upgradelog.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/client.csproj index 6fd19fa48aac0..eda39276cf0cc 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/client.csproj @@ -7,6 +7,7 @@ false Client Microsoft.WCF.Documentation + v4.8 true @@ -33,7 +34,7 @@ - + @@ -41,4 +42,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/cs.sln index 2a5d71c2a7a71..92bd2f3f20deb 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/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 = {6B6792B4-D140-433E-A790-18BE9ADDBD4B} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/host.csproj index 227ea09ff0d5a..48ceb2c1c777b 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/metadataresolver/cs/host.csproj @@ -7,6 +7,7 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -37,8 +38,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport.css b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport.css deleted file mode 100644 index fae98af0a8673..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/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/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport.xslt b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport.xslt deleted file mode 100644 index a40efef92eec4..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport.xslt +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- Solution: - Project: - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - src - - - - - - - - - - - - -
FilenameStatusErrorsWarnings
- javascript:document.images[''].click()src - - - - Converted - - - - Converted - -
- - files - - - 1 file - - - Converted:
- Not converted: -
-
-
- - - - : - - - - - - - - - Conversion Report - <xsl:if test="Properties/Property[@Name='LogNumber']"> - <xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/> - </xsl:if> - - - - -

Conversion Report -

- -

- Time of Conversion:
-

- - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - -
- Conversion Settings -

- - -
-
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport_minus.gif b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport_minus.gif deleted file mode 100644 index 17751cb2fd5c2..0000000000000 Binary files a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport_minus.gif and /dev/null differ diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport_plus.gif b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport_plus.gif deleted file mode 100644 index f6009ca3f6bf6..0000000000000 Binary files a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/_upgradereport_files/upgradereport_plus.gif and /dev/null differ diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/client.csproj index 5d8dade8c5cec..4465e3688542f 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/client.csproj @@ -8,6 +8,7 @@ Client Microsoft.WCF.Documentation Microsoft.WCF.Documentation.Client + v4.8
true @@ -39,7 +40,7 @@ Always - + @@ -47,4 +48,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/cs.sln index 2a5d71c2a7a71..2365685a8611a 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/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 = {F937ED27-7CF1-4D56-A4E6-440FE644AA7A} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/host.csproj index 40496559c834e..48ceb2c1c777b 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/host.csproj @@ -7,6 +7,7 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -33,15 +34,12 @@ - - Always - Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/upgradelog.xml b/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/upgradelog.xml deleted file mode 100644 index 59d73016b64cf..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationbehaviorattribute_impersonation/cs/upgradelog.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport.css b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport.css deleted file mode 100644 index fae98af0a8673..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/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/operationcontextscope/cs/_upgradereport_files/upgradereport.xslt b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport.xslt deleted file mode 100644 index a40efef92eec4..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport.xslt +++ /dev/null @@ -1,232 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- Solution: - Project: - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - src - - - - - - - - - - - - -
FilenameStatusErrorsWarnings
- javascript:document.images[''].click()src - - - - Converted - - - - Converted - -
- - files - - - 1 file - - - Converted:
- Not converted: -
-
-
- - - - : - - - - - - - - - Conversion Report - <xsl:if test="Properties/Property[@Name='LogNumber']"> - <xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/> - </xsl:if> - - - - -

Conversion Report -

- -

- Time of Conversion:
-

- - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - -
- Conversion Settings -

- - -
-
diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport_minus.gif b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport_minus.gif deleted file mode 100644 index 17751cb2fd5c2..0000000000000 Binary files a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport_minus.gif and /dev/null differ diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport_plus.gif b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport_plus.gif deleted file mode 100644 index f6009ca3f6bf6..0000000000000 Binary files a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/_upgradereport_files/upgradereport_plus.gif and /dev/null differ diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/client.csproj index e17be2cd3546b..00fa1d4e31061 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/client.csproj @@ -7,6 +7,7 @@ false Client Microsoft.WCF.Documentation + v4.8
true @@ -37,7 +38,7 @@ Always - + @@ -45,4 +46,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/cs.sln index 2a5d71c2a7a71..1988af83ceb4a 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/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 = {31C7C7D0-F649-4180-AB34-1103ADEB6E26} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/host.csproj index 227ea09ff0d5a..0addb6339a07f 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/host.csproj @@ -6,6 +6,7 @@ Exe false HostApplication + v4.8 Microsoft.WCF.Documentation @@ -37,8 +38,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/upgradelog.xml b/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/upgradelog.xml deleted file mode 100644 index 2bc60e9ca44d4..0000000000000 --- a/samples/snippets/csharp/VS_Snippets_CFX/operationcontextscope/cs/upgradelog.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/client.csproj index 96060ace6652f..b1bcc5de18b8a 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/client.csproj @@ -7,7 +7,7 @@ false Client Microsoft.WCF.Documentation - v4.8.1 + v4.8 @@ -42,7 +42,7 @@ Always - + @@ -50,4 +50,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/host.csproj index 74c2abd9cf645..e918b0c65812a 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/s_duplexclients/cs/host.csproj @@ -7,7 +7,7 @@ false HostApplication Microsoft.WCF.Documentation - v4.8.1 + v4.8 @@ -43,8 +43,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/client.csproj index e17be2cd3546b..00fa1d4e31061 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/client.csproj @@ -7,6 +7,7 @@ false Client Microsoft.WCF.Documentation + v4.8 true @@ -37,7 +38,7 @@ Always - + @@ -45,4 +46,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/cs.sln index 2a5d71c2a7a71..599a8ece4ef3d 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/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 = {0A8FC021-C2E9-430F-9DB7-96339A5EE76F} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/host.csproj index 227ea09ff0d5a..48ceb2c1c777b 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/sca.callbackcontract/cs/host.csproj @@ -7,6 +7,7 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -37,8 +38,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/client.csproj index e17be2cd3546b..00fa1d4e31061 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/client.csproj @@ -7,6 +7,7 @@ false Client Microsoft.WCF.Documentation + v4.8 true @@ -37,7 +38,7 @@ Always - + @@ -45,4 +46,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/cs.sln index 2a5d71c2a7a71..09aaeda9da35c 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/sca.session/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 = {8C856DF6-F15F-48EB-AEA6-7F84E425E914} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/host.csproj index 227ea09ff0d5a..48ceb2c1c777b 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/sca.session/cs/host.csproj @@ -7,6 +7,7 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -37,8 +38,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/client.csproj index 292ab1e1fbe2f..275eb67f307cb 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/client.csproj @@ -7,6 +7,7 @@ false Client Microsoft.WCF.Documentation + v4.8 true @@ -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/servicemetadatabehavior/cs/cs.sln b/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/cs.sln index 2a5d71c2a7a71..67ff108afc718 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/cs.sln +++ b/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/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 = {3B82F3FA-F1D6-4398-ACCF-1C168F7636B9} + EndGlobalSection EndGlobal diff --git a/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/host.csproj index 9583db6a10ce1..5726260fd5077 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/servicemetadatabehavior/cs/host.csproj @@ -7,6 +7,7 @@ false HostApplication Microsoft.WCF.Documentation + v4.8 true @@ -25,7 +26,7 @@ - + @@ -38,8 +39,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/client.csproj b/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/client.csproj index bd780656cf2d9..0e65207953b1a 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/client.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/client.csproj @@ -7,7 +7,7 @@ false Client Microsoft.WCF.Documentation - v4.8.1 + v4.8 @@ -41,7 +41,7 @@ Always - + @@ -49,4 +49,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/host.csproj b/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/host.csproj index 949fc3153ff86..23f3497572aae 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/host.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/servicethrottlingbehavior/cs/host.csproj @@ -7,7 +7,7 @@ false HostApplication Microsoft.WCF.Documentation - v4.8.1 + v4.8 @@ -42,8 +42,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/Directory.Build.props b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/Directory.Build.props new file mode 100644 index 0000000000000..2aaa06b13bd87 --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/Directory.Build.props @@ -0,0 +1,9 @@ + + + true + true + true + bin\ + obj\$(MSBuildProjectName)\ + + diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerClient.csproj b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerClient.csproj index 832fa9f44dc10..d411887ae1634 100644 --- a/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerClient.csproj +++ b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerClient.csproj @@ -1,63 +1,22 @@ - + - Debug - AnyCPU - 10.0.20821 - 2.0 - {63C95CD3-520A-4E24-9FA7-4B84D57A6243} WinExe - Properties - TreeWalkerClient + net10.0-windows + NavigateWithTreeWalker TreeWalkerClient - v4.0 - Client + disable + disable + false - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - + - - Form - - - ClientForm.cs - + + - - ClientForm.cs - Designer - + - + - - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerTarget.csproj b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerTarget.csproj index d58626917ec04..b5fc9ad48c550 100644 --- a/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerTarget.csproj +++ b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/TreeWalkerTarget.csproj @@ -1,61 +1,18 @@ - + - Debug - AnyCPU - 10.0.20821 - 2.0 - {049B6DD5-E1D0-4DEB-A572-BA998CEDEA98} WinExe - Properties + net10.0-windows TreeWalkerTarget TreeWalkerTarget - v4.0 - Client + disable + disable + false - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - False - C:\WINDOWS\Microsoft.NET\Windows\v6.0.5070\WindowsBase.dll - False - - + - - Form - - - TreeWalkerTarget.cs - - - TreeWalkerTarget.cs - - - - + + - - \ No newline at end of file + + diff --git a/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/app.config b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/app.config new file mode 100644 index 0000000000000..3e0e37cfc8c7a --- /dev/null +++ b/samples/snippets/csharp/VS_Snippets_Wpf/NavigatingWithTreeWalker/CSharp/app.config @@ -0,0 +1,3 @@ + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/client.vbproj index aa81047c12991..95a2e371e9480 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/client.vbproj @@ -15,6 +15,7 @@ 2.0 On On + v4.8 true @@ -40,6 +41,10 @@ + + + + @@ -49,7 +54,7 @@ Always - + @@ -57,4 +62,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/cs.sln index c1df342c731b9..baaad5c56d9ba 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6151EDBD-F9F8-4F22-9678-63FE5954677F} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/host.vbproj index bb944103a7d75..96eed62ae82a7 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/host.vbproj @@ -15,6 +15,7 @@ 2.0 On On + v4.8 true @@ -40,6 +41,10 @@ + + + + @@ -49,8 +54,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/upgradelog.xml b/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/upgradelog.xml deleted file mode 100644 index 8c896396b12ed..0000000000000 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/c_syncasyncclient/vb/upgradelog.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/client.vbproj index 402d4c1bfdfcd..2ee47c7415b45 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/client.vbproj @@ -13,6 +13,7 @@ 2.0 + v4.8 true @@ -36,6 +37,10 @@ + + + + @@ -45,7 +50,7 @@ Always - + @@ -53,4 +58,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/cs.sln index c1df342c731b9..78321db664225 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DD218523-7C2D-4EF3-B378-96B7D1FC178F} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/host.vbproj index e5250ee8a67f5..0b080edf36383 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/host.vbproj @@ -13,6 +13,7 @@ 2.0 + v4.8 true @@ -36,6 +37,10 @@ + + + + @@ -45,8 +50,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/client.vbproj index f8b100e21813e..885e96f78c27a 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/client.vbproj @@ -29,6 +29,7 @@ false true On + v4.8 true @@ -51,10 +52,14 @@ - + + + + + @@ -82,7 +87,7 @@ false - + @@ -90,4 +95,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/cs.sln index a6bb30673a3ec..a0b2420a2ac32 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/cs.sln @@ -1,5 +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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -22,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {347476C2-2B7B-4669-8E45-59CC60D15D64} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/host.vbproj index beb9bf6a9f2d1..0bce386caf3b2 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/channelfactorybehaviors/vb/host.vbproj @@ -14,6 +14,7 @@ 3.5 On + v4.8 true @@ -36,10 +37,14 @@ - + + + + + @@ -50,8 +55,8 @@ Always - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/client.vbproj index 507e82c1319be..85afeb6f05d3e 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/client.vbproj @@ -30,6 +30,7 @@ false true On + v4.8 true @@ -51,10 +52,14 @@ - + + + + + @@ -84,8 +89,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.sln index 883838e310403..820a3fd5ad005 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CS", "CS.vbproj", "{4AB2C7D2-26B4-4378-86CC-40D8756CDE09}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "PolicyExtensions", "PolicyExtensions.vbproj", "{077677ED-4CE8-4426-8BE2-E7517A72E060}" @@ -29,4 +31,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9CC13BD8-99D1-48CF-B9E4-3E323F9D5F86} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.vbproj index 7233a7c7c7980..879b0732c24b2 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/cs.vbproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -10,11 +10,12 @@ - 2.0 + 3.5 On On + v4.8 true @@ -37,9 +38,13 @@ - + + + + + @@ -56,8 +61,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/policyextensions.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/policyextensions.vbproj index a12b879434b4b..30ce6eca585d2 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/policyextensions.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/custompolicysample/vb/policyextensions.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -37,9 +38,13 @@ - + + + + + @@ -47,8 +52,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/client.vbproj index c659764ea78ba..7e28610424616 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/client.vbproj @@ -15,6 +15,7 @@ 2.0 On On + v4.8 true @@ -37,10 +38,14 @@ - + + + + + @@ -53,7 +58,7 @@ - + @@ -61,4 +66,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/cs.sln index c1df342c731b9..4b85e730c821b 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {E1A1C3A5-54EC-4F4A-B9ED-07B9B401B015} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/host.vbproj index bb89dee0b040f..ef688fb0a5d0e 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/faultcontractattribute/vb/host.vbproj @@ -15,6 +15,7 @@ 2.0 On On + v4.8 true @@ -37,13 +38,14 @@ - - False - ..\..\..\..\..\Program Files\Reference Assemblies\Microsoft\WinFX\v3.0\System.Runtime.Serialization.dll - + + + + + @@ -56,8 +58,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/client.vbproj index 1664c60039e97..6c7a25f65ec59 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/client.vbproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -10,11 +10,12 @@ - 2.0 + 3.5 On On + v4.8 true @@ -37,7 +38,7 @@ - + @@ -66,7 +67,7 @@ - + @@ -74,4 +75,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/cs.sln index c1df342c731b9..d135f04490058 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {71528CA6-8827-48BB-B8CF-C8B5F25DE77E} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/host.vbproj index 22de83038ae55..e7167fa95d89b 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/interceptors/vb/host.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -37,7 +38,7 @@ - + @@ -62,8 +63,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/client.vbproj index c8e2e6c6eef0d..a8201167c40b1 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/client.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -64,7 +65,7 @@ - + @@ -72,4 +73,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/cs.sln index c1df342c731b9..4d64140f74d94 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C6F24ED3-BD01-4427-98C4-AF181F777A2F} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/host.vbproj index cd8a2a35d7e67..016b93f06e397 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/messageheaderattribute/vb/host.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -64,8 +65,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/client.vbproj index 57632f296357a..c60dc479110de 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/client.vbproj @@ -16,6 +16,7 @@ On On + v4.8 true @@ -65,7 +66,7 @@ - + @@ -73,4 +74,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/cs.sln index c1df342c731b9..4d6ef41d85ed3 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {17232317-FBC8-485E-9DA4-99BB14D766EA} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/host.vbproj index 32c951650e87a..ffcb85dd91c25 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/operationbehaviorattribute_impersonation/vb/host.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -52,9 +53,6 @@ - - Always - Always @@ -62,8 +60,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/client.vbproj index 54331648fb5cb..da9b322a28fc5 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/client.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -59,7 +60,7 @@ - + @@ -67,4 +68,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/cs.sln index c1df342c731b9..13e51adb13653 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {78923ADF-7547-4682-BDF7-A18CC0F50663} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/host.vbproj index 23226aa5eb2e0..ffcb85dd91c25 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/host.vbproj @@ -15,6 +15,7 @@ On On + v4.8 true @@ -59,8 +60,8 @@ - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/client.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/client.vbproj index dd66f7a97383c..46213f14caaf2 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/client.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/client.vbproj @@ -30,6 +30,7 @@ false false true + v4.8 true @@ -55,6 +56,10 @@ + + + + @@ -84,7 +89,7 @@ false - + @@ -92,4 +97,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/cs.sln b/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/cs.sln index c1df342c731b9..2afdc01d95d94 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/cs.sln +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/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("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Host", "Host.vbproj", "{907F0C93-0FC2-4419-B0CE-2B775830A3C2}" EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Client", "Client.vbproj", "{66190530-B4E3-4BF0-94B4-DFE52D15E50F}" @@ -23,4 +25,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9E59CCC6-151E-4137-9DF6-08B302CE6A6C} + EndGlobalSection EndGlobal diff --git a/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/host.vbproj b/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/host.vbproj index f98e2f679a7ca..f85e70037b39b 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/host.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CFX/sca.session/vb/host.vbproj @@ -30,6 +30,7 @@ false false true + v4.8 true @@ -55,6 +56,10 @@ + + + + @@ -84,8 +89,8 @@ false - + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbSimpleQuerySamples/VB/VbSimpleQuerySamples.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbSimpleQuerySamples/VB/VbSimpleQuerySamples.vbproj index 31a3c6f8886f1..839011d76ad7b 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbSimpleQuerySamples/VB/VbSimpleQuerySamples.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbSimpleQuerySamples/VB/VbSimpleQuerySamples.vbproj @@ -75,7 +75,7 @@ - + @@ -85,4 +85,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/MyApplication.myapp b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/MyApplication.myapp index e4781dae71618..05e53a0885a7d 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/MyApplication.myapp +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/MyApplication.myapp @@ -1,7 +1,7 @@  true - VbVbalrMyApplicationLog.Form1 + Form1 false 0 true diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myapplication.designer.vb b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myapplication.designer.vb index fa592c1c7d25f..02952ba846328 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myapplication.designer.vb +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myapplication.designer.vb @@ -1,7 +1,7 @@ '------------------------------------------------------------------------------ ' ' This code was generated by a tool. -' Runtime Version:4.0.20828.0 +' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. @@ -21,18 +21,24 @@ Namespace My ' Partial Friend Class MyApplication - + _ Public Sub New() MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows) - Me.IsSingleInstance = False - Me.EnableVisualStyles = True - Me.SaveMySettingsOnExit = True - Me.ShutdownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses + Me.IsSingleInstance = false + Me.EnableVisualStyles = true + Me.SaveMySettingsOnExit = true + Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses End Sub - + _ Protected Overrides Sub OnCreateMainForm() Me.MainForm = Global.VbVbalrMyApplicationLog.Form1 End Sub + + _ + Protected Overrides Function OnInitialize(ByVal commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)) As Boolean + Me.MinimumSplashScreenDisplayTime = 0 + Return MyBase.OnInitialize(commandLineArgs) + End Function End Class End Namespace diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myresources.designer.vb b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myresources.designer.vb index 8081c134d790d..84053f7f53445 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myresources.designer.vb +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/myresources.designer.vb @@ -1,7 +1,7 @@ '------------------------------------------------------------------------------ ' ' This code was generated by a tool. -' Runtime Version:4.0.20828.0 +' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. @@ -11,6 +11,8 @@ Option Strict On Option Explicit On +Imports System + Namespace My.Resources 'This class was auto-generated by the StronglyTypedResourceBuilder @@ -20,7 +22,7 @@ Namespace My.Resources ''' ''' A strongly-typed resource class, for looking up localized strings, etc. ''' - _ diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/mysettings.designer.vb b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/mysettings.designer.vb index a77f55d226973..613f131895a8b 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/mysettings.designer.vb +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/My Project/mysettings.designer.vb @@ -1,7 +1,7 @@ '------------------------------------------------------------------------------ ' ' This code was generated by a tool. -' Runtime Version:4.0.20828.0 +' Runtime Version:4.0.30319.42000 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. @@ -12,17 +12,19 @@ Option Strict On Option Explicit On - - _ -Partial Friend NotInheritable Class MySettings - Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) +Namespace My - Public Shared ReadOnly Property [Default]() As MySettings - Get - Return defaultInstance - End Get - End Property -End Class + _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) + + Public Shared ReadOnly Property [Default]() As MySettings + Get + Return defaultInstance + End Get + End Property + End Class +End Namespace diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/VbVbalrMyApplicationLog.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/VbVbalrMyApplicationLog.vbproj index ac41f765498b3..b27b42695b9cf 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/VbVbalrMyApplicationLog.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/VbVbalrMyApplicationLog.vbproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -13,11 +13,13 @@ WindowsForms true jkey.snk - v2.0 + v4.8 2.0 + + v4.8 true @@ -27,6 +29,7 @@ bin\ VbVbalrMyApplicationLog.xml 42016,42017,42018,42019,42032 + false pdbonly @@ -36,6 +39,7 @@ bin\ VbVbalrMyApplicationLog.xml 42016,42017,42018,42019,42032 + false @@ -63,6 +67,7 @@ True MyApplication.myapp + True True @@ -99,5 +104,5 @@ MySettings.Designer.vb - - \ No newline at end of file + + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/app.config b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/app.config index 6b4813bc91a2e..0e7263dc76bbf 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/app.config +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyApplicationLog/VB/app.config @@ -1,15 +1,13 @@ - + - + - + @@ -17,14 +15,11 @@ - + - - + + - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/VbVbalrMyComputer.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/VbVbalrMyComputer.vbproj index ac20e3dad17b1..748123ec1b92b 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/VbVbalrMyComputer.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/VbVbalrMyComputer.vbproj @@ -10,6 +10,7 @@ VbVbalrMyComputer VbVbalrMyComputer WindowsForms + v4.8 true @@ -95,5 +96,5 @@ - - \ No newline at end of file + + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrOOP/VB/VbVbalrOOP.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrOOP/VB/VbVbalrOOP.vbproj index ffa6ed872e9c4..e2a46c26ed5eb 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrOOP/VB/VbVbalrOOP.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrOOP/VB/VbVbalrOOP.vbproj @@ -104,5 +104,5 @@ Settings.Designer.vb - - \ No newline at end of file + + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStrings/VB/Class3.vb b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStrings/VB/Class3.vb index 8ef28c7e4e365..ba1d91d5f1d73 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStrings/VB/Class3.vb +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrStrings/VB/Class3.vb @@ -67,30 +67,27 @@ Class Class1f51e40a2f8843e2a83e28a0b5c0d6fd ' Private TripleDes As TripleDES = TripleDES.Create() + + Private Const FormatVersion As Byte = 1 + Private Const SaltSize As Integer = 16 + Private Const Iterations As Integer = 600000 + Private ReadOnly Key As String ' ' Sub New(ByVal key As String) - ' Initialize the crypto provider. - TripleDes.Key = TruncateHash(key, TripleDes.KeySize \ 8) - TripleDes.IV = TruncateHash("", TripleDes.BlockSize \ 8) + ' Store the key. The encryption key and IV are created per message. + Me.Key = key End Sub ' ' - Private Function TruncateHash( - ByVal key As String, - ByVal length As Integer) As Byte() - - Using sha256 As SHA256 = SHA256.Create() - ' Hash the key. - Dim keyBytes() As Byte = - System.Text.Encoding.Unicode.GetBytes(key) - Dim hash() As Byte = sha256.ComputeHash(keyBytes) - - ' Truncate or pad the hash. - ReDim Preserve hash(length - 1) - Return hash + Private Function DeriveKey(ByVal salt() As Byte) As Byte() + ' Derive a key from the specified key and the salt. + Using kdf As New Rfc2898DeriveBytes( + Key, salt, Iterations, HashAlgorithmName.SHA256) + + Return kdf.GetBytes(TripleDes.KeySize \ 8) End Using End Function ' @@ -99,12 +96,27 @@ Class Class1f51e40a2f8843e2a83e28a0b5c0d6fd Public Function EncryptData( ByVal plaintext As String) As String + ' Create a new salt and initialization vector for this message. + Dim salt(SaltSize - 1) As Byte + Using rng As RandomNumberGenerator = RandomNumberGenerator.Create() + rng.GetBytes(salt) + End Using + + TripleDes.Key = DeriveKey(salt) + TripleDes.GenerateIV() + ' Convert the plaintext string to a byte array. Dim plaintextBytes() As Byte = System.Text.Encoding.Unicode.GetBytes(plaintext) ' Create the stream. Dim ms As New System.IO.MemoryStream + ' Write the format version, salt, and initialization vector in front of + ' the cipher text. The version identifies the salt length and iteration count. + ms.WriteByte(FormatVersion) + ms.Write(salt, 0, salt.Length) + ms.Write(TripleDes.IV, 0, TripleDes.IV.Length) + ' Create the encoder to write to the stream. Dim encStream As New CryptoStream(ms, TripleDes.CreateEncryptor(), @@ -126,6 +138,25 @@ Class Class1f51e40a2f8843e2a83e28a0b5c0d6fd ' Convert the encrypted text string to a byte array. Dim encryptedBytes() As Byte = Convert.FromBase64String(encryptedtext) + ' Read the header that precedes the cipher text. Only one format + ' version exists, so reject anything else. + Dim ivSize As Integer = TripleDes.BlockSize \ 8 + Dim headerSize As Integer = 1 + SaltSize + ivSize + If encryptedBytes.Length < headerSize OrElse + encryptedBytes(0) <> FormatVersion Then + + Throw New CryptographicException( + "The encrypted data is not in the expected format.") + End If + + Dim salt(SaltSize - 1) As Byte + Dim iv(ivSize - 1) As Byte + Array.Copy(encryptedBytes, 1, salt, 0, SaltSize) + Array.Copy(encryptedBytes, 1 + SaltSize, iv, 0, ivSize) + + TripleDes.Key = DeriveKey(salt) + TripleDes.IV = iv + ' Create the stream. Dim ms As New System.IO.MemoryStream ' Create the decoder to write to the stream. @@ -134,7 +165,8 @@ Class Class1f51e40a2f8843e2a83e28a0b5c0d6fd System.Security.Cryptography.CryptoStreamMode.Write) ' Use the crypto stream to write the byte array to the stream. - decStream.Write(encryptedBytes, 0, encryptedBytes.Length) + decStream.Write(encryptedBytes, headerSize, + encryptedBytes.Length - headerSize) decStream.FlushFinalBlock() ' Convert the plaintext stream to a string. diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnMyApplicationLogFiltering/VB/VbVbcnMyApplicationLogFiltering.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnMyApplicationLogFiltering/VB/VbVbcnMyApplicationLogFiltering.vbproj index 6f443ed3b84de..0da4bef8cf9b7 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnMyApplicationLogFiltering/VB/VbVbcnMyApplicationLogFiltering.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnMyApplicationLogFiltering/VB/VbVbcnMyApplicationLogFiltering.vbproj @@ -10,6 +10,7 @@ VbVbcnMyApplicationLogFiltering VbVbcnMyApplicationLogFiltering WindowsForms + v4.8 true @@ -89,5 +90,5 @@ MySettings.vb - - \ No newline at end of file + + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnWalkthroughDeclaringAndRaisingEvents/VB/VbEventWalkthrough.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnWalkthroughDeclaringAndRaisingEvents/VB/VbEventWalkthrough.vbproj index 974271dede78a..320aeb918d331 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnWalkthroughDeclaringAndRaisingEvents/VB/VbEventWalkthrough.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnWalkthroughDeclaringAndRaisingEvents/VB/VbEventWalkthrough.vbproj @@ -10,6 +10,7 @@ WindowsApplication1 VbEventWalkthrough WindowsForms + v4.8 true @@ -90,5 +91,5 @@ MySettings.vb - - \ No newline at end of file + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/Highlighter.vbproj b/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/Highlighter.vbproj index d6d4ba01dbcc3..12a91c419c3aa 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/Highlighter.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/Highlighter.vbproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -9,8 +9,9 @@ Highlighter.ClientForm Highlighter Highlighter - v4.0 - Client + v4.8 + + true @@ -19,6 +20,7 @@ true bin\ _MyType="WindowsForms" + false false @@ -28,6 +30,7 @@ true bin\ _MyType="WindowsForms" + false @@ -35,9 +38,9 @@ - - - + + + @@ -61,7 +64,10 @@ - + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/app.config b/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/app.config new file mode 100644 index 0000000000000..3000fcc8c9142 --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/Highlighter/VisualBasic/app.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/app.config b/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/app.config new file mode 100644 index 0000000000000..3000fcc8c9142 --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/app.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkerclient.vbproj b/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkerclient.vbproj index a4c5c87c9dcf1..34c461d575082 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkerclient.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkerclient.vbproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -10,12 +10,14 @@ TreeWalkerClient - v4.0 + v4.8 On Binary Off On - Client + + + v4.8 true @@ -27,6 +29,7 @@ prompt + false pdbonly @@ -35,6 +38,7 @@ false true prompt + false @@ -73,5 +77,8 @@ - - \ No newline at end of file + + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkertarget.vbproj b/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkertarget.vbproj index 7ba939b311046..44f7344493c33 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkertarget.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/NavigatingWithTreeWalker/visualbasic/treewalkertarget.vbproj @@ -1,4 +1,5 @@ - + + Debug AnyCPU @@ -6,14 +7,17 @@ 2.0 {049B6DD5-E1D0-4DEB-A572-BA998CEDEA98} WinExe - + + TreeWalkerTarget - v4.0 + v4.8 On Binary Off On - Client + + + true true @@ -23,6 +27,7 @@ true true prompt + false pdbonly @@ -31,6 +36,7 @@ false true prompt + false @@ -45,6 +51,13 @@ False + + + + $(NuGetPackageRoot)system.resources.extensions\8.0.0\lib\net462\System.Resources.Extensions.dll + True + + @@ -69,5 +82,8 @@ - - \ No newline at end of file + + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/UIAClient_snip.vbproj b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/UIAClient_snip.vbproj index 5000504ad1e09..5911b47ee7a38 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/UIAClient_snip.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/UIAClient_snip.vbproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -10,8 +10,9 @@ UIAClient_snip UIAClient_snip WindowsFormsWithCustomSubMain - v4.0 - Client + v4.8 + + true @@ -21,6 +22,7 @@ ..\..\..\..\..\sd_avalon.binaries.x86chk\ _MyType="WindowsForms" UIAClient_snip.xml + false false @@ -31,6 +33,7 @@ bin\ _MyType="WindowsForms" UIAClient_snip.xml + false @@ -83,7 +86,10 @@ Application.Designer.vb - + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/app.config b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/app.config new file mode 100644 index 0000000000000..3000fcc8c9142 --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAClient_snip/VisualBasic/app.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/FocusTrackerVB.vbproj b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/FocusTrackerVB.vbproj index 6567083e4f693..f537c3bfee36a 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/FocusTrackerVB.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/FocusTrackerVB.vbproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -10,8 +10,9 @@ FocusTrackerVB FocusTrackerVB - v4.0 - Client + v4.8 + + true @@ -19,6 +20,7 @@ true true ..\..\..\..\..\sd_avalon.binaries.x86chk\ + false false @@ -27,6 +29,7 @@ false true bin\ + false @@ -54,7 +57,10 @@ - + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/app.config b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/app.config new file mode 100644 index 0000000000000..3000fcc8c9142 --- /dev/null +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFocusTracker_snip/VisualBasic/app.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFragmentProvider_snip/VisualBasic/UIAFragmentProviderVB.vbproj b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFragmentProvider_snip/VisualBasic/UIAFragmentProviderVB.vbproj index d660d8c45d47d..86bc46995c09a 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFragmentProvider_snip/VisualBasic/UIAFragmentProviderVB.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Wpf/UIAFragmentProvider_snip/VisualBasic/UIAFragmentProviderVB.vbproj @@ -87,7 +87,7 @@ - + @@ -97,4 +97,4 @@ - \ No newline at end of file +