From 6b12a9b668ed8d8c8abf03e26d495d5ab7702f30 Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:04:49 +0100 Subject: [PATCH 01/12] Initial page of CS8802 error (#43728) * Create initial page of CS8802 * Link CS8803 and top-level statements to the page * Correct the ms.date in CS8802 page metadata Co-authored-by: Youssef Victor * Remove CS8802 from list of missing pages * Remove solution from single compilation unit explanation A solution can, for example, contain multiple console applications. Co-authored-by: Bill Wagner --------- Co-authored-by: Youssef Victor Co-authored-by: Bill Wagner --- .../compiler-messages/cs8802.md | 49 +++++++++++++++++++ ...n-t-have-specifics-on-this-csharp-error.md | 1 - 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 docs/csharp/language-reference/compiler-messages/cs8802.md diff --git a/docs/csharp/language-reference/compiler-messages/cs8802.md b/docs/csharp/language-reference/compiler-messages/cs8802.md new file mode 100644 index 0000000000000..1c3f6782f528f --- /dev/null +++ b/docs/csharp/language-reference/compiler-messages/cs8802.md @@ -0,0 +1,49 @@ +--- +description: "Compiler Error CS8802" +title: "Compiler Error CS8802" +ms.date: 11/24/2024 +f1_keywords: + - "CS8802" +helpviewer_keywords: + - "CS8802" +--- +# Compiler Error CS8802 + +Only one compilation unit can have top-level statements. + +This error indicates that there are two or more [top-level statements](../../fundamentals/program-structure/top-level-statements.md) in a single compilation unit (single project or a single group of files compiled into a single binary file). + +## Example + +The following sample of single compilation unit generates CS8802: + +```xml + + + + net8.0 + + +``` + +```csharp +// EntryFile.cs + +int a = 0; +``` + +```csharp +// SecondaryEntryFile.cs + +int b = 1; // CS8802: The top level statement already exists in EntryFile.cs +``` + +## To correct this error + +Use only one top-level statement in the project. +
Top-level statements acts as an entry point to the program, so only one file may have top-level statement. All other statements must be defined as members of classes or structs. + +## See also + +- [Top-level statements](../../fundamentals/program-structure/top-level-statements.md) +- [CS8803](./cs8803.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 b10a6f9dbb1ea..675e0ef72c714 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 @@ -425,7 +425,6 @@ f1_keywords: - "CS8793" - "CS8794" - "CS8801" - - "CS8802" - "CS8804" - "CS8805" - "CS8806" From f05c0c992d78869c82bab7133303d10550631841 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 26 Nov 2024 06:30:31 -0800 Subject: [PATCH 02/12] automatically close code of conduct issues (#43763) --- .github/policies/close-issues.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/policies/close-issues.yml b/.github/policies/close-issues.yml index fdcebf4cb0027..f28495ac7685f 100644 --- a/.github/policies/close-issues.yml +++ b/.github/policies/close-issues.yml @@ -19,3 +19,12 @@ configuration: - addReply: reply: This issue has been automatically closed due to no response from the original author. Feel free to reopen it if you have more information that can help us investigate the issue further. - closeIssue + + eventResponderTasks: + - description: Close issues labeled 'code-of-conduct' + if: + - payloadType: Issues + - hasLabel: + label: code-of-conduct + then: + - closeIssue From c620026fa15c9523699c1b7a74576b0a1d53fccf Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 26 Nov 2024 06:33:42 -0800 Subject: [PATCH 03/12] Update package index with latest published versions (#43771) --- docs/azure/includes/dotnet-all.md | 2 +- docs/azure/includes/dotnet-new.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/azure/includes/dotnet-all.md b/docs/azure/includes/dotnet-all.md index fd480675cd76a..d9e13bc03f63b 100644 --- a/docs/azure/includes/dotnet-all.md +++ b/docs/azure/includes/dotnet-all.md @@ -6,7 +6,7 @@ | App Configuration | NuGet [1.5.0](https://www.nuget.org/packages/Azure.Data.AppConfiguration/1.5.0) | [docs](/dotnet/api/overview/azure/Data.AppConfiguration-readme) | GitHub [1.5.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Data.AppConfiguration_1.5.0/sdk/appconfiguration/Azure.Data.AppConfiguration/) | | App Configuration Provider | NuGet [8.0.0](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.AzureAppConfiguration/8.0.0)
NuGet [8.1.0-preview](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.AzureAppConfiguration/8.1.0-preview) | | GitHub [8.0.0](https://github.com/Azure/AppConfiguration-DotnetProvider) | | Attestation | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Security.Attestation/1.0.0) | [docs](/dotnet/api/overview/azure/Security.Attestation-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Security.Attestation_1.0.0/sdk/attestation/Azure.Security.Attestation/) | -| Azure AI Search | NuGet [11.6.0](https://www.nuget.org/packages/Azure.Search.Documents/11.6.0)
NuGet [11.7.0-beta.1](https://www.nuget.org/packages/Azure.Search.Documents/11.7.0-beta.1) | [docs](/dotnet/api/overview/azure/Search.Documents-readme) | GitHub [11.6.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.6.0/sdk/search/Azure.Search.Documents/)
GitHub [11.7.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.7.0-beta.1/sdk/search/Azure.Search.Documents/) | +| Azure AI Search | NuGet [11.6.0](https://www.nuget.org/packages/Azure.Search.Documents/11.6.0)
NuGet [11.7.0-beta.2](https://www.nuget.org/packages/Azure.Search.Documents/11.7.0-beta.2) | [docs](/dotnet/api/overview/azure/Search.Documents-readme) | GitHub [11.6.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.6.0/sdk/search/Azure.Search.Documents/)
GitHub [11.7.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.7.0-beta.2/sdk/search/Azure.Search.Documents/) | | Azure Object Anchors Conversion | NuGet [0.3.0-beta.6](https://www.nuget.org/packages/Azure.MixedReality.ObjectAnchors.Conversion/0.3.0-beta.6) | [docs](/dotnet/api/overview/azure/MixedReality.ObjectAnchors.Conversion-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [0.3.0-beta.6](https://github.com/Azure/azure-sdk-for-net/tree/Azure.MixedReality.ObjectAnchors.Conversion_0.3.0-beta.6/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/) | | Azure Remote Rendering | NuGet [1.1.0](https://www.nuget.org/packages/Azure.MixedReality.RemoteRendering/1.1.0) | [docs](/dotnet/api/overview/azure/MixedReality.RemoteRendering-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.MixedReality.RemoteRendering_1.1.0/sdk/remoterendering/Azure.MixedReality.RemoteRendering/) | | Azure.Core.Expressions.DataFactory | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Core.Expressions.DataFactory/1.0.0) | [docs](/dotnet/api/overview/azure/Core.Expressions.DataFactory-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Core.Expressions.DataFactory_1.0.0/sdk/core/Azure.Core.Expressions.DataFactory/) | diff --git a/docs/azure/includes/dotnet-new.md b/docs/azure/includes/dotnet-new.md index 2d3742eaee1de..147d5047bfad8 100644 --- a/docs/azure/includes/dotnet-new.md +++ b/docs/azure/includes/dotnet-new.md @@ -6,7 +6,7 @@ | App Configuration | NuGet [1.5.0](https://www.nuget.org/packages/Azure.Data.AppConfiguration/1.5.0) | [docs](/dotnet/api/overview/azure/Data.AppConfiguration-readme) | GitHub [1.5.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Data.AppConfiguration_1.5.0/sdk/appconfiguration/Azure.Data.AppConfiguration/) | | App Configuration Provider | NuGet [8.0.0](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.AzureAppConfiguration/8.0.0)
NuGet [8.1.0-preview](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.AzureAppConfiguration/8.1.0-preview) | | GitHub [8.0.0](https://github.com/Azure/AppConfiguration-DotnetProvider) | | Attestation | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Security.Attestation/1.0.0) | [docs](/dotnet/api/overview/azure/Security.Attestation-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Security.Attestation_1.0.0/sdk/attestation/Azure.Security.Attestation/) | -| Azure AI Search | NuGet [11.6.0](https://www.nuget.org/packages/Azure.Search.Documents/11.6.0)
NuGet [11.7.0-beta.1](https://www.nuget.org/packages/Azure.Search.Documents/11.7.0-beta.1) | [docs](/dotnet/api/overview/azure/Search.Documents-readme) | GitHub [11.6.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.6.0/sdk/search/Azure.Search.Documents/)
GitHub [11.7.0-beta.1](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.7.0-beta.1/sdk/search/Azure.Search.Documents/) | +| Azure AI Search | NuGet [11.6.0](https://www.nuget.org/packages/Azure.Search.Documents/11.6.0)
NuGet [11.7.0-beta.2](https://www.nuget.org/packages/Azure.Search.Documents/11.7.0-beta.2) | [docs](/dotnet/api/overview/azure/Search.Documents-readme) | GitHub [11.6.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.6.0/sdk/search/Azure.Search.Documents/)
GitHub [11.7.0-beta.2](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Search.Documents_11.7.0-beta.2/sdk/search/Azure.Search.Documents/) | | Azure Object Anchors Conversion | NuGet [0.3.0-beta.6](https://www.nuget.org/packages/Azure.MixedReality.ObjectAnchors.Conversion/0.3.0-beta.6) | [docs](/dotnet/api/overview/azure/MixedReality.ObjectAnchors.Conversion-readme?view=azure-dotnet-preview&preserve-view=true) | GitHub [0.3.0-beta.6](https://github.com/Azure/azure-sdk-for-net/tree/Azure.MixedReality.ObjectAnchors.Conversion_0.3.0-beta.6/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/) | | Azure Remote Rendering | NuGet [1.1.0](https://www.nuget.org/packages/Azure.MixedReality.RemoteRendering/1.1.0) | [docs](/dotnet/api/overview/azure/MixedReality.RemoteRendering-readme) | GitHub [1.1.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.MixedReality.RemoteRendering_1.1.0/sdk/remoterendering/Azure.MixedReality.RemoteRendering/) | | Azure.Core.Expressions.DataFactory | NuGet [1.0.0](https://www.nuget.org/packages/Azure.Core.Expressions.DataFactory/1.0.0) | [docs](/dotnet/api/overview/azure/Core.Expressions.DataFactory-readme) | GitHub [1.0.0](https://github.com/Azure/azure-sdk-for-net/tree/Azure.Core.Expressions.DataFactory_1.0.0/sdk/core/Azure.Core.Expressions.DataFactory/) | From f22c6c38f7d4009a4f8750e77ec893c943184345 Mon Sep 17 00:00:00 2001 From: jspohn2 Date: Tue, 26 Nov 2024 09:34:16 -0500 Subject: [PATCH 04/12] Change References to .NET 9 SDK (#43770) Includes hyperlink to .NET 9 SDK download page --- .../tutorials/library-with-visual-studio-code.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/core/tutorials/library-with-visual-studio-code.md b/docs/core/tutorials/library-with-visual-studio-code.md index caee45d4d0943..ce2772512f541 100644 --- a/docs/core/tutorials/library-with-visual-studio-code.md +++ b/docs/core/tutorials/library-with-visual-studio-code.md @@ -10,7 +10,7 @@ zone_pivot_groups: dotnet-version In this tutorial, you create a simple utility library that contains a single string-handling method. -A *class library* defines types and methods that are called by an application. If the library targets .NET Standard 2.0, it can be called by any .NET implementation (including .NET Framework) that supports .NET Standard 2.0. If the library targets .NET 8, it can be called by any application that targets .NET 8. This tutorial shows how to target .NET 8. +A *class library* defines types and methods that are called by an application. If the library targets .NET Standard 2.0, it can be called by any .NET implementation (including .NET Framework) that supports .NET Standard 2.0. If the library targets .NET 9, it can be called by any application that targets .NET 9. This tutorial shows how to target .NET 9. When you create a class library, you can distribute it as a third-party component or as a bundled component with one or more applications. @@ -20,7 +20,7 @@ When you create a class library, you can distribute it as a third-party componen For information about how to install extensions on Visual Studio Code, see [VS Code Extension Marketplace](https://code.visualstudio.com/docs/editor/extension-gallery). -* The [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0). +* The [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0). ## Create a class library project @@ -36,21 +36,21 @@ Start by creating a .NET class library project named "StringLibrary" and an asso 1. Then select the location where you would like the new project to be created: Create a folder named `ClassLibraryProjects` and select it. -1. Name the project **StringLibrary**, select **Show all template options**, select **.NET 8** and select **Create Project**. +1. Name the project **StringLibrary**, select **Show all template options**, select **.NET 9** and select **Create Project**. 1. Name the project **StringLibrary** and select **Create Project**. 1. Press Enter at the prompt **Project will be created in \**. -1. Check to make sure that the library targets .NET 8. In **Explorer**, open *StringLibrary/StringLibrary.csproj*. +1. Check to make sure that the library targets .NET 9. In **Explorer**, open *StringLibrary/StringLibrary.csproj*. - The `TargetFramework` element shows that the project targets .NET 8.0. + The `TargetFramework` element shows that the project targets .NET 9.0. ```xml - net8.0 + net9.0 @@ -77,7 +77,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso Copyright (C) Microsoft Corporation. All rights reserved. Determining projects to restore... All projects are up-to-date for restore. - StringLibrary -> C:\Projects\ClassLibraryProjects\StringLibrary\bin\Debug\net8.0\StringLibrary.dll + StringLibrary -> C:\Projects\ClassLibraryProjects\StringLibrary\bin\Debug\net9.0\StringLibrary.dll Build succeeded. 0 Warning(s) 0 Error(s) From e5c41ee3a573003137f6a800d6e45891021fd955 Mon Sep 17 00:00:00 2001 From: Adit Sheth Date: Tue, 26 Nov 2024 06:35:13 -0800 Subject: [PATCH 05/12] Fixed bug 43711. (#43774) Co-authored-by: Adit Sheth --- .../snippets/partial-classes-and-methods/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/csharp/programming-guide/classes-and-structs/snippets/partial-classes-and-methods/Program.cs b/docs/csharp/programming-guide/classes-and-structs/snippets/partial-classes-and-methods/Program.cs index f7253bc41e0d9..2a8eff4250eda 100644 --- a/docs/csharp/programming-guide/classes-and-structs/snippets/partial-classes-and-methods/Program.cs +++ b/docs/csharp/programming-guide/classes-and-structs/snippets/partial-classes-and-methods/Program.cs @@ -4,6 +4,7 @@ public partial class Employee { public void DoWork() { + Console.WriteLine("Employee is working."); } } @@ -12,6 +13,7 @@ public partial class Employee { public void GoToLunch() { + Console.WriteLine("Employee is at lunch."); } } @@ -181,4 +183,4 @@ public partial class PropertyBag public partial int MyProperty { get => field; set; } } -// \ No newline at end of file +// From 7287449c83b078b9329c78518be94d9612724c57 Mon Sep 17 00:00:00 2001 From: Kevin Gosse Date: Tue, 26 Nov 2024 18:36:26 +0100 Subject: [PATCH 06/12] Update garbage-collector.md (#43776) --- docs/core/runtime-config/garbage-collector.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/runtime-config/garbage-collector.md b/docs/core/runtime-config/garbage-collector.md index 24ce5a5d672ae..2dba6f1791cc4 100644 --- a/docs/core/runtime-config/garbage-collector.md +++ b/docs/core/runtime-config/garbage-collector.md @@ -664,8 +664,8 @@ Project file: | | Setting name | Values | Version introduced | | - | - | - | - | -| **runtimeconfig.json** | `System.GC.LOHThreshold` | *decimal value* | .NET Core 1.0 | -| **Environment variable** | `COMPlus_GCLOHThreshold` | *hexadecimal value* | .NET Core 1.0 | +| **runtimeconfig.json** | `System.GC.LOHThreshold` | *decimal value* | .NET Core 3.0 | +| **Environment variable** | `COMPlus_GCLOHThreshold` | *hexadecimal value* | .NET Core 3.0 | | **Environment variable** | `DOTNET_GCLOHThreshold` | *hexadecimal value* | .NET 6 | | **app.config for .NET Framework** | [GCLOHThreshold](../../framework/configure-apps/file-schema/runtime/gclohthreshold-element.md) | *decimal value* | .NET Framework 4.8 | From 78d65d6a71d0d8af444ee5b4ef9a1079e75e5bb5 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:39:47 -0800 Subject: [PATCH 07/12] Update snippet TFMs from .NET 6 to .NET 8 (#43723) --- .../library-with-visual-studio-code.md | 12 +- .../tutorials/library-with-visual-studio.md | 12 +- .../csharp/ShowCase/Program.cs | 37 --- .../csharp/ShowCase/ShowCase.csproj | 14 - .../csharp/StringLibrary/Class1.cs | 14 - .../csharp/StringLibrary/StringLibrary.csproj | 9 - .../StringLibraryTest.csproj | 21 -- .../csharp/StringLibraryTest/UnitTest1.cs | 52 ---- .../csharp/HelloWorld.csproj | 9 - .../with-visual-studio-6-0/csharp/Program.cs | 16 -- ...testing-library-with-visual-studio-code.md | 6 +- docs/core/tutorials/with-visual-studio.md | 6 +- .../multiple-tasks-6-0/MultipleTasks.csproj | 2 +- .../coding-conventions.csproj | 4 +- .../csharp/Project.csproj | 2 +- .../Overview/csharp/xmlprocessingapp.csproj | 2 +- .../csharp/WPF1/WPFCrossThreadCS.csproj | 2 +- .../WPF2/WPFCrossThreadDispatcherCS.csproj | 2 +- .../csharp/WinForms/WFCrossThreadCS.csproj | 2 +- .../runtime-libraries/system-byte.md | 2 +- .../csharp/projectcs.csproj | 2 +- .../vb/projectvb.vbproj | 2 +- docs/standard/base-types/formatting-types.md | 6 +- .../add-remove-acls/csharp/Project.csproj | 2 +- .../binaryformatter-event-source.md | 12 +- .../csharp/Program.cs | 4 +- .../binaryformatter-event-source.csproj | 2 +- .../csharp/SystemTextJsonSamples.csproj | 2 +- .../cancellation-in-managed-threads.md | 264 +++++++++--------- .../scheduling-threads/ThreadSnippets.csproj | 2 +- .../CallEventHandler.vbproj | 2 +- .../src/DotNetLib/DotNetLib.csproj | 2 +- .../src/NativeHost/NativeHost.csproj | 4 +- .../csharp/src/NewTypes/NewTypes.csproj | 2 +- .../test/NewTypesTests/NewTypesTests.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../DataWorks DataSet.Merge/CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 2 +- .../CS/SqlAdapter.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 2 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../DataWorks SqlTypes.Guid/CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../c_datacontractnames/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../c_knowntypeattribute/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../datacontractattribute/cs/Project.csproj | 4 +- .../datamemberattribute/cs/Project.csproj | 4 +- .../tx_enlist/cs/Project.csproj | 4 +- .../ADCreateDomain/CS/Project.csproj | 4 +- .../cs/AsynchronousFileIO.csproj | 2 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../CryptoWalkThru/cs/cryptowalkthru.csproj | 4 +- .../CS/cryptography.smartcardcsp.csproj | 2 +- .../DynamicMethodHowTo/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../GCNotification/cs/Project.csproj | 4 +- .../cs/decryptxml.csproj | 2 +- .../cs/decryptxml.csproj | 2 +- .../cs/encryptxml.csproj | 2 +- .../cs/encryptxml.csproj | 2 +- .../cs/encryptxml.csproj | 2 +- .../HowToSignXMLDocumentRSA/cs/signxml.csproj | 2 +- .../cs/verifyxml.csproj | 2 +- .../IO.Compression.GZip1/CS/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../Strings.ChangingCase/cs/Project.csproj | 4 +- .../Strings.Creating/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../appcompat.sslprotocols/cs/Project.csproj | 4 +- .../cocontrasimpleaction/cs/Project.csproj | 4 +- .../cocontrasimpleienum/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/cs.csproj | 2 +- .../cs/Project.csproj | 4 +- .../conceptual.conversion/cs/Project.csproj | 4 +- .../conceptual.disposable/cs/using.csproj | 2 +- .../cs/Formatting-Overview.csproj | 2 +- .../cs/icustomformatter1.cs | 96 +++---- .../cs/Project.csproj | 4 +- .../cs/globalization.csproj | 2 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../conceptual.parallel.for/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Example.csproj | 2 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../conceptual.string.parse/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../conceptual.types.enum/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../contractexample/cs/Project.csproj | 4 +- .../dg_exceptionDesign/cs/Project.csproj | 4 +- .../eventsoverview/cs/eventsoverview.csproj | 2 +- .../cs/Project.csproj | 4 +- .../generatingahash/cs/generatingahash.csproj | 2 +- .../listupdates/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../string.breakingchanges/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../tools.certmgr/cs/Project.csproj | 4 +- .../tracesourceexample1/cs/Project.csproj | 4 +- .../tracesourceexample2/cs/Project.csproj | 4 +- .../verifyingahash/cs/verifyingahash.csproj | 2 +- .../whatsnew.461.crypto/cs/Project.csproj | 4 +- .../whatsnew.casting/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../system.Threading.Timer/CS/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../system.idisposable/cs/project.csproj | 2 +- .../cs/Project.csproj | 4 +- .../cs/enumaratedirectories.csproj | 2 +- .../system.io.enumdirs1/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Example.csproj | 2 +- .../cs/Project.csproj | 4 +- .../PsciSample/CS/Project.csproj | 4 +- .../XML_Migration/CS/Project.csproj | 4 +- .../XPathNavigatorMethods/CS/Project.csproj | 4 +- .../XSLT_NodeFrag/CS/Project.csproj | 4 +- .../XSLT_Param/CS/Project.csproj | 4 +- .../XSLT_Script/CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../XmlSchemaCreateExample/CS/Project.csproj | 4 +- .../XmlSchemaEditExample1/CS/Project.csproj | 4 +- .../XmlSchemaEditExample2/CS/Project.csproj | 4 +- .../XmlSchemaImportExample/CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../CS/Project.csproj | 4 +- .../xpathextensionfunctions/cs/Project.csproj | 4 +- .../cancellation/cs/cancellation.csproj | 2 +- .../cancellation/cs/cancellationex4.cs | 15 +- .../cds_barrier/cs/Project.csproj | 4 +- .../cds_countdownevent/cs/Project.csproj | 4 +- .../cds_spinlock/cs/Project.csproj | 4 +- .../cds_spinwait/cs/Project.csproj | 4 +- .../fromasync/cs/Project.csproj | 4 +- .../VS_Snippets_Misc/plinq/cs/plinq.csproj | 2 +- .../tpl_cancellation/cs/Project.csproj | 4 +- .../tpl_denychildattach/cs/Project.csproj | 4 +- .../cs/handling-tpl-exceptions.csproj | 4 +- .../cs/00/partitioners.csproj | 2 +- .../cs/01/partitioner02.csproj | 2 +- .../tpl_unwrap/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../tpldataflow_overview/cs/Project.csproj | 4 +- .../tpldataflow_palindromes/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../cs/dataflowreadwrite.csproj | 4 +- .../tpldataflow_receiveany/cs/Project.csproj | 4 +- .../cs/Project.csproj | 4 +- .../csProgGuideProperties/CS/Project.csproj | 4 +- .../csrefKeywordsAccess/CS/Project.csproj | 4 +- .../csrefKeywordsLiteral/CS/Project.csproj | 4 +- .../csrefKeywordsTypes/CS/Project.csproj | 4 +- .../snippets/csharp/buffers/MyBuffers.csproj | 2 +- .../delegates-and-events.csproj | 2 +- samples/snippets/csharp/events/events.csproj | 2 +- .../console-linq/console-linq.csproj | 2 +- .../how-to/conversions/conversions.csproj | 2 +- .../csharp/how-to/strings/strings.csproj | 2 +- .../csharp/interfaces/interfaces.csproj | 2 +- .../keywords/volatile/volatile.csproj | 2 +- .../objectoriented/objectoriented.csproj | 2 +- .../string-to-number/convert/convert.csproj | 2 +- .../parse-tryparse/parse-tryparse.csproj | 2 +- .../parse-tryparse2/parse-tryparse2.csproj | 2 +- .../SemanticQuickStart.csproj | 2 +- .../HelloSyntaxTree/HelloSyntaxTree.csproj | 2 +- .../SyntaxWalker/SyntaxWalker.csproj | 2 +- .../snippets/csharp/versioning/new/new.csproj | 4 +- .../versioning/override/override.csproj | 4 +- .../csharp/xunit-test/xunit-test.csproj | 2 +- samples/snippets/fsharp/fssamples.fsproj | 4 +- .../assembly/unloading/unloading.csproj | 2 +- .../vb/AsyncFirstExampleVB.vbproj | 2 +- .../memory-t/owner-using/owner-using.csproj | 2 +- .../buffers/memory-t/owner/owner.csproj | 2 +- .../memory-t/ownerless/ownerless.csproj | 2 +- .../task-returning2/task-returning2.csproj | 2 +- .../void-returning/void-returning.csproj | 2 +- .../AggregateFunctionSample.csproj | 2 +- .../sqlite/AsyncSample/AsyncSample.csproj | 2 +- .../sqlite/BackupSample/BackupSample.csproj | 2 +- .../BatchingSample/BatchingSample.csproj | 2 +- .../BulkInsertSample/BulkInsertSample.csproj | 2 +- .../CollationSample/CollationSample.csproj | 2 +- .../sqlite/DapperSample/DapperSample.csproj | 2 +- .../DateAndTimeSample.csproj | 2 +- .../DeferredTransactionSample.csproj | 2 +- .../DirtyReadSample/DirtyReadSample.csproj | 2 +- .../EncryptionSample/EncryptionSample.csproj | 2 +- .../ExtensionsSample/ExtensionsSample.csproj | 2 +- .../HelloWorldSample/HelloWorldSample.csproj | 2 +- .../sqlite/InteropSample/InteropSample.csproj | 2 +- .../RegularExpressionSample.csproj | 2 +- .../ResultMetadataSample.csproj | 2 +- .../SavepointSample/SavepointSample.csproj | 2 +- .../ScalarFunctionSample.csproj | 2 +- .../SqliteProviderSample.csproj | 2 +- .../StreamingSample/StreamingSample.csproj | 2 +- .../SystemLibrarySample.csproj | 2 +- .../current-era/cs/work-with-calendars.csproj | 2 +- .../calendars/current-era/vb/vb.vbproj | 2 +- .../calendars/gannen/cs/gannen-fmt.csproj | 2 +- .../calendars/gannen/vb/gannen-fmt.vbproj | 2 +- .../datetime/calendars/gregorian/cs/cs.csproj | 2 +- .../datetime/calendars/gregorian/vb/vb.vbproj | 2 +- .../calendars/relaxed-range/cs/cs.csproj | 2 +- .../calendars/relaxed-range/vb/vb.vbproj | 2 +- .../specify-era/cs/work-with-calendars.csproj | 2 +- .../calendars/specify-era/vb/vb.vbproj | 2 +- .../io/io-exceptions/cs/io-exceptions.csproj | 2 +- .../io/io-exceptions/vb/io-exceptions.vbproj | 2 +- .../VB/cryptography.smartcardcsp.vbproj | 2 +- .../vb/Project.csproj | 4 +- .../vb/decryptxml.vbproj | 2 +- .../vb/decryptxml.vbproj | 2 +- .../vb/encryptxml.vbproj | 2 +- .../vb/encryptxml.vbproj | 2 +- .../vb/encryptxml.vbproj | 2 +- .../HowToSignXMLDocumentRSA/vb/signxml.vbproj | 2 +- .../vb/verifyxml.vbproj | 2 +- .../vb/vb.vbproj | 2 +- .../conceptual.conversion/vb/Project.vbproj | 2 +- .../conceptual.disposable/vb/using.vb.vbproj | 2 +- .../vb/Formatting-Overview.vbproj | 2 +- .../vb/Project.vbproj | 4 +- .../vb/globalization.vbproj | 2 +- .../vb/Project.vbproj | 4 +- .../generatingahash/generatingahash.vbproj | 2 +- .../verifyingahash/vb/verifyingahash.vbproj | 2 +- .../system.idisposable/vb/project.vb.vbproj | 2 +- .../cancellation/vb/cancellation.vbproj | 2 +- .../cancellation/vb/cancellationex1.vb | 4 +- .../cancellation/vb/cancellationex10.vb | 2 +- .../cancellation/vb/cancellationex11.vb | 6 +- .../cancellation/vb/cancellationex13.vb | 2 +- .../cancellation/vb/cancellationex4.vb | 19 +- .../cancellation/vb/cancellationex9.vb | 2 +- .../cancellation/vb/objectcancellation1.vb | 4 +- .../VS_Snippets_Misc/plinq/vb/plinq.vbproj | 2 +- .../tpl_parallel/vb/simpleforeach.vbproj | 6 +- .../vb/dataflowreadwrite.vbproj | 4 +- .../vb/dynamicwalkthrough.vbproj | 2 +- .../vb/ironpythonsample.vbproj | 2 +- .../how-to/conversions/conversions.vbproj | 2 +- .../dynamic-linq-expression-trees.vbproj | 2 +- .../data-types/named-tuples/tupleinfer.vbproj | 4 +- .../data-types/tuples/tuples.vbproj | 2 +- .../passing-named-arguments/namedargs.vbproj | 2 +- 335 files changed, 720 insertions(+), 904 deletions(-) delete mode 100644 docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs delete mode 100644 docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/ShowCase.csproj delete mode 100644 docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs delete mode 100644 docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/StringLibrary.csproj delete mode 100644 docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/StringLibraryTest.csproj delete mode 100644 docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs delete mode 100644 docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/HelloWorld.csproj delete mode 100644 docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/Program.cs diff --git a/docs/core/tutorials/library-with-visual-studio-code.md b/docs/core/tutorials/library-with-visual-studio-code.md index ce2772512f541..93e3d2d256a8b 100644 --- a/docs/core/tutorials/library-with-visual-studio-code.md +++ b/docs/core/tutorials/library-with-visual-studio-code.md @@ -58,7 +58,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso 1. Open *Class1.cs* and replace the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs"::: The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The method returns `true` if a character is uppercase. @@ -96,7 +96,7 @@ Add a console application that uses the class library. The app will prompt the u 1. Open *ShowCase/Program.cs* and replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs"::: The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user. @@ -195,7 +195,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso 1. Open *Class1.cs* and replace the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs"::: The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The method returns `true` if a character is uppercase. @@ -231,7 +231,7 @@ Add a console application that uses the class library. The app will prompt the u 1. Open *ShowCase/Program.cs* and replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs"::: The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user. @@ -328,7 +328,7 @@ Start by creating a .NET class library project named "StringLibrary" and an asso 1. Open *Class1.cs* and replace the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs"::: The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The method returns `true` if a character is uppercase. @@ -364,7 +364,7 @@ Add a console application that uses the class library. The app will prompt the u 1. Open *ShowCase/Program.cs* and replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs"::: The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user. diff --git a/docs/core/tutorials/library-with-visual-studio.md b/docs/core/tutorials/library-with-visual-studio.md index 754d51a1faad9..f38ddd11005a4 100644 --- a/docs/core/tutorials/library-with-visual-studio.md +++ b/docs/core/tutorials/library-with-visual-studio.md @@ -62,7 +62,7 @@ To create the blank solution: 1. Replace the code in the code window for *Class1.cs* or *Class1.vb* with the following code, and save the file. If the language you want to use isn't shown, change the language selector at the top of the page. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs"::: :::code language="vb" source="./snippets/library-with-visual-studio/vb/StringLibrary/Class1.vb"::: The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The method returns `true` if a character is uppercase. @@ -89,7 +89,7 @@ Add a console application that uses the class library. The app will prompt the u 1. In the code window for the *Program.cs* or *Program.vb* file, replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs"::: :::code language="vb" source="./snippets/library-with-visual-studio/vb/ShowCase/Program.vb"::: The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user. @@ -196,7 +196,7 @@ To create the blank solution: 1. Replace the code in the code window for *Class1.cs* or *Class1.vb* with the following code, and save the file. If the language you want to use isn't shown, change the language selector at the top of the page. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs"::: :::code language="vb" source="./snippets/library-with-visual-studio/vb/StringLibrary/Class1.vb"::: The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The method returns `true` if a character is uppercase. @@ -223,7 +223,7 @@ Add a console application that uses the class library. The app will prompt the u 1. In the code window for the *Program.cs* or *Program.vb* file, replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs"::: :::code language="vb" source="./snippets/library-with-visual-studio/vb/ShowCase/Program.vb"::: The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user. @@ -330,7 +330,7 @@ To create the blank solution: 1. Replace the code in the code window for *Class1.cs* or *Class1.vb* with the following code, and save the file. If the language you want to use isn't shown, change the language selector at the top of the page. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibrary/Class1.cs"::: :::code language="vb" source="./snippets/library-with-visual-studio/vb/StringLibrary/Class1.vb"::: The class library, `UtilityLibraries.StringLibrary`, contains a method named `StartsWithUpper`. This method returns a value that indicates whether the current string instance begins with an uppercase character. The Unicode standard distinguishes uppercase characters from lowercase characters. The method returns `true` if a character is uppercase. @@ -357,7 +357,7 @@ Add a console application that uses the class library. The app will prompt the u 1. In the code window for the *Program.cs* or *Program.vb* file, replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/ShowCase/Program.cs"::: :::code language="vb" source="./snippets/library-with-visual-studio/vb/ShowCase/Program.vb"::: The code uses the `row` variable to maintain a count of the number of rows of data written to the console window. Whenever it's greater than or equal to 25, the code clears the console window and displays a message to the user. diff --git a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs b/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs deleted file mode 100644 index aabb5011a29d3..0000000000000 --- a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/Program.cs +++ /dev/null @@ -1,37 +0,0 @@ -using UtilityLibraries; - -class Program -{ - static void Main(string[] args) - { - int row = 0; - - do - { - if (row == 0 || row >= 25) - ResetConsole(); - - string? input = Console.ReadLine(); - if (string.IsNullOrEmpty(input)) break; - Console.WriteLine($"Input: {input}"); - Console.WriteLine("Begins with uppercase? " + - $"{(input.StartsWithUpper() ? "Yes" : "No")}"); - Console.WriteLine(); - row += 4; - } while (true); - return; - - // Declare a ResetConsole local method - void ResetConsole() - { - if (row > 0) - { - Console.WriteLine("Press any key to continue..."); - Console.ReadKey(); - } - Console.Clear(); - Console.WriteLine($"{Environment.NewLine}Press only to exit; otherwise, enter a string and press :{Environment.NewLine}"); - row = 3; - } - } -} diff --git a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/ShowCase.csproj b/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/ShowCase.csproj deleted file mode 100644 index 4c98f8720c509..0000000000000 --- a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/ShowCase/ShowCase.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net6 - enable - enable - - - - - - - diff --git a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs b/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs deleted file mode 100644 index 6c49b2e8093c9..0000000000000 --- a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/Class1.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace UtilityLibraries; - -public static class StringLibrary -{ - public static bool StartsWithUpper(this string? str) - { - if (string.IsNullOrWhiteSpace(str)) - return false; - - char ch = str[0]; - return char.IsUpper(ch); - } -} - diff --git a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/StringLibrary.csproj b/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/StringLibrary.csproj deleted file mode 100644 index 0da2a6f35b586..0000000000000 --- a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibrary/StringLibrary.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - net6.0 - enable - enable - - - diff --git a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/StringLibraryTest.csproj b/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/StringLibraryTest.csproj deleted file mode 100644 index a1b44b21c4edb..0000000000000 --- a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/StringLibraryTest.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - net6 - enable - enable - false - - - - - - - - - - - - - - diff --git a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs b/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs deleted file mode 100644 index d9248ca96ad20..0000000000000 --- a/docs/core/tutorials/snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using UtilityLibraries; - -namespace StringLibraryTest; - -[TestClass] -public class UnitTest1 -{ - [TestMethod] - public void TestStartsWithUpper() - { - // Tests that we expect to return true. - string[] words = { "Alphabet", "Zebra", "ABC", "Αθήνα", "Москва" }; - foreach (var word in words) - { - bool result = word.StartsWithUpper(); - Assert.IsTrue(result, - string.Format("Expected for '{0}': true; Actual: {1}", - word, result)); - } - } - - [TestMethod] - public void TestDoesNotStartWithUpper() - { - // Tests that we expect to return false. - string[] words = { "alphabet", "zebra", "abc", "αυτοκινητοβιομηχανία", "государство", - "1234", ".", ";", " " }; - foreach (var word in words) - { - bool result = word.StartsWithUpper(); - Assert.IsFalse(result, - string.Format("Expected for '{0}': false; Actual: {1}", - word, result)); - } - } - - [TestMethod] - public void DirectCallWithNullOrEmpty() - { - // Tests that we expect to return false. - string?[] words = { string.Empty, null }; - foreach (var word in words) - { - bool result = StringLibrary.StartsWithUpper(word); - Assert.IsFalse(result, - string.Format("Expected for '{0}': false; Actual: {1}", - word == null ? "" : word, result)); - } - } -} - diff --git a/docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/HelloWorld.csproj b/docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/HelloWorld.csproj deleted file mode 100644 index 9a77342a90c73..0000000000000 --- a/docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/HelloWorld.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - diff --git a/docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/Program.cs b/docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/Program.cs deleted file mode 100644 index ac9f87f87c99d..0000000000000 --- a/docs/core/tutorials/snippets/with-visual-studio-6-0/csharp/Program.cs +++ /dev/null @@ -1,16 +0,0 @@ -namespace HelloWorld; - -public class HelloWorld -{ - public static void Main(string[] args) - { - // - Console.WriteLine("What is your name?"); - var name = Console.ReadLine(); - var currentDate = DateTime.Now; - Console.WriteLine($"{Environment.NewLine}Hello, {name}, on {currentDate:d} at {currentDate:t}!"); - Console.Write($"{Environment.NewLine}Press any key to exit..."); - Console.ReadKey(true); - // - } -} diff --git a/docs/core/tutorials/testing-library-with-visual-studio-code.md b/docs/core/tutorials/testing-library-with-visual-studio-code.md index 07bcdbe53df41..af3e8cf738f3d 100644 --- a/docs/core/tutorials/testing-library-with-visual-studio-code.md +++ b/docs/core/tutorials/testing-library-with-visual-studio-code.md @@ -82,7 +82,7 @@ To create the test methods: 1. Open *StringLibraryTest/UnitTest1.cs* and replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibraryTest/UnitTest1.cs"::: The test of uppercase characters in the `TestStartsWithUpper` method includes the Greek capital letter alpha (U+0391) and the Cyrillic capital letter EM (U+041C). The test of lowercase characters in the `TestDoesNotStartWithUpper` method includes the Greek small letter alpha (U+03B1) and the Cyrillic small letter Ghe (U+0433). @@ -242,7 +242,7 @@ To create the test methods: 1. Open *StringLibraryTest/UnitTest1.cs* and replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibraryTest/UnitTest1.cs"::: The test of uppercase characters in the `TestStartsWithUpper` method includes the Greek capital letter alpha (U+0391) and the Cyrillic capital letter EM (U+041C). The test of lowercase characters in the `TestDoesNotStartWithUpper` method includes the Greek small letter alpha (U+03B1) and the Cyrillic small letter Ghe (U+0433). @@ -395,7 +395,7 @@ To create the test methods: 1. Open *StringLibraryTest/UnitTest1.cs* and replace all of the code with the following code. - :::code language="csharp" source="./snippets/library-with-visual-studio-6-0/csharp/StringLibraryTest/UnitTest1.cs"::: + :::code language="csharp" source="./snippets/library-with-visual-studio/csharp/StringLibraryTest/UnitTest1.cs"::: The test of uppercase characters in the `TestStartsWithUpper` method includes the Greek capital letter alpha (U+0391) and the Cyrillic capital letter EM (U+041C). The test of lowercase characters in the `TestDoesNotStartWithUpper` method includes the Greek small letter alpha (U+03B1) and the Cyrillic small letter Ghe (U+0433). diff --git a/docs/core/tutorials/with-visual-studio.md b/docs/core/tutorials/with-visual-studio.md index 0b3f692e29a07..b5effd40328ab 100644 --- a/docs/core/tutorials/with-visual-studio.md +++ b/docs/core/tutorials/with-visual-studio.md @@ -92,7 +92,7 @@ Enhance the application to prompt the user for their name and display it along w 1. In *Program.cs* or *Program.vb*, replace the contents of the `Main` method, which is the line that calls `Console.WriteLine`, with the following code: - :::code language="csharp" source="./snippets/with-visual-studio-6-0/csharp/Program.cs" id="MainMethod"::: + :::code language="csharp" source="./snippets/with-visual-studio/csharp/Program.cs" id="MainMethod"::: :::code language="vb" source="./snippets/with-visual-studio/vb/Program.vb" id="MainMethod"::: This code displays a prompt in the console window and waits until the user enters a string followed by the Enter key. It stores this string in a variable named `name`. It also retrieves the value of the property, which contains the current local time, and assigns it to a variable named `currentDate`. And it displays these values in the console window. Finally, it displays a prompt in the console window and calls the method to wait for user input. @@ -204,7 +204,7 @@ Enhance the application to prompt the user for their name and display it along w 1. In *Program.cs* or *Program.vb*, replace the contents of the `Main` method, which is the line that calls `Console.WriteLine`, with the following code: - :::code language="csharp" source="./snippets/with-visual-studio-6-0/csharp/Program.cs" id="MainMethod"::: + :::code language="csharp" source="./snippets/with-visual-studio/csharp/Program.cs" id="MainMethod"::: :::code language="vb" source="./snippets/with-visual-studio/vb/Program.vb" id="MainMethod"::: This code displays a prompt in the console window and waits until the user enters a string followed by the Enter key. It stores this string in a variable named `name`. It also retrieves the value of the property, which contains the current local time, and assigns it to a variable named `currentDate`. And it displays these values in the console window. Finally, it displays a prompt in the console window and calls the method to wait for user input. @@ -324,7 +324,7 @@ Enhance the application to prompt the user for their name and display it along w 1. In *Program.cs* or *Program.vb*, replace the contents of the `Main` method, which is the line that calls `Console.WriteLine`, with the following code: - :::code language="csharp" source="./snippets/with-visual-studio-6-0/csharp/Program.cs" id="MainMethod"::: + :::code language="csharp" source="./snippets/with-visual-studio/csharp/Program.cs" id="MainMethod"::: :::code language="vb" source="./snippets/with-visual-studio/vb/Program.vb" id="MainMethod"::: This code displays a prompt in the console window and waits until the user enters a string followed by the Enter key. It stores this string in a variable named `name`. It also retrieves the value of the property, which contains the current local time, and assigns it to a variable named `currentDate`. And it displays these values in the console window. Finally, it displays a prompt in the console window and calls the method to wait for user input. diff --git a/docs/csharp/asynchronous-programming/snippets/multiple-tasks-6-0/MultipleTasks.csproj b/docs/csharp/asynchronous-programming/snippets/multiple-tasks-6-0/MultipleTasks.csproj index 74abf5c976649..91b464afeacc1 100644 --- a/docs/csharp/asynchronous-programming/snippets/multiple-tasks-6-0/MultipleTasks.csproj +++ b/docs/csharp/asynchronous-programming/snippets/multiple-tasks-6-0/MultipleTasks.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable diff --git a/docs/csharp/fundamentals/coding-style/snippets/coding-conventions/coding-conventions.csproj b/docs/csharp/fundamentals/coding-style/snippets/coding-conventions/coding-conventions.csproj index f44100f7c6494..ea0eaf187a84a 100644 --- a/docs/csharp/fundamentals/coding-style/snippets/coding-conventions/coding-conventions.csproj +++ b/docs/csharp/fundamentals/coding-style/snippets/coding-conventions/coding-conventions.csproj @@ -2,10 +2,10 @@ WinExe - net6.0-windows + net8.0-windows enable enable - Coding_Conventions_Examples.Program + Coding_Conventions_Examples.Program Coding_Conventions_Examples Coding Conventions Examples true diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/TaskScheduler/FromCurrentSynchronizationContext/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/TaskScheduler/FromCurrentSynchronizationContext/csharp/Project.csproj index adcc408e46f06..74ea662d1d0e3 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/TaskScheduler/FromCurrentSynchronizationContext/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/TaskScheduler/FromCurrentSynchronizationContext/csharp/Project.csproj @@ -2,7 +2,7 @@ Exe - net6.0-windows + net8.0-windows true diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlDocument/Overview/csharp/xmlprocessingapp.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlDocument/Overview/csharp/xmlprocessingapp.csproj index fc37f491db58f..ea644a76cfc2d 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlDocument/Overview/csharp/xmlprocessingapp.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlDocument/Overview/csharp/xmlprocessingapp.csproj @@ -2,7 +2,7 @@ Exe - net6.0-windows + net8.0-windows true XMLProcessingApp.Program diff --git a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF1/WPFCrossThreadCS.csproj b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF1/WPFCrossThreadCS.csproj index 0165123cbed2f..f7d48768d1c82 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF1/WPFCrossThreadCS.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF1/WPFCrossThreadCS.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows True diff --git a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF2/WPFCrossThreadDispatcherCS.csproj b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF2/WPFCrossThreadDispatcherCS.csproj index 0165123cbed2f..f7d48768d1c82 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF2/WPFCrossThreadDispatcherCS.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WPF2/WPFCrossThreadDispatcherCS.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows True diff --git a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WinForms/WFCrossThreadCS.csproj b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WinForms/WFCrossThreadCS.csproj index 9aaa759380016..8557eab25f30f 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WinForms/WFCrossThreadCS.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/csharp/WinForms/WFCrossThreadCS.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows True WFCrossThreadCS.Form1 diff --git a/docs/fundamentals/runtime-libraries/system-byte.md b/docs/fundamentals/runtime-libraries/system-byte.md index 082fa7a03c2b6..87df47465cf1f 100644 --- a/docs/fundamentals/runtime-libraries/system-byte.md +++ b/docs/fundamentals/runtime-libraries/system-byte.md @@ -67,7 +67,7 @@ You can also format a value as a binary, octal, decimal, or h ## Work with non-decimal Byte values -In addition to working with individual bytes as decimal values, you may want to perform bitwise operations with byte values, or work with byte arrays or with the binary or hexadecimal representations of byte values. For example, overloads of the method can convert each of the primitive data types to a byte array, and the method converts a value to a byte array. +In addition to working with individual bytes as decimal values, you might want to perform bitwise operations with byte values, or work with byte arrays or with the binary or hexadecimal representations of byte values. For example, overloads of the method can convert each of the primitive data types to a byte array, and the method converts a value to a byte array. values are represented in 8 bits by their magnitude only, without a sign bit. This is important to keep in mind when you perform bitwise operations on values or when you work with individual bits. To perform a numeric, Boolean, or comparison operation on any two non-decimal values, both values must use the same representation. diff --git a/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/csharp/projectcs.csproj b/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/csharp/projectcs.csproj index 855c4f05f1f52..34a1d498fe1da 100644 --- a/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/csharp/projectcs.csproj +++ b/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/csharp/projectcs.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows true diff --git a/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/vb/projectvb.vbproj b/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/vb/projectvb.vbproj index 1393b9f80d7c5..0a770b95a693c 100644 --- a/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/vb/projectvb.vbproj +++ b/docs/standard/asynchronous-programming-patterns/snippets/component-that-supports-the-event-based-asynchronous-pattern/vb/projectvb.vbproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows true AsyncPattern diff --git a/docs/standard/base-types/formatting-types.md b/docs/standard/base-types/formatting-types.md index 779c0452911bd..11e44f634795e 100644 --- a/docs/standard/base-types/formatting-types.md +++ b/docs/standard/base-types/formatting-types.md @@ -303,7 +303,7 @@ Some methods, such as interface and supports format strings. You do this by following the format item's index with a `:` (colon) followed by a valid format string. The previous example did this by formatting a date value with the "d" (short date pattern) format string (for example, `{0:d}`) and by formatting a numeric value with the "C2" format string (for example, `{2:C2}` to represent the number as a currency value with two fractional decimal digits. +- The specific way in which an object is represented as a string, if the object implements the interface and supports format strings. You do this by following the format item's index with a `:` (colon) followed by a valid format string. The previous example did this by formatting a date value with the "d" (short date pattern) format string (for example, `{0:d}`) and by formatting a numeric value with the "C2" format string (for example, `{2:C2}`) to represent the number as a currency value with two fractional decimal digits. - The width of the field that contains the object's string representation, and the alignment of the string representation in that field. You do this by following the format item's index with a `,` (comma) followed the field width. The string is right-aligned in the field if the field width is a positive value, and it is left-aligned if the field width is a negative value. The following example left-aligns date values in a 20-character field, and it right-aligns decimal values with one fractional digit in an 11-character field. @@ -332,8 +332,8 @@ The following example uses the `ByteByByteFormatter` class to format integer val ## See also -|Title|Definition| -|-----------|----------------| +| Title | Definition | +|-------|------------| |[Standard Numeric Format Strings](standard-numeric-format-strings.md)|Describes standard format strings that create commonly used string representations of numeric values.| |[Custom Numeric Format Strings](custom-numeric-format-strings.md)|Describes custom format strings that create application-specific formats for numeric values.| |[Standard Date and Time Format Strings](standard-date-and-time-format-strings.md)|Describes standard format strings that create commonly used string representations of values.| diff --git a/docs/standard/io/snippets/add-remove-acls/csharp/Project.csproj b/docs/standard/io/snippets/add-remove-acls/csharp/Project.csproj index 004b8fa52d840..5a4ec27d1a694 100644 --- a/docs/standard/io/snippets/add-remove-acls/csharp/Project.csproj +++ b/docs/standard/io/snippets/add-remove-acls/csharp/Project.csproj @@ -2,7 +2,7 @@ Exe - net8-windows + net8.0-windows diff --git a/docs/standard/serialization/binaryformatter-event-source.md b/docs/standard/serialization/binaryformatter-event-source.md index d99426a22531d..bf5a22a52221d 100644 --- a/docs/standard/serialization/binaryformatter-event-source.md +++ b/docs/standard/serialization/binaryformatter-event-source.md @@ -60,9 +60,9 @@ This event contains a payload with one argument. * `typeName` (`string`): The assembly-qualified name (see ) of the type being deserialized. -### \[Advanced\] Subscribing to a subset of notifications +### \[Advanced\] Subscribe to a subset of notifications -Listeners who wish to subscribe to only a subset of notifications can choose which keywords to enable. +Listeners that want to subscribe to only a subset of notifications can choose which keywords to enable. * `Serialization` = `(EventKeywords)1`: Raises the `SerializationStart`, `SerializationEnd`, and `SerializingObject` events. * `Deserialization` = `(EventKeywords)2`: Raises the `DeserializationStart`, `DeserializationEnd`, and `DeserializingObject` events. @@ -75,10 +75,10 @@ For more information, see Exe - net6.0 + net8.0 enable 9.0 diff --git a/docs/standard/serialization/system-text-json/snippets/how-to-6-0/csharp/SystemTextJsonSamples.csproj b/docs/standard/serialization/system-text-json/snippets/how-to-6-0/csharp/SystemTextJsonSamples.csproj index 9d3b3e51287cd..5ac2db608ee85 100644 --- a/docs/standard/serialization/system-text-json/snippets/how-to-6-0/csharp/SystemTextJsonSamples.csproj +++ b/docs/standard/serialization/system-text-json/snippets/how-to-6-0/csharp/SystemTextJsonSamples.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 SystemTextJsonSamples.Program enable enable diff --git a/docs/standard/threading/cancellation-in-managed-threads.md b/docs/standard/threading/cancellation-in-managed-threads.md index fdb57ef2c7ff6..0f2d349726e17 100644 --- a/docs/standard/threading/cancellation-in-managed-threads.md +++ b/docs/standard/threading/cancellation-in-managed-threads.md @@ -2,154 +2,154 @@ title: "Cancellation in Managed Threads" description: Understand cancellation in managed threads. Learn about cancellation tokens in cooperative cancellation of asynchronous or long-running synchronous operations. ms.date: "03/30/2017" -dev_langs: +dev_langs: - "csharp" - "vb" -helpviewer_keywords: +helpviewer_keywords: - "cancellation in .NET, overview" ms.assetid: eea11fe5-d8b0-4314-bb5d-8a58166fb1c3 --- # Cancellation in Managed Threads -Starting with .NET Framework 4, .NET uses a unified model for cooperative cancellation of asynchronous or long-running synchronous operations. This model is based on a lightweight object called a cancellation token. The object that invokes one or more cancelable operations, for example by creating new threads or tasks, passes the token to each operation. Individual operations can in turn pass copies of the token to other operations. At some later time, the object that created the token can use it to request that the operations stop what they are doing. Only the requesting object can issue the cancellation request, and each listener is responsible for noticing the request and responding to it in an appropriate and timely manner. - -The general pattern for implementing the cooperative cancellation model is: - -- Instantiate a object, which manages and sends cancellation notification to the individual cancellation tokens. - -- Pass the token returned by the property to each task or thread that listens for cancellation. - -- Provide a mechanism for each task or thread to respond to cancellation. - -- Call the method to provide notification of cancellation. - +Starting with .NET Framework 4, .NET uses a unified model for cooperative cancellation of asynchronous or long-running synchronous operations. This model is based on a lightweight object called a cancellation token. The object that invokes one or more cancelable operations, for example by creating new threads or tasks, passes the token to each operation. Individual operations can in turn pass copies of the token to other operations. At some later time, the object that created the token can use it to request that the operations stop what they are doing. Only the requesting object can issue the cancellation request, and each listener is responsible for noticing the request and responding to it in an appropriate and timely manner. + +The general pattern for implementing the cooperative cancellation model is: + +- Instantiate a object, which manages and sends cancellation notification to the individual cancellation tokens. + +- Pass the token returned by the property to each task or thread that listens for cancellation. + +- Provide a mechanism for each task or thread to respond to cancellation. + +- Call the method to provide notification of cancellation. + > [!IMPORTANT] -> The class implements the interface. You should be sure to call the method when you have finished using the cancellation token source to free any unmanaged resources it holds. - - The following illustration shows the relationship between a token source and all the copies of its token. - - ![CancellationTokenSource and cancellation tokens](media/vs-cancellationtoken.png "VS_CancellationToken") - - The cooperative cancellation model makes it easier to create cancellation-aware applications and libraries, and it supports the following features: - -- Cancellation is cooperative and is not forced on the listener. The listener determines how to gracefully terminate in response to a cancellation request. - -- Requesting is distinct from listening. An object that invokes a cancelable operation can control when (if ever) cancellation is requested. - -- The requesting object issues the cancellation request to all copies of the token by using just one method call. - -- A listener can listen to multiple tokens simultaneously by joining them into one *linked token*. - -- User code can notice and respond to cancellation requests from library code, and library code can notice and respond to cancellation requests from user code. - -- Listeners can be notified of cancellation requests by polling, callback registration, or waiting on wait handles. - -## Cancellation Types - - The cancellation framework is implemented as a set of related types, which are listed in the following table. - -|Type name|Description| -|---------------|-----------------| -||Object that creates a cancellation token, and also issues the cancellation request for all copies of that token.| -||Lightweight value type passed to one or more listeners, typically as a method parameter. Listeners monitor the value of the `IsCancellationRequested` property of the token by polling, callback, or wait handle.| -||Overloads of this exception's constructor accept a as a parameter. Listeners can optionally throw this exception to verify the source of the cancellation and notify others that it has responded to a cancellation request.| - - The cancellation model is integrated into .NET in several types. The most important ones are , , and . We recommend that you use this cooperative cancellation model for all new library and application code. - -## Code Example - - In the following example, the requesting object creates a object, and then passes its property to the cancelable operation. The operation that receives the request monitors the value of the property of the token by polling. When the value becomes `true`, the listener can terminate in whatever manner is appropriate. In this example, the method just exits, which is all that is required in many cases. - +> The class implements the interface. You should be sure to call the method when you have finished using the cancellation token source to free any unmanaged resources it holds. + + The following illustration shows the relationship between a token source and all the copies of its token. + + ![CancellationTokenSource and cancellation tokens](media/vs-cancellationtoken.png "VS_CancellationToken") + + The cooperative cancellation model makes it easier to create cancellation-aware applications and libraries, and it supports the following features: + +- Cancellation is cooperative and is not forced on the listener. The listener determines how to gracefully terminate in response to a cancellation request. + +- Requesting is distinct from listening. An object that invokes a cancelable operation can control when (if ever) cancellation is requested. + +- The requesting object issues the cancellation request to all copies of the token by using just one method call. + +- A listener can listen to multiple tokens simultaneously by joining them into one *linked token*. + +- User code can notice and respond to cancellation requests from library code, and library code can notice and respond to cancellation requests from user code. + +- Listeners can be notified of cancellation requests by polling, callback registration, or waiting on wait handles. + +## Cancellation Types + + The cancellation framework is implemented as a set of related types, which are listed in the following table. + +|Type name|Description| +|---------------|-----------------| +||Object that creates a cancellation token, and also issues the cancellation request for all copies of that token.| +||Lightweight value type passed to one or more listeners, typically as a method parameter. Listeners monitor the value of the `IsCancellationRequested` property of the token by polling, callback, or wait handle.| +||Overloads of this exception's constructor accept a as a parameter. Listeners can optionally throw this exception to verify the source of the cancellation and notify others that it has responded to a cancellation request.| + + The cancellation model is integrated into .NET in several types. The most important ones are , , and . We recommend that you use this cooperative cancellation model for all new library and application code. + +## Code Example + + In the following example, the requesting object creates a object, and then passes its property to the cancelable operation. The operation that receives the request monitors the value of the property of the token by polling. When the value becomes `true`, the listener can terminate in whatever manner is appropriate. In this example, the method just exits, which is all that is required in many cases. + > [!NOTE] -> The example uses the method to demonstrate that the cooperative cancellation framework is compatible with legacy APIs. For an example that uses the preferred type, see [How to: Cancel a Task and Its Children](../parallel-programming/how-to-cancel-a-task-and-its-children.md). - +> The example uses the method to demonstrate that the cooperative cancellation framework is compatible with legacy APIs. For an example that uses the preferred type, see [How to: Cancel a Task and Its Children](../parallel-programming/how-to-cancel-a-task-and-its-children.md). + [!code-csharp[Cancellation#1](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex1.cs#1)] - [!code-vb[Cancellation#1](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex1.vb#1)] - -## Operation Cancellation Versus Object Cancellation - - In the cooperative cancellation framework, cancellation refers to operations, not objects. The cancellation request means that the operation should stop as soon as possible after any required cleanup is performed. One cancellation token should refer to one "cancelable operation," however that operation may be implemented in your program. After the property of the token has been set to `true`, it cannot be reset to `false`. Therefore, cancellation tokens cannot be reused after they have been canceled. - - If you require an object cancellation mechanism, you can base it on the operation cancellation mechanism by calling the method, as shown in the following example. - + [!code-vb[Cancellation#1](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex1.vb#1)] + +## Operation Cancellation Versus Object Cancellation + + In the cooperative cancellation framework, cancellation refers to operations, not objects. The cancellation request means that the operation should stop as soon as possible after any required cleanup is performed. One cancellation token should refer to one "cancelable operation," however that operation may be implemented in your program. After the property of the token has been set to `true`, it cannot be reset to `false`. Therefore, cancellation tokens cannot be reused after they have been canceled. + + If you require an object cancellation mechanism, you can base it on the operation cancellation mechanism by calling the method, as shown in the following example. + [!code-csharp[Cancellation#2](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/objectcancellation1.cs#2)] - [!code-vb[Cancellation#2](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/objectcancellation1.vb#2)] - - If an object supports more than one concurrent cancelable operation, pass a separate token as input to each distinct cancelable operation. That way, one operation can be cancelled without affecting the others. - -## Listening and Responding to Cancellation Requests - - In the user delegate, the implementer of a cancelable operation determines how to terminate the operation in response to a cancellation request. In many cases, the user delegate can just perform any required cleanup and then return immediately. - - However, in more complex cases, it might be necessary for the user delegate to notify library code that cancellation has occurred. In such cases, the correct way to terminate the operation is for the delegate to call the , method, which will cause an to be thrown. Library code can catch this exception on the user delegate thread and examine the exception's token to determine whether the exception indicates cooperative cancellation or some other exceptional situation. - - The class handles in this way. For more information, see [Task Cancellation](../parallel-programming/task-cancellation.md). - -### Listening by Polling - - For long-running computations that loop or recurse, you can listen for a cancellation request by periodically polling the value of the property. If its value is `true`, the method should clean up and terminate as quickly as possible. The optimal frequency of polling depends on the type of application. It is up to the developer to determine the best polling frequency for any given program. Polling itself does not significantly impact performance. The following example shows one possible way to poll. - + [!code-vb[Cancellation#2](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/objectcancellation1.vb#2)] + + If an object supports more than one concurrent cancelable operation, pass a separate token as input to each distinct cancelable operation. That way, one operation can be cancelled without affecting the others. + +## Listening and Responding to Cancellation Requests + + In the user delegate, the implementer of a cancelable operation determines how to terminate the operation in response to a cancellation request. In many cases, the user delegate can just perform any required cleanup and then return immediately. + + However, in more complex cases, it might be necessary for the user delegate to notify library code that cancellation has occurred. In such cases, the correct way to terminate the operation is for the delegate to call the , method, which will cause an to be thrown. Library code can catch this exception on the user delegate thread and examine the exception's token to determine whether the exception indicates cooperative cancellation or some other exceptional situation. + + The class handles in this way. For more information, see [Task Cancellation](../parallel-programming/task-cancellation.md). + +### Listening by Polling + + For long-running computations that loop or recurse, you can listen for a cancellation request by periodically polling the value of the property. If its value is `true`, the method should clean up and terminate as quickly as possible. The optimal frequency of polling depends on the type of application. It is up to the developer to determine the best polling frequency for any given program. Polling itself does not significantly impact performance. The following example shows one possible way to poll. + [!code-csharp[Cancellation#3](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex11.cs#3)] - [!code-vb[Cancellation#3](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex11.vb#3)] - - For a more complete example, see [How to: Listen for Cancellation Requests by Polling](how-to-listen-for-cancellation-requests-by-polling.md). - -### Listening by Registering a Callback - - Some operations can become blocked in such a way that they cannot check the value of the cancellation token in a timely manner. For these cases, you can register a callback method that unblocks the method when a cancellation request is received. - - The method returns a object that is used specifically for this purpose. The following example shows how to use the method to cancel an asynchronous Web request. - + [!code-vb[Cancellation#3](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex11.vb#3)] + + For a more complete example, see [How to: Listen for Cancellation Requests by Polling](how-to-listen-for-cancellation-requests-by-polling.md). + +### Listening by Registering a Callback + + Some operations can become blocked in such a way that they cannot check the value of the cancellation token in a timely manner. For these cases, you can register a callback method that unblocks the method when a cancellation request is received. + + The method returns a object that is used specifically for this purpose. The following example shows how to use the method to cancel an asynchronous web request. + [!code-csharp[Cancellation#4](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex4.cs#4)] - [!code-vb[Cancellation#4](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex4.vb#4)] - - The object manages thread synchronization and ensures that the callback will stop executing at a precise point in time. - - In order to ensure system responsiveness and to avoid deadlocks, the following guidelines must be followed when registering callbacks: - -- The callback method should be fast because it is called synchronously and therefore the call to does not return until the callback returns. - -- If you call while the callback is running, and you hold a lock that the callback is waiting on, your program can deadlock. After `Dispose` returns, you can free any resources required by the callback. - -- Callbacks should not perform any manual thread or usage in a callback. If a callback must run on a particular thread, use the constructor that enables you to specify that the target syncContext is the active . Performing manual threading in a callback can cause deadlock. - - For a more complete example, see [How to: Register Callbacks for Cancellation Requests](how-to-register-callbacks-for-cancellation-requests.md). - -### Listening by Using a Wait Handle - - When a cancelable operation can block while it waits on a synchronization primitive such as a or , you can use the property to enable the operation to wait on both the event and the cancellation request. The wait handle of the cancellation token will become signaled in response to a cancellation request, and the method can use the return value of the method to determine whether it was the cancellation token that signaled. The operation can then just exit, or throw an , as appropriate. - + [!code-vb[Cancellation#4](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex4.vb#4)] + + The object manages thread synchronization and ensures that the callback will stop executing at a precise point in time. + + In order to ensure system responsiveness and to avoid deadlocks, the following guidelines must be followed when registering callbacks: + +- The callback method should be fast because it is called synchronously and therefore the call to does not return until the callback returns. + +- If you call while the callback is running, and you hold a lock that the callback is waiting on, your program can deadlock. After `Dispose` returns, you can free any resources required by the callback. + +- Callbacks should not perform any manual thread or usage in a callback. If a callback must run on a particular thread, use the constructor that enables you to specify that the target syncContext is the active . Performing manual threading in a callback can cause deadlock. + + For a more complete example, see [How to: Register Callbacks for Cancellation Requests](how-to-register-callbacks-for-cancellation-requests.md). + +### Listening by Using a Wait Handle + + When a cancelable operation can block while it waits on a synchronization primitive such as a or , you can use the property to enable the operation to wait on both the event and the cancellation request. The wait handle of the cancellation token will become signaled in response to a cancellation request, and the method can use the return value of the method to determine whether it was the cancellation token that signaled. The operation can then just exit, or throw an , as appropriate. + [!code-csharp[Cancellation#5](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex9.cs#5)] - [!code-vb[Cancellation#5](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex9.vb#5)] - - and both support the cancellation framework in their `Wait` methods. You can pass the to the method, and when the cancellation is requested, the event wakes up and throws an . - + [!code-vb[Cancellation#5](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex9.vb#5)] + + and both support the cancellation framework in their `Wait` methods. You can pass the to the method, and when the cancellation is requested, the event wakes up and throws an . + [!code-csharp[Cancellation#6](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex10.cs#6)] - [!code-vb[Cancellation#6](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex10.vb#6)] - - For a more complete example, see [How to: Listen for Cancellation Requests That Have Wait Handles](how-to-listen-for-cancellation-requests-that-have-wait-handles.md). - -### Listening to Multiple Tokens Simultaneously - - In some cases, a listener may have to listen to multiple cancellation tokens simultaneously. For example, a cancelable operation may have to monitor an internal cancellation token in addition to a token passed in externally as an argument to a method parameter. To accomplish this, create a linked token source that can join two or more tokens into one token, as shown in the following example. - + [!code-vb[Cancellation#6](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex10.vb#6)] + + For a more complete example, see [How to: Listen for Cancellation Requests That Have Wait Handles](how-to-listen-for-cancellation-requests-that-have-wait-handles.md). + +### Listening to Multiple Tokens Simultaneously + + In some cases, a listener may have to listen to multiple cancellation tokens simultaneously. For example, a cancelable operation may have to monitor an internal cancellation token in addition to a token passed in externally as an argument to a method parameter. To accomplish this, create a linked token source that can join two or more tokens into one token, as shown in the following example. + [!code-csharp[Cancellation#7](../../../samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex13.cs#7)] - [!code-vb[Cancellation#7](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex13.vb#7)] - - Notice that you must call `Dispose` on the linked token source when you are done with it. For a more complete example, see [How to: Listen for Multiple Cancellation Requests](how-to-listen-for-multiple-cancellation-requests.md). - -## Cooperation Between Library Code and User Code - - The unified cancellation framework makes it possible for library code to cancel user code, and for user code to cancel library code in a cooperative manner. Smooth cooperation depends on each side following these guidelines: - -- If library code provides cancelable operations, it should also provide public methods that accept an external cancellation token so that user code can request cancellation. - -- If library code calls into user code, the library code should interpret an OperationCanceledException(externalToken) as *cooperative cancellation*, and not necessarily as a failure exception. - -- User-delegates should attempt to respond to cancellation requests from library code in a timely manner. - - and are examples of classes that follow these guidelines. For more information, see [Task Cancellation](../parallel-programming/task-cancellation.md) and [How to: Cancel a PLINQ Query](../parallel-programming/how-to-cancel-a-plinq-query.md). - + [!code-vb[Cancellation#7](../../../samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex13.vb#7)] + + Notice that you must call `Dispose` on the linked token source when you are done with it. For a more complete example, see [How to: Listen for Multiple Cancellation Requests](how-to-listen-for-multiple-cancellation-requests.md). + +## Cooperation Between Library Code and User Code + + The unified cancellation framework makes it possible for library code to cancel user code, and for user code to cancel library code in a cooperative manner. Smooth cooperation depends on each side following these guidelines: + +- If library code provides cancelable operations, it should also provide public methods that accept an external cancellation token so that user code can request cancellation. + +- If library code calls into user code, the library code should interpret an OperationCanceledException(externalToken) as *cooperative cancellation*, and not necessarily as a failure exception. + +- User-delegates should attempt to respond to cancellation requests from library code in a timely manner. + + and are examples of classes that follow these guidelines. For more information, see [Task Cancellation](../parallel-programming/task-cancellation.md) and [How to: Cancel a PLINQ Query](../parallel-programming/how-to-cancel-a-plinq-query.md). + ## See also - [Managed Threading Basics](managed-threading-basics.md) diff --git a/docs/standard/threading/snippets/scheduling-threads/ThreadSnippets.csproj b/docs/standard/threading/snippets/scheduling-threads/ThreadSnippets.csproj index 16e62dd96d57b..da5c1df56647f 100644 --- a/docs/standard/threading/snippets/scheduling-threads/ThreadSnippets.csproj +++ b/docs/standard/threading/snippets/scheduling-threads/ThreadSnippets.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable enable diff --git a/docs/visual-basic/programming-guide/language-features/procedures/snippets/how-to-call-an-event-handler/CallEventHandler.vbproj b/docs/visual-basic/programming-guide/language-features/procedures/snippets/how-to-call-an-event-handler/CallEventHandler.vbproj index 9febcdad49474..b69507c34eae8 100644 --- a/docs/visual-basic/programming-guide/language-features/procedures/snippets/how-to-call-an-event-handler/CallEventHandler.vbproj +++ b/docs/visual-basic/programming-guide/language-features/procedures/snippets/how-to-call-an-event-handler/CallEventHandler.vbproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows CallEventHandler CallEventHandler.SpecialForm true diff --git a/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/DotNetLib/DotNetLib.csproj b/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/DotNetLib/DotNetLib.csproj index d178b80b5513c..feef8c930045c 100644 --- a/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/DotNetLib/DotNetLib.csproj +++ b/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/DotNetLib/DotNetLib.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable true diff --git a/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/NativeHost/NativeHost.csproj b/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/NativeHost/NativeHost.csproj index 2e440b10d14b8..f5e09783c5ce7 100644 --- a/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/NativeHost/NativeHost.csproj +++ b/samples/snippets/core/tutorials/netcore-hosting/csharp/HostWithHostFxr/src/NativeHost/NativeHost.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 @@ -50,7 +50,7 @@ - + diff --git a/samples/snippets/core/tutorials/testing-with-cli/csharp/src/NewTypes/NewTypes.csproj b/samples/snippets/core/tutorials/testing-with-cli/csharp/src/NewTypes/NewTypes.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/core/tutorials/testing-with-cli/csharp/src/NewTypes/NewTypes.csproj +++ b/samples/snippets/core/tutorials/testing-with-cli/csharp/src/NewTypes/NewTypes.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/core/tutorials/testing-with-cli/csharp/test/NewTypesTests/NewTypesTests.csproj b/samples/snippets/core/tutorials/testing-with-cli/csharp/test/NewTypesTests/NewTypesTests.csproj index bc7208d78ec2f..360a117309dec 100644 --- a/samples/snippets/core/tutorials/testing-with-cli/csharp/test/NewTypesTests/NewTypesTests.csproj +++ b/samples/snippets/core/tutorials/testing-with-cli/csharp/test/NewTypesTests/NewTypesTests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlDataAdapter.SqlDataAdapter Example/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlDataAdapter.SqlDataAdapter Example/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlDataAdapter.SqlDataAdapter Example/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlDataAdapter.SqlDataAdapter Example/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks BulkCopy.Single/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks BulkCopy.Single/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks BulkCopy.Single/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks BulkCopy.Single/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfig/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfig/CS/Project.csproj index ba6a61c778616..6ae2b895a86f3 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfig/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfig/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfigByName/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfigByName/CS/Project.csproj index b2266746e8036..6ae2b895a86f3 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfigByName/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStringSettings.RetrieveFromConfigByName/CS/Project.csproj @@ -2,12 +2,12 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStrings.Encrypt/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStrings.Encrypt/CS/Project.csproj index ba6a61c778616..6ae2b895a86f3 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStrings.Encrypt/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks ConnectionStrings.Encrypt/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.AcceptRejectRule/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.AcceptRejectRule/CS/Project.csproj index b1a5d0362cc4c..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.AcceptRejectRule/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.AcceptRejectRule/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableAdd/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableAdd/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableAdd/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableAdd/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableNavigation/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableNavigation/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableNavigation/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableNavigation/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableRelation/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableRelation/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableRelation/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataTableRelation/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.Merge/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.Merge/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.Merge/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.Merge/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.MergeAcceptChanges/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.MergeAcceptChanges/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.MergeAcceptChanges/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataSet.MergeAcceptChanges/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.CreateDataReader/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.CreateDataReader/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.CreateDataReader/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.CreateDataReader/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.Events/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.Events/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.Events/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTable.Events/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTableReader.NextResult/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTableReader.NextResult/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTableReader.NextResult/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DataTableReader.NextResult/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommand/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommand/CS/Project.csproj index d39a45a37e67a..22f87dbcc500a 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommand/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommand/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommandData/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommandData/CS/Project.csproj index ba6a61c778616..6ae2b895a86f3 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommandData/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbCommandData/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapter/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapter/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapter/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapter/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapterModify/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapterModify/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapterModify/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.DbDataAdapterModify/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.GetFactory/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.GetFactory/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.GetFactory/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories.GetFactory/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks DbProviderFactories/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Param/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Param/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Param/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Param/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Photo/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Photo/CS/Project.csproj index 4ec1cbca1066b..a8d55cf86bb70 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Photo/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks LargeValueType.Photo/CS/Project.csproj @@ -2,12 +2,12 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks OleDb.JetAutonumberMerge/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks OleDb.JetAutonumberMerge/CS/Project.csproj index 87fea57456f7d..b7e9de789635d 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks OleDb.JetAutonumberMerge/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks OleDb.JetAutonumberMerge/CS/Project.csproj @@ -2,12 +2,12 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Odbc/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Odbc/CS/Project.csproj index cad91e091d02d..273e8ded36c93 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Odbc/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Odbc/CS/Project.csproj @@ -2,12 +2,12 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.OleDb/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.OleDb/CS/Project.csproj index 1451eb122fc60..b7e9de789635d 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.OleDb/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.OleDb/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Oracle/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Oracle/CS/Project.csproj index abf073487c574..a224c25a99d79 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Oracle/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.Oracle/CS/Project.csproj @@ -2,12 +2,12 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.SqlClient/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.SqlClient/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.SqlClient/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SampleApp.SqlClient/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.Demo/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.Demo/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.Demo/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.Demo/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.DemoUpdate/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.DemoUpdate/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.DemoUpdate/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SnapshotIsolation.DemoUpdate/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.ColumnMappingOrdersDetails/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.ColumnMappingOrdersDetails/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.ColumnMappingOrdersDetails/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.ColumnMappingOrdersDetails/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.DefaultTransaction/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.DefaultTransaction/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.DefaultTransaction/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.DefaultTransaction/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.InternalTransaction/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.InternalTransaction/CS/Project.csproj index b1a5d0362cc4c..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.InternalTransaction/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.InternalTransaction/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.SqlTransaction/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.SqlTransaction/CS/Project.csproj index b1a5d0362cc4c..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.SqlTransaction/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlBulkCopy.SqlTransaction/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.DataAdapterUpdate/CS/SqlAdapter.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.DataAdapterUpdate/CS/SqlAdapter.csproj index c8812d6b73f55..f503809f2c322 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.DataAdapterUpdate/CS/SqlAdapter.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.DataAdapterUpdate/CS/SqlAdapter.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetSchemaTable/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetSchemaTable/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetSchemaTable/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetSchemaTable/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetXmlDataReader/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetXmlDataReader/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetXmlDataReader/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.GetXmlDataReader/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.HasRows/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.HasRows/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.HasRows/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.HasRows/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.MergeIdentity/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.MergeIdentity/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.MergeIdentity/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.MergeIdentity/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.NextResult/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.NextResult/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.NextResult/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.NextResult/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.RetrieveIdentityStoredProcedure/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.RetrieveIdentityStoredProcedure/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.RetrieveIdentityStoredProcedure/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.RetrieveIdentityStoredProcedure/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.SprocIdentityReturn/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.SprocIdentityReturn/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.SprocIdentityReturn/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.SprocIdentityReturn/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.StoredProcedure/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.StoredProcedure/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.StoredProcedure/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlClient.StoredProcedure/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlCommand.ExecuteScalar/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlCommand.ExecuteScalar/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlCommand.ExecuteScalar/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlCommand.ExecuteScalar/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlNotification.Perms/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlNotification.Perms/CS/Project.csproj index d9033f55b0bb3..c527e4605163a 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlNotification.Perms/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlNotification.Perms/CS/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTransaction.Local/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTransaction.Local/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTransaction.Local/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTransaction.Local/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.CompareNulls/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.CompareNulls/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.CompareNulls/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.CompareNulls/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.GetTypeAW/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.GetTypeAW/CS/Project.csproj index cd601686e2257..50c8db8d85dfa 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.GetTypeAW/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.GetTypeAW/CS/Project.csproj @@ -2,11 +2,11 @@ Library - net6.0 + net8.0 enable - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.Guid/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.Guid/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.Guid/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.Guid/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.IsNull/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.IsNull/CS/Project.csproj index c7deb0b8e139c..e90c6d6e93c98 100644 --- a/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.IsNull/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlTypes.IsNull/CS/Project.csproj @@ -2,10 +2,10 @@ Library - net6.0 + net8.0 - + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractenumerations/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractenumerations/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractenumerations/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractenumerations/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractnames/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractnames/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractnames/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractnames/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractversioning/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractversioning/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractversioning/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/c_datacontractversioning/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_knowntypeattribute/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/c_knowntypeattribute/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/c_knowntypeattribute/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/c_knowntypeattribute/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/c_standalonedatacontractserializer/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/c_standalonedatacontractserializer/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/c_standalonedatacontractserializer/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/c_standalonedatacontractserializer/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/datacontractattribute/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/datacontractattribute/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/datacontractattribute/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/datacontractattribute/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/datamemberattribute/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/datamemberattribute/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/datamemberattribute/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/datamemberattribute/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CFX/tx_enlist/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CFX/tx_enlist/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CFX/tx_enlist/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CFX/tx_enlist/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/ADCreateDomain/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/ADCreateDomain/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/ADCreateDomain/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/ADCreateDomain/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Asynchronous_File_IO_async/cs/AsynchronousFileIO.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Asynchronous_File_IO_async/cs/AsynchronousFileIO.csproj index 8c027c31d63e6..5520a18838d89 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Asynchronous_File_IO_async/cs/AsynchronousFileIO.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Asynchronous_File_IO_async/cs/AsynchronousFileIO.csproj @@ -1,7 +1,7 @@  - net6.0-windows + net8.0-windows enable true false diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Interop.PInvoke/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Interop.PInvoke/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Interop.PInvoke/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Interop.PInvoke/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Threading.Resuming/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Threading.Resuming/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Threading.Resuming/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Conceptual.Threading.Resuming/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/CryptoWalkThru/cs/cryptowalkthru.csproj b/samples/snippets/csharp/VS_Snippets_CLR/CryptoWalkThru/cs/cryptowalkthru.csproj index 007bda0faf79e..c14ba8326ccb3 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/CryptoWalkThru/cs/cryptowalkthru.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/CryptoWalkThru/cs/cryptowalkthru.csproj @@ -1,6 +1,6 @@ - net6.0-windows + net8.0-windows WinExe false true @@ -10,4 +10,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Cryptography.SmartCardCSP/CS/cryptography.smartcardcsp.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Cryptography.SmartCardCSP/CS/cryptography.smartcardcsp.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Cryptography.SmartCardCSP/CS/cryptography.smartcardcsp.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Cryptography.SmartCardCSP/CS/cryptography.smartcardcsp.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/DynamicMethodHowTo/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/DynamicMethodHowTo/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/DynamicMethodHowTo/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/DynamicMethodHowTo/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.DateAndTime.Custom/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.DateAndTime.Custom/cs/Project.csproj index c258ea5606282..38c3c5afae2c9 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.DateAndTime.Custom/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.DateAndTime.Custom/cs/Project.csproj @@ -1,6 +1,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.Calendar/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.Calendar/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.Calendar/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.Calendar/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.NumericValue/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.NumericValue/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.NumericValue/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.NumericValue/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.PadNumber/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.PadNumber/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.PadNumber/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.HowTo.PadNumber/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.Numeric.Standard/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.Numeric.Standard/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Formatting.Numeric.Standard/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Formatting.Numeric.Standard/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/GCNotification/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/GCNotification/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/GCNotification/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/GCNotification/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/cs/decryptxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/cs/decryptxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/cs/decryptxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/cs/decryptxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementX509/cs/decryptxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementX509/cs/decryptxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementX509/cs/decryptxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToDecryptXMLElementX509/cs/decryptxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/cs/encryptxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/cs/encryptxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/cs/encryptxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/cs/encryptxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/cs/encryptxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/cs/encryptxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/cs/encryptxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/cs/encryptxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementX509/cs/encryptxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementX509/cs/encryptxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementX509/cs/encryptxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToEncryptXMLElementX509/cs/encryptxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToSignXMLDocumentRSA/cs/signxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToSignXMLDocumentRSA/cs/signxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToSignXMLDocumentRSA/cs/signxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToSignXMLDocumentRSA/cs/signxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/cs/verifyxml.csproj b/samples/snippets/csharp/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/cs/verifyxml.csproj index 0e7b885f09151..ba8fb029b6251 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/cs/verifyxml.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/cs/verifyxml.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/IO.Compression.GZip1/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/IO.Compression.GZip1/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/IO.Compression.GZip1/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/IO.Compression.GZip1/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Classes/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Classes/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Classes/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Classes/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.ChangeDateFormats/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.ChangeDateFormats/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.ChangeDateFormats/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.ChangeDateFormats/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.StripChars/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.StripChars/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.StripChars/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Examples.StripChars/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers.Greedy/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers.Greedy/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers.Greedy/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers.Greedy/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/RegularExpressions.Quantifiers/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Strings.ChangingCase/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Strings.ChangingCase/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Strings.ChangingCase/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Strings.ChangingCase/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/Strings.Creating/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/Strings.Creating/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/Strings.Creating/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/Strings.Creating/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/appcompat.ignoreemptykeysequences/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/appcompat.ignoreemptykeysequences/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/appcompat.ignoreemptykeysequences/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/appcompat.ignoreemptykeysequences/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/appcompat.sslprotocols/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/appcompat.sslprotocols/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/appcompat.sslprotocols/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/appcompat.sslprotocols/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleaction/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleaction/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleaction/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleaction/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleienum/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleienum/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleienum/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/cocontrasimpleienum/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegates/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegates/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegates/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegates/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegatesgenrelaxed/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegatesgenrelaxed/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegatesgenrelaxed/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/cocontravariancedelegatesgenrelaxed/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici2/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici2/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici2/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/cocontravarianceinclrgenerici2/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.cancellation.callback/cs/cs.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.cancellation.callback/cs/cs.csproj index 4de80482caabb..8d2b2325b0b6c 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.cancellation.callback/cs/cs.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.cancellation.callback/cs/cs.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.choosingdates/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.choosingdates/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.choosingdates/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.choosingdates/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.conversion/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.conversion/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.conversion/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.conversion/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.disposable/cs/using.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.disposable/cs/using.csproj index 14459ca104675..b4afd74f50659 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.disposable/cs/using.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.disposable/cs/using.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable SingleStatementMultiple diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/Formatting-Overview.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/Formatting-Overview.csproj index 9df5e4bd9c172..28d6a9f729672 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/Formatting-Overview.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/Formatting-Overview.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 Formatting_Overview enable enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/icustomformatter1.cs b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/icustomformatter1.cs index 6637ff5cb65eb..4d77638646189 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/icustomformatter1.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.formatting.overview/cs/icustomformatter1.cs @@ -1,69 +1,63 @@ -using System; - -// +// public class ByteByByteFormatter : IFormatProvider, ICustomFormatter { - public object GetFormat(Type formatType) - { - if (formatType == typeof(ICustomFormatter)) - return this; - else - return null; - } + public object? GetFormat(Type? formatType) + { + if (formatType == typeof(ICustomFormatter)) + return this; + else + return null; + } - public string Format(string format, object arg, - IFormatProvider formatProvider) - { - if (! formatProvider.Equals(this)) return null; + public string Format(string? format, object? arg, + IFormatProvider? formatProvider) + { + if ((formatProvider is not null) && !formatProvider.Equals(this)) return ""; - // Handle only hexadecimal format string. - if (! format.StartsWith("X")) return null; + // Handle only hexadecimal format string. + if ((format is not null) && !format.StartsWith("X")) return ""; - byte[] bytes; - string output = null; + byte[] bytes; - // Handle only integral types. - if (arg is Byte) - bytes = BitConverter.GetBytes((Byte) arg); - else if (arg is Int16) - bytes = BitConverter.GetBytes((Int16) arg); - else if (arg is Int32) - bytes = BitConverter.GetBytes((Int32) arg); - else if (arg is Int64) - bytes = BitConverter.GetBytes((Int64) arg); - else if (arg is SByte) - bytes = BitConverter.GetBytes((SByte) arg); - else if (arg is UInt16) - bytes = BitConverter.GetBytes((UInt16) arg); - else if (arg is UInt32) - bytes = BitConverter.GetBytes((UInt32) arg); - else if (arg is UInt64) - bytes = BitConverter.GetBytes((UInt64) arg); - else - return null; + // Handle only integral types. + if (arg is Int16) + bytes = BitConverter.GetBytes((Int16)arg); + else if (arg is Int32) + bytes = BitConverter.GetBytes((Int32)arg); + else if (arg is Int64) + bytes = BitConverter.GetBytes((Int64)arg); + else if (arg is UInt16) + bytes = BitConverter.GetBytes((UInt16)arg); + else if (arg is UInt32) + bytes = BitConverter.GetBytes((UInt32)arg); + else if (arg is UInt64) + bytes = BitConverter.GetBytes((UInt64)arg); + else + return ""; - for (int ctr = bytes.Length - 1; ctr >= 0; ctr--) - output += String.Format("{0:X2} ", bytes[ctr]); + string output= ""; + for (int ctr = bytes.Length - 1; ctr >= 0; ctr--) + output += string.Format("{0:X2} ", bytes[ctr]); - return output.Trim(); - } + return output.Trim(); + } } // // public class Example10 { - public static void Main() - { - long value = 3210662321; - byte value1 = 214; - byte value2 = 19; + public static void Main() + { + long value = 3210662321; + byte value1 = 214; + byte value2 = 19; - Console.WriteLine(String.Format(new ByteByByteFormatter(), "{0:X}", value)); - Console.WriteLine(String.Format(new ByteByByteFormatter(), "{0:X} And {1:X} = {2:X} ({2:000})", - value1, value2, value1 & value2)); - Console.WriteLine(String.Format(new ByteByByteFormatter(), "{0,10:N0}", value)); - } + Console.WriteLine(string.Format(new ByteByByteFormatter(), "{0:X}", value)); + Console.WriteLine(string.Format(new ByteByByteFormatter(), "{0:X} And {1:X} = {2:X} ({2:000})", + value1, value2, value1 & value2)); + Console.WriteLine(string.Format(new ByteByByteFormatter(), "{0,10:N0}", value)); + } } // The example displays the following output: // 00 00 00 00 BF 5E D1 B1 diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.generics.overview/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.generics.overview/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.generics.overview/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.generics.overview/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.globalization/cs/globalization.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.globalization/cs/globalization.csproj index 2d9e82c695f37..ad3b8dd97cae4 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.globalization/cs/globalization.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.globalization/cs/globalization.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable Globalization diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.isolatedstorage/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.isolatedstorage/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.isolatedstorage/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.isolatedstorage/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.localizability/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.localizability/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.localizability/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.localizability/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.parallel.for/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.parallel.for/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.parallel.for/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.parallel.for/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.perfcounters.inprosxs/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.perfcounters.inprosxs/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.perfcounters.inprosxs/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.perfcounters.inprosxs/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regex.language.options/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regex.language.options/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regex.language.options/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regex.language.options/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regularexpressions.design/cs/Example.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regularexpressions.design/cs/Example.csproj index 66b7210510a21..4d3cf0ca3a174 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regularexpressions.design/cs/Example.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.regularexpressions.design/cs/Example.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable false diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.packaging/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.packaging/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.packaging/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.packaging/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.textfiles/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.textfiles/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.textfiles/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.resources.textfiles/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.string.parse/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.string.parse/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.string.parse/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.string.parse/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.strings.cultureinsensitivecomparison/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.strings.cultureinsensitivecomparison/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.strings.cultureinsensitivecomparison/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.strings.cultureinsensitivecomparison/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.dynamic/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.dynamic/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.dynamic/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.dynamic/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.enum/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.enum/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.enum/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.enum/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.members.fields/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.members.fields/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.members.fields/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/conceptual.types.members.fields/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/contractexample/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/contractexample/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/contractexample/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/contractexample/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/dg_exceptionDesign/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/dg_exceptionDesign/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/dg_exceptionDesign/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/dg_exceptionDesign/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/eventsoverview/cs/eventsoverview.csproj b/samples/snippets/csharp/VS_Snippets_CLR/eventsoverview/cs/eventsoverview.csproj index d1546c116b01a..6d0d592a5ff2f 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/eventsoverview/cs/eventsoverview.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/eventsoverview/cs/eventsoverview.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable true Exe diff --git a/samples/snippets/csharp/VS_Snippets_CLR/formatting.numeric.custom/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/formatting.numeric.custom/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/formatting.numeric.custom/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/formatting.numeric.custom/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/generatingahash/cs/generatingahash.csproj b/samples/snippets/csharp/VS_Snippets_CLR/generatingahash/cs/generatingahash.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/generatingahash/cs/generatingahash.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/generatingahash/cs/generatingahash.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/listupdates/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/listupdates/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/listupdates/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/listupdates/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.createfromfile/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.createfromfile/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.createfromfile/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.createfromfile/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.openexisting/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.openexisting/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.openexisting/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/memorymappedfiles.memorymappedfile.openexisting/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/regularexpressions.language.escapes/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/regularexpressions.language.escapes/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/regularexpressions.language.escapes/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/regularexpressions.language.escapes/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/string.breakingchanges/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/string.breakingchanges/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/string.breakingchanges/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/string.breakingchanges/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/throwunobservedtaskexceptions/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/throwunobservedtaskexceptions/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/throwunobservedtaskexceptions/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/throwunobservedtaskexceptions/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/timespan.breakingchanges/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/timespan.breakingchanges/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/timespan.breakingchanges/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/timespan.breakingchanges/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/tools.certmgr/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/tools.certmgr/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/tools.certmgr/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/tools.certmgr/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample1/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample1/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample1/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample1/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample2/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample2/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample2/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/tracesourceexample2/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/verifyingahash/cs/verifyingahash.csproj b/samples/snippets/csharp/VS_Snippets_CLR/verifyingahash/cs/verifyingahash.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/verifyingahash/cs/verifyingahash.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/verifyingahash/cs/verifyingahash.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.461.crypto/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.461.crypto/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.461.crypto/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.461.crypto/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.casting/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.casting/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.casting/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR/whatsnew.casting/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/System.Runtime.BypassNGenAttribute/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/System.Runtime.BypassNGenAttribute/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/System.Runtime.BypassNGenAttribute/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/System.Runtime.BypassNGenAttribute/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Conceptual.Formatting/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Conceptual.Formatting/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Conceptual.Formatting/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTime.Conceptual.Formatting/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTimeOffset.Conceptual.Conversions/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTimeOffset.Conceptual.Conversions/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTimeOffset.Conceptual.Conversions/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.DateTimeOffset.Conceptual.Conversions/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Diagnostics.DebuggerBrowsableAttribute/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Diagnostics.DebuggerBrowsableAttribute/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Diagnostics.DebuggerBrowsableAttribute/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Diagnostics.DebuggerBrowsableAttribute/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.ICustomFormatter.Format/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.ICustomFormatter.Format/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.ICustomFormatter.Format/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.ICustomFormatter.Format/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeClientStream_Sample/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeClientStream_Sample/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeClientStream_Sample/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeClientStream_Sample/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeServerStream_Sample/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeServerStream_Sample/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeServerStream_Sample/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.IO.Pipes.AnonymousPipeServerStream_Sample/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Security.Principal.WindowsBuiltInRole Example/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Security.Principal.WindowsBuiltInRole Example/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Security.Principal.WindowsBuiltInRole Example/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Security.Principal.WindowsBuiltInRole Example/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.String.GetHashCode/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.String.GetHashCode/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.String.GetHashCode/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.String.GetHashCode/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.Timer/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.Timer/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.Timer/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.Threading.Timer/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.CreateTimeZone/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.CreateTimeZone/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.CreateTimeZone/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.CreateTimeZone/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.1/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.1/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.1/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.1/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.2/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.2/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.2/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.TimeZone2.Serialization.2/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.X.ToString-and-Culture/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.X.ToString-and-Culture/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.X.ToString-and-Culture/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.X.ToString-and-Culture/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto_simple/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto_simple/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto_simple/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.appdomain.firstchanceexception_howto_simple/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.globalization.textinfo.totitlecase/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.globalization.textinfo.totitlecase/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.globalization.textinfo.totitlecase/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.globalization.textinfo.totitlecase/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.idisposable/cs/project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.idisposable/cs/project.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.idisposable/cs/project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.idisposable/cs/project.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directory.enumeratefiles/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directory.enumeratefiles/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directory.enumeratefiles/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directory.enumeratefiles/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directoryinfo.enumeratedirectories/cs/enumaratedirectories.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directoryinfo.enumeratedirectories/cs/enumaratedirectories.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directoryinfo.enumeratedirectories/cs/enumaratedirectories.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.directoryinfo.enumeratedirectories/cs/enumaratedirectories.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.enumdirs1/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.enumdirs1/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.enumdirs1/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.enumdirs1/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_a/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_a/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_a/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_a/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_b/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_b/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_b/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_b/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_x/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_x/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_x/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.io.memorymappedfiles_ipc_x/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.text.regularexpressions.regex.ctor/cs/Example.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.text.regularexpressions.regex.ctor/cs/Example.csproj index 74abf5c976649..91b464afeacc1 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.text.regularexpressions.regex.ctor/cs/Example.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.text.regularexpressions.regex.ctor/cs/Example.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable diff --git a/samples/snippets/csharp/VS_Snippets_CLR_System/system.threading.tasks.parallel/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_CLR_System/system.threading.tasks.parallel/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR_System/system.threading.tasks.parallel/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_CLR_System/system.threading.tasks.parallel/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/PsciSample/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/PsciSample/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/PsciSample/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/PsciSample/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XML_Migration/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XML_Migration/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XML_Migration/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XML_Migration/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XPathNavigatorMethods/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XPathNavigatorMethods/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XPathNavigatorMethods/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XPathNavigatorMethods/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XSLT_NodeFrag/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XSLT_NodeFrag/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XSLT_NodeFrag/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XSLT_NodeFrag/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XSLT_Param/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XSLT_Param/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XSLT_Param/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XSLT_Param/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XSLT_Script/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XSLT_Script/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XSLT_Script/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XSLT_Script/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Load/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Load/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Load/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Load/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Validate/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Validate/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Validate/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlDocumentValidation.Validate/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaCreateExample/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaCreateExample/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaCreateExample/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaCreateExample/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample1/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample1/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample1/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample1/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample2/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample2/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample2/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaEditExample2/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaImportExample/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaImportExample/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaImportExample/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaImportExample/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaInferenceExamples/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaInferenceExamples/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaInferenceExamples/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaInferenceExamples/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaReadWriteExample/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaReadWriteExample/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaReadWriteExample/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaReadWriteExample/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaSetOverall Example/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaSetOverall Example/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaSetOverall Example/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaSetOverall Example/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaTraverseExample/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaTraverseExample/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaTraverseExample/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaTraverseExample/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaValidatorExamples/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaValidatorExamples/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaValidatorExamples/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XmlSchemaValidatorExamples/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/XslCompiledTransform.Transform2/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/XslCompiledTransform.Transform2/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/XslCompiledTransform.Transform2/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/XslCompiledTransform.Transform2/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Data/xpathextensionfunctions/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Data/xpathextensionfunctions/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Data/xpathextensionfunctions/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Data/xpathextensionfunctions/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellation.csproj b/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellation.csproj index c014d56d0a34d..410c4a67f2207 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellation.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellation.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex4.cs b/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex4.cs index 23f94bd882680..222c13911922f 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex4.cs +++ b/samples/snippets/csharp/VS_Snippets_Misc/cancellation/cs/cancellationex4.cs @@ -1,6 +1,6 @@ // using System; -using System.Net; +using System.Net.Http; using System.Threading; class Example4 @@ -11,26 +11,23 @@ static void Main() StartWebRequest(cts.Token); - // cancellation will cause the web - // request to be cancelled + // Cancellation will cause the web + // request to be cancelled. cts.Cancel(); } static void StartWebRequest(CancellationToken token) { - WebClient wc = new WebClient(); - wc.DownloadStringCompleted += (s, e) => Console.WriteLine("Request completed."); + var client = new HttpClient(); - // Cancellation on the token will - // call CancelAsync on the WebClient. token.Register(() => { - wc.CancelAsync(); + client.CancelPendingRequests(); Console.WriteLine("Request cancelled!"); }); Console.WriteLine("Starting request."); - wc.DownloadStringAsync(new Uri("http://www.contoso.com")); + client.GetStringAsync(new Uri("http://www.contoso.com")); } } // diff --git a/samples/snippets/csharp/VS_Snippets_Misc/cds_barrier/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/cds_barrier/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/cds_barrier/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/cds_barrier/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/cds_countdownevent/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/cds_countdownevent/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/cds_countdownevent/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/cds_countdownevent/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/cds_spinlock/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/cds_spinlock/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/cds_spinlock/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/cds_spinlock/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/cds_spinwait/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/cds_spinwait/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/cds_spinwait/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/cds_spinwait/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/fromasync/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/fromasync/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/fromasync/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/fromasync/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/plinq/cs/plinq.csproj b/samples/snippets/csharp/VS_Snippets_Misc/plinq/cs/plinq.csproj index ad64b146d97ac..8b8ba0d6b445f 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/plinq/cs/plinq.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/plinq/cs/plinq.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable ExampleForAll diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpl_cancellation/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpl_cancellation/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpl_cancellation/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpl_cancellation/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpl_denychildattach/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpl_denychildattach/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpl_denychildattach/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpl_denychildattach/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpl_exceptions/cs/handling-tpl-exceptions.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpl_exceptions/cs/handling-tpl-exceptions.csproj index 835740427d7cb..ddb1b95b31479 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpl_exceptions/cs/handling-tpl-exceptions.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpl_exceptions/cs/handling-tpl-exceptions.csproj @@ -2,9 +2,9 @@ Exe - net6.0 + net8.0 enable true - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/00/partitioners.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/00/partitioners.csproj index cb7ac076203f9..4c454896f30bf 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/00/partitioners.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/00/partitioners.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/01/partitioner02.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/01/partitioner02.csproj index eabb4c02f06a4..08d32eecee723 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/01/partitioner02.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpl_partitioners/cs/01/partitioner02.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpl_unwrap/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpl_unwrap/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpl_unwrap/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpl_unwrap/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_degreeofparallelism/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_degreeofparallelism/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_degreeofparallelism/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_degreeofparallelism/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_executionblocks/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_executionblocks/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_executionblocks/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_executionblocks/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_nongreedyjoin/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_nongreedyjoin/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_nongreedyjoin/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_nongreedyjoin/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_overview/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_overview/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_overview/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_overview/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_palindromes/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_palindromes/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_palindromes/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_palindromes/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_producerconsumer/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_producerconsumer/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_producerconsumer/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_producerconsumer/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_readwrite/cs/dataflowreadwrite.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_readwrite/cs/dataflowreadwrite.csproj index e4580b5335c47..8f01f6630d07d 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_readwrite/cs/dataflowreadwrite.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_readwrite/cs/dataflowreadwrite.csproj @@ -2,9 +2,9 @@ Exe - net6.0 + net8.0 enable DataflowReadWrite - \ No newline at end of file + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_receiveany/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_receiveany/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_receiveany/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_receiveany/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_slidingwindowblock/cs/Project.csproj b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_slidingwindowblock/cs/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_slidingwindowblock/cs/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_Misc/tpldataflow_slidingwindowblock/cs/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideProperties/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideProperties/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideProperties/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_VBCSharp/csProgGuideProperties/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsAccess/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsAccess/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsAccess/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsAccess/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsLiteral/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsLiteral/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsLiteral/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsLiteral/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsTypes/CS/Project.csproj b/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsTypes/CS/Project.csproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsTypes/CS/Project.csproj +++ b/samples/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsTypes/CS/Project.csproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/csharp/buffers/MyBuffers.csproj b/samples/snippets/csharp/buffers/MyBuffers.csproj index 4de80482caabb..8d2b2325b0b6c 100644 --- a/samples/snippets/csharp/buffers/MyBuffers.csproj +++ b/samples/snippets/csharp/buffers/MyBuffers.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/delegates-and-events/delegates-and-events.csproj b/samples/snippets/csharp/delegates-and-events/delegates-and-events.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/delegates-and-events/delegates-and-events.csproj +++ b/samples/snippets/csharp/delegates-and-events/delegates-and-events.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/events/events.csproj b/samples/snippets/csharp/events/events.csproj index 3897747193834..f704bf4988fa6 100644 --- a/samples/snippets/csharp/events/events.csproj +++ b/samples/snippets/csharp/events/events.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable diff --git a/samples/snippets/csharp/getting-started/console-linq/console-linq.csproj b/samples/snippets/csharp/getting-started/console-linq/console-linq.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/getting-started/console-linq/console-linq.csproj +++ b/samples/snippets/csharp/getting-started/console-linq/console-linq.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/how-to/conversions/conversions.csproj b/samples/snippets/csharp/how-to/conversions/conversions.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/how-to/conversions/conversions.csproj +++ b/samples/snippets/csharp/how-to/conversions/conversions.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/how-to/strings/strings.csproj b/samples/snippets/csharp/how-to/strings/strings.csproj index 86561a6e932d7..bccebfef5e970 100644 --- a/samples/snippets/csharp/how-to/strings/strings.csproj +++ b/samples/snippets/csharp/how-to/strings/strings.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable HowToStrings true diff --git a/samples/snippets/csharp/interfaces/interfaces.csproj b/samples/snippets/csharp/interfaces/interfaces.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/interfaces/interfaces.csproj +++ b/samples/snippets/csharp/interfaces/interfaces.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/language-reference/keywords/volatile/volatile.csproj b/samples/snippets/csharp/language-reference/keywords/volatile/volatile.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/language-reference/keywords/volatile/volatile.csproj +++ b/samples/snippets/csharp/language-reference/keywords/volatile/volatile.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/objectoriented/objectoriented.csproj b/samples/snippets/csharp/objectoriented/objectoriented.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/objectoriented/objectoriented.csproj +++ b/samples/snippets/csharp/objectoriented/objectoriented.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/programming-guide/string-to-number/convert/convert.csproj b/samples/snippets/csharp/programming-guide/string-to-number/convert/convert.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/csharp/programming-guide/string-to-number/convert/convert.csproj +++ b/samples/snippets/csharp/programming-guide/string-to-number/convert/convert.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse/parse-tryparse.csproj b/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse/parse-tryparse.csproj index 137c9ba9a06a3..bdccbb51cf14b 100644 --- a/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse/parse-tryparse.csproj +++ b/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse/parse-tryparse.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable parse_tryparse diff --git a/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse2/parse-tryparse2.csproj b/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse2/parse-tryparse2.csproj index 519f88972e896..f6e67a3f5e651 100644 --- a/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse2/parse-tryparse2.csproj +++ b/samples/snippets/csharp/programming-guide/string-to-number/parse-tryparse2/parse-tryparse2.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable parse_tryparse2 diff --git a/samples/snippets/csharp/roslyn-sdk/SemanticQuickStart/SemanticQuickStart.csproj b/samples/snippets/csharp/roslyn-sdk/SemanticQuickStart/SemanticQuickStart.csproj index 53318e7afaff6..bf7a2d2af5ad3 100644 --- a/samples/snippets/csharp/roslyn-sdk/SemanticQuickStart/SemanticQuickStart.csproj +++ b/samples/snippets/csharp/roslyn-sdk/SemanticQuickStart/SemanticQuickStart.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/HelloSyntaxTree/HelloSyntaxTree.csproj b/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/HelloSyntaxTree/HelloSyntaxTree.csproj index 1d45a07df9ea2..5659e6569c0a9 100644 --- a/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/HelloSyntaxTree/HelloSyntaxTree.csproj +++ b/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/HelloSyntaxTree/HelloSyntaxTree.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/SyntaxWalker/SyntaxWalker.csproj b/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/SyntaxWalker/SyntaxWalker.csproj index 1d45a07df9ea2..5659e6569c0a9 100644 --- a/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/SyntaxWalker/SyntaxWalker.csproj +++ b/samples/snippets/csharp/roslyn-sdk/SyntaxQuickStart/SyntaxWalker/SyntaxWalker.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/csharp/versioning/new/new.csproj b/samples/snippets/csharp/versioning/new/new.csproj index d260053fe007d..af31fefa23aa5 100644 --- a/samples/snippets/csharp/versioning/new/new.csproj +++ b/samples/snippets/csharp/versioning/new/new.csproj @@ -2,8 +2,8 @@ Exe - net6.0 + net8.0 enable - \ No newline at end of file + diff --git a/samples/snippets/csharp/versioning/override/override.csproj b/samples/snippets/csharp/versioning/override/override.csproj index d260053fe007d..af31fefa23aa5 100644 --- a/samples/snippets/csharp/versioning/override/override.csproj +++ b/samples/snippets/csharp/versioning/override/override.csproj @@ -2,8 +2,8 @@ Exe - net6.0 + net8.0 enable - \ No newline at end of file + diff --git a/samples/snippets/csharp/xunit-test/xunit-test.csproj b/samples/snippets/csharp/xunit-test/xunit-test.csproj index 0b434bedaf207..f69c5a87b38a3 100644 --- a/samples/snippets/csharp/xunit-test/xunit-test.csproj +++ b/samples/snippets/csharp/xunit-test/xunit-test.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable diff --git a/samples/snippets/fsharp/fssamples.fsproj b/samples/snippets/fsharp/fssamples.fsproj index 79367e1a6ca32..d8280b01cbfad 100644 --- a/samples/snippets/fsharp/fssamples.fsproj +++ b/samples/snippets/fsharp/fssamples.fsproj @@ -2,10 +2,10 @@ Exe - net6.0 + net8.0 preview - + diff --git a/samples/snippets/standard/assembly/unloading/unloading.csproj b/samples/snippets/standard/assembly/unloading/unloading.csproj index 3a6eb6dfef849..fc4328de95b15 100644 --- a/samples/snippets/standard/assembly/unloading/unloading.csproj +++ b/samples/snippets/standard/assembly/unloading/unloading.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable test.Program diff --git a/samples/snippets/standard/async/async-and-await/vb/AsyncFirstExampleVB.vbproj b/samples/snippets/standard/async/async-and-await/vb/AsyncFirstExampleVB.vbproj index 49c6173cd820f..8f60045c75501 100644 --- a/samples/snippets/standard/async/async-and-await/vb/AsyncFirstExampleVB.vbproj +++ b/samples/snippets/standard/async/async-and-await/vb/AsyncFirstExampleVB.vbproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net8.0-windows AsyncFirstExampleVB true diff --git a/samples/snippets/standard/buffers/memory-t/owner-using/owner-using.csproj b/samples/snippets/standard/buffers/memory-t/owner-using/owner-using.csproj index aa60902b4499f..569185a005cf0 100644 --- a/samples/snippets/standard/buffers/memory-t/owner-using/owner-using.csproj +++ b/samples/snippets/standard/buffers/memory-t/owner-using/owner-using.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable Visual_Studio_Projects diff --git a/samples/snippets/standard/buffers/memory-t/owner/owner.csproj b/samples/snippets/standard/buffers/memory-t/owner/owner.csproj index aa60902b4499f..569185a005cf0 100644 --- a/samples/snippets/standard/buffers/memory-t/owner/owner.csproj +++ b/samples/snippets/standard/buffers/memory-t/owner/owner.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable Visual_Studio_Projects diff --git a/samples/snippets/standard/buffers/memory-t/ownerless/ownerless.csproj b/samples/snippets/standard/buffers/memory-t/ownerless/ownerless.csproj index aa60902b4499f..569185a005cf0 100644 --- a/samples/snippets/standard/buffers/memory-t/ownerless/ownerless.csproj +++ b/samples/snippets/standard/buffers/memory-t/ownerless/ownerless.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable Visual_Studio_Projects diff --git a/samples/snippets/standard/buffers/memory-t/task-returning2/task-returning2.csproj b/samples/snippets/standard/buffers/memory-t/task-returning2/task-returning2.csproj index 749576251025e..3675843c7dfb1 100644 --- a/samples/snippets/standard/buffers/memory-t/task-returning2/task-returning2.csproj +++ b/samples/snippets/standard/buffers/memory-t/task-returning2/task-returning2.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable void_returning diff --git a/samples/snippets/standard/buffers/memory-t/void-returning/void-returning.csproj b/samples/snippets/standard/buffers/memory-t/void-returning/void-returning.csproj index 749576251025e..3675843c7dfb1 100644 --- a/samples/snippets/standard/buffers/memory-t/void-returning/void-returning.csproj +++ b/samples/snippets/standard/buffers/memory-t/void-returning/void-returning.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable void_returning diff --git a/samples/snippets/standard/data/sqlite/AggregateFunctionSample/AggregateFunctionSample.csproj b/samples/snippets/standard/data/sqlite/AggregateFunctionSample/AggregateFunctionSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/AggregateFunctionSample/AggregateFunctionSample.csproj +++ b/samples/snippets/standard/data/sqlite/AggregateFunctionSample/AggregateFunctionSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/AsyncSample/AsyncSample.csproj b/samples/snippets/standard/data/sqlite/AsyncSample/AsyncSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/AsyncSample/AsyncSample.csproj +++ b/samples/snippets/standard/data/sqlite/AsyncSample/AsyncSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/BackupSample/BackupSample.csproj b/samples/snippets/standard/data/sqlite/BackupSample/BackupSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/BackupSample/BackupSample.csproj +++ b/samples/snippets/standard/data/sqlite/BackupSample/BackupSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/BatchingSample/BatchingSample.csproj b/samples/snippets/standard/data/sqlite/BatchingSample/BatchingSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/BatchingSample/BatchingSample.csproj +++ b/samples/snippets/standard/data/sqlite/BatchingSample/BatchingSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/BulkInsertSample/BulkInsertSample.csproj b/samples/snippets/standard/data/sqlite/BulkInsertSample/BulkInsertSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/BulkInsertSample/BulkInsertSample.csproj +++ b/samples/snippets/standard/data/sqlite/BulkInsertSample/BulkInsertSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/CollationSample/CollationSample.csproj b/samples/snippets/standard/data/sqlite/CollationSample/CollationSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/CollationSample/CollationSample.csproj +++ b/samples/snippets/standard/data/sqlite/CollationSample/CollationSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/DapperSample/DapperSample.csproj b/samples/snippets/standard/data/sqlite/DapperSample/DapperSample.csproj index 259d8dc867552..7ca074d801d3d 100644 --- a/samples/snippets/standard/data/sqlite/DapperSample/DapperSample.csproj +++ b/samples/snippets/standard/data/sqlite/DapperSample/DapperSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/DateAndTimeSample/DateAndTimeSample.csproj b/samples/snippets/standard/data/sqlite/DateAndTimeSample/DateAndTimeSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/DateAndTimeSample/DateAndTimeSample.csproj +++ b/samples/snippets/standard/data/sqlite/DateAndTimeSample/DateAndTimeSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/DeferredTransactionSample/DeferredTransactionSample.csproj b/samples/snippets/standard/data/sqlite/DeferredTransactionSample/DeferredTransactionSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/DeferredTransactionSample/DeferredTransactionSample.csproj +++ b/samples/snippets/standard/data/sqlite/DeferredTransactionSample/DeferredTransactionSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/DirtyReadSample/DirtyReadSample.csproj b/samples/snippets/standard/data/sqlite/DirtyReadSample/DirtyReadSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/DirtyReadSample/DirtyReadSample.csproj +++ b/samples/snippets/standard/data/sqlite/DirtyReadSample/DirtyReadSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/EncryptionSample/EncryptionSample.csproj b/samples/snippets/standard/data/sqlite/EncryptionSample/EncryptionSample.csproj index be2892dd9ea6f..cf473c73913bf 100644 --- a/samples/snippets/standard/data/sqlite/EncryptionSample/EncryptionSample.csproj +++ b/samples/snippets/standard/data/sqlite/EncryptionSample/EncryptionSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/ExtensionsSample/ExtensionsSample.csproj b/samples/snippets/standard/data/sqlite/ExtensionsSample/ExtensionsSample.csproj index 3ad952f5a3d02..bac503f6c918d 100644 --- a/samples/snippets/standard/data/sqlite/ExtensionsSample/ExtensionsSample.csproj +++ b/samples/snippets/standard/data/sqlite/ExtensionsSample/ExtensionsSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/HelloWorldSample/HelloWorldSample.csproj b/samples/snippets/standard/data/sqlite/HelloWorldSample/HelloWorldSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/HelloWorldSample/HelloWorldSample.csproj +++ b/samples/snippets/standard/data/sqlite/HelloWorldSample/HelloWorldSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/InteropSample/InteropSample.csproj b/samples/snippets/standard/data/sqlite/InteropSample/InteropSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/InteropSample/InteropSample.csproj +++ b/samples/snippets/standard/data/sqlite/InteropSample/InteropSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/RegularExpressionSample/RegularExpressionSample.csproj b/samples/snippets/standard/data/sqlite/RegularExpressionSample/RegularExpressionSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/RegularExpressionSample/RegularExpressionSample.csproj +++ b/samples/snippets/standard/data/sqlite/RegularExpressionSample/RegularExpressionSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/ResultMetadataSample/ResultMetadataSample.csproj b/samples/snippets/standard/data/sqlite/ResultMetadataSample/ResultMetadataSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/ResultMetadataSample/ResultMetadataSample.csproj +++ b/samples/snippets/standard/data/sqlite/ResultMetadataSample/ResultMetadataSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/SavepointSample/SavepointSample.csproj b/samples/snippets/standard/data/sqlite/SavepointSample/SavepointSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/SavepointSample/SavepointSample.csproj +++ b/samples/snippets/standard/data/sqlite/SavepointSample/SavepointSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/ScalarFunctionSample/ScalarFunctionSample.csproj b/samples/snippets/standard/data/sqlite/ScalarFunctionSample/ScalarFunctionSample.csproj index b38d9531135c3..331f14ff9b5ea 100644 --- a/samples/snippets/standard/data/sqlite/ScalarFunctionSample/ScalarFunctionSample.csproj +++ b/samples/snippets/standard/data/sqlite/ScalarFunctionSample/ScalarFunctionSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/SqliteProviderSample/SqliteProviderSample.csproj b/samples/snippets/standard/data/sqlite/SqliteProviderSample/SqliteProviderSample.csproj index 2ddfbb6c37ba4..03df642c7398e 100644 --- a/samples/snippets/standard/data/sqlite/SqliteProviderSample/SqliteProviderSample.csproj +++ b/samples/snippets/standard/data/sqlite/SqliteProviderSample/SqliteProviderSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/StreamingSample/StreamingSample.csproj b/samples/snippets/standard/data/sqlite/StreamingSample/StreamingSample.csproj index fecae739d0a61..35eee0473dd00 100644 --- a/samples/snippets/standard/data/sqlite/StreamingSample/StreamingSample.csproj +++ b/samples/snippets/standard/data/sqlite/StreamingSample/StreamingSample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/data/sqlite/SystemLibrarySample/SystemLibrarySample.csproj b/samples/snippets/standard/data/sqlite/SystemLibrarySample/SystemLibrarySample.csproj index efcb0fe8c99bb..d52133f8eb1f1 100644 --- a/samples/snippets/standard/data/sqlite/SystemLibrarySample/SystemLibrarySample.csproj +++ b/samples/snippets/standard/data/sqlite/SystemLibrarySample/SystemLibrarySample.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/datetime/calendars/current-era/cs/work-with-calendars.csproj b/samples/snippets/standard/datetime/calendars/current-era/cs/work-with-calendars.csproj index 149b4393ed27c..162057a60c7a3 100644 --- a/samples/snippets/standard/datetime/calendars/current-era/cs/work-with-calendars.csproj +++ b/samples/snippets/standard/datetime/calendars/current-era/cs/work-with-calendars.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable work_with_calendars diff --git a/samples/snippets/standard/datetime/calendars/current-era/vb/vb.vbproj b/samples/snippets/standard/datetime/calendars/current-era/vb/vb.vbproj index 7c3e628458075..81a7f0490d284 100644 --- a/samples/snippets/standard/datetime/calendars/current-era/vb/vb.vbproj +++ b/samples/snippets/standard/datetime/calendars/current-era/vb/vb.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net8.0 diff --git a/samples/snippets/standard/datetime/calendars/gannen/cs/gannen-fmt.csproj b/samples/snippets/standard/datetime/calendars/gannen/cs/gannen-fmt.csproj index 3eea0bbacf5c9..cccd97324f1ed 100644 --- a/samples/snippets/standard/datetime/calendars/gannen/cs/gannen-fmt.csproj +++ b/samples/snippets/standard/datetime/calendars/gannen/cs/gannen-fmt.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable gannen_fmt diff --git a/samples/snippets/standard/datetime/calendars/gannen/vb/gannen-fmt.vbproj b/samples/snippets/standard/datetime/calendars/gannen/vb/gannen-fmt.vbproj index f0323f9bb0ee6..fb6c71a02207b 100644 --- a/samples/snippets/standard/datetime/calendars/gannen/vb/gannen-fmt.vbproj +++ b/samples/snippets/standard/datetime/calendars/gannen/vb/gannen-fmt.vbproj @@ -3,7 +3,7 @@ Exe gannen_fmt_vb - net6.0 + net8.0 diff --git a/samples/snippets/standard/datetime/calendars/gregorian/cs/cs.csproj b/samples/snippets/standard/datetime/calendars/gregorian/cs/cs.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/standard/datetime/calendars/gregorian/cs/cs.csproj +++ b/samples/snippets/standard/datetime/calendars/gregorian/cs/cs.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/datetime/calendars/gregorian/vb/vb.vbproj b/samples/snippets/standard/datetime/calendars/gregorian/vb/vb.vbproj index 7c3e628458075..81a7f0490d284 100644 --- a/samples/snippets/standard/datetime/calendars/gregorian/vb/vb.vbproj +++ b/samples/snippets/standard/datetime/calendars/gregorian/vb/vb.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net8.0 diff --git a/samples/snippets/standard/datetime/calendars/relaxed-range/cs/cs.csproj b/samples/snippets/standard/datetime/calendars/relaxed-range/cs/cs.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/standard/datetime/calendars/relaxed-range/cs/cs.csproj +++ b/samples/snippets/standard/datetime/calendars/relaxed-range/cs/cs.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/datetime/calendars/relaxed-range/vb/vb.vbproj b/samples/snippets/standard/datetime/calendars/relaxed-range/vb/vb.vbproj index 7c3e628458075..81a7f0490d284 100644 --- a/samples/snippets/standard/datetime/calendars/relaxed-range/vb/vb.vbproj +++ b/samples/snippets/standard/datetime/calendars/relaxed-range/vb/vb.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net8.0 diff --git a/samples/snippets/standard/datetime/calendars/specify-era/cs/work-with-calendars.csproj b/samples/snippets/standard/datetime/calendars/specify-era/cs/work-with-calendars.csproj index 149b4393ed27c..162057a60c7a3 100644 --- a/samples/snippets/standard/datetime/calendars/specify-era/cs/work-with-calendars.csproj +++ b/samples/snippets/standard/datetime/calendars/specify-era/cs/work-with-calendars.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable work_with_calendars diff --git a/samples/snippets/standard/datetime/calendars/specify-era/vb/vb.vbproj b/samples/snippets/standard/datetime/calendars/specify-era/vb/vb.vbproj index 7c3e628458075..81a7f0490d284 100644 --- a/samples/snippets/standard/datetime/calendars/specify-era/vb/vb.vbproj +++ b/samples/snippets/standard/datetime/calendars/specify-era/vb/vb.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net8.0 diff --git a/samples/snippets/standard/io/io-exceptions/cs/io-exceptions.csproj b/samples/snippets/standard/io/io-exceptions/cs/io-exceptions.csproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/standard/io/io-exceptions/cs/io-exceptions.csproj +++ b/samples/snippets/standard/io/io-exceptions/cs/io-exceptions.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/standard/io/io-exceptions/vb/io-exceptions.vbproj b/samples/snippets/standard/io/io-exceptions/vb/io-exceptions.vbproj index 7c3e628458075..81a7f0490d284 100644 --- a/samples/snippets/standard/io/io-exceptions/vb/io-exceptions.vbproj +++ b/samples/snippets/standard/io/io-exceptions/vb/io-exceptions.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/Cryptography.SmartCardCSP/VB/cryptography.smartcardcsp.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/Cryptography.SmartCardCSP/VB/cryptography.smartcardcsp.vbproj index 41f1d5ad4b264..a269962b552f0 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/Cryptography.SmartCardCSP/VB/cryptography.smartcardcsp.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/Cryptography.SmartCardCSP/VB/cryptography.smartcardcsp.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/Formatting.DateAndTime.Custom/vb/Project.csproj b/samples/snippets/visualbasic/VS_Snippets_CLR/Formatting.DateAndTime.Custom/vb/Project.csproj index c258ea5606282..38c3c5afae2c9 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/Formatting.DateAndTime.Custom/vb/Project.csproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/Formatting.DateAndTime.Custom/vb/Project.csproj @@ -1,6 +1,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/vb/decryptxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/vb/decryptxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/vb/decryptxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementAsymmetric/vb/decryptxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementX509/vb/decryptxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementX509/vb/decryptxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementX509/vb/decryptxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToDecryptXMLElementX509/vb/decryptxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/vb/encryptxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/vb/encryptxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/vb/encryptxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementAsymmetric/vb/encryptxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/vb/encryptxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/vb/encryptxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/vb/encryptxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementSymmetric/vb/encryptxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementX509/vb/encryptxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementX509/vb/encryptxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementX509/vb/encryptxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToEncryptXMLElementX509/vb/encryptxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToSignXMLDocumentRSA/vb/signxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToSignXMLDocumentRSA/vb/signxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToSignXMLDocumentRSA/vb/signxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToSignXMLDocumentRSA/vb/signxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/vb/verifyxml.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/vb/verifyxml.vbproj index 227d2199c9161..6bd19fdd677f6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/vb/verifyxml.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/HowToVerifyXMLDocumentRSA/vb/verifyxml.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.cancellation.callback/vb/vb.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.cancellation.callback/vb/vb.vbproj index 8b61c63d81ac5..d79399c343e62 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.cancellation.callback/vb/vb.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.cancellation.callback/vb/vb.vbproj @@ -2,7 +2,7 @@ vb - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.conversion/vb/Project.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.conversion/vb/Project.vbproj index b76fb495a366d..68d9bf17ede53 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.conversion/vb/Project.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.conversion/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.disposable/vb/using.vb.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.disposable/vb/using.vb.vbproj index 80f5c922534e4..8a2034d8c7abf 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.disposable/vb/using.vb.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.disposable/vb/using.vb.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable using.vb.TryExplicitCatchFinally diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.formatting.overview/vb/Formatting-Overview.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.formatting.overview/vb/Formatting-Overview.vbproj index 028553694a8cd..e96eed0f725c9 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.formatting.overview/vb/Formatting-Overview.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.formatting.overview/vb/Formatting-Overview.vbproj @@ -3,7 +3,7 @@ Exe Formatting_Overview - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.generics.overview/vb/Project.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.generics.overview/vb/Project.vbproj index 2acd6fc5b6a03..68d9bf17ede53 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.generics.overview/vb/Project.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.generics.overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net6.0 + net8.0 - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.globalization/vb/globalization.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.globalization/vb/globalization.vbproj index e4d31a3c24eff..345977621640f 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.globalization/vb/globalization.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.globalization/vb/globalization.vbproj @@ -3,7 +3,7 @@ Exe Globalization - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regex.language.options/vb/Project.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regex.language.options/vb/Project.vbproj index b83f0211b39c5..f0609045a05b6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regex.language.options/vb/Project.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regex.language.options/vb/Project.vbproj @@ -2,6 +2,6 @@ Library - net6.0 - + net8.0 + diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/generatingahash/generatingahash.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/generatingahash/generatingahash.vbproj index 41f1d5ad4b264..a269962b552f0 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/generatingahash/generatingahash.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/generatingahash/generatingahash.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/verifyingahash/vb/verifyingahash.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR/verifyingahash/vb/verifyingahash.vbproj index 41f1d5ad4b264..a269962b552f0 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/verifyingahash/vb/verifyingahash.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/verifyingahash/vb/verifyingahash.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.idisposable/vb/project.vb.vbproj b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.idisposable/vb/project.vb.vbproj index 1d22a36997079..af31fefa23aa5 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.idisposable/vb/project.vb.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.idisposable/vb/project.vb.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellation.vbproj b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellation.vbproj index 41f1d5ad4b264..a269962b552f0 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellation.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellation.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex1.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex1.vb index 0ac4be1286b2d..32e8da3e9f27f 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex1.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex1.vb @@ -4,8 +4,8 @@ Option Strict On ' Imports System.Threading -Module Example - Public Sub Main() +Module Example1 + Public Sub Main1() ' Create the token source. Dim cts As New CancellationTokenSource() diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex10.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex10.vb index 8adcb9cd910ad..da10172c3f247 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex10.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex10.vb @@ -11,7 +11,7 @@ Class CancelNewStyleEvents ' in its Wait methods. Shared mres As ManualResetEventSlim = New ManualResetEventSlim(False) - Shared Sub Main() + Shared Sub Main10() Dim cts As New CancellationTokenSource() diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex11.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex11.vb index 354e40a43de94..cc95532a78a9e 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex11.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex11.vb @@ -11,7 +11,7 @@ Public Structure Rectangle End Structure Class CancelByPolling - Shared Sub Main() + Shared Sub Main11() Dim tokenSource As New CancellationTokenSource() ' Toy object for demo purposes Dim rect As New Rectangle() @@ -46,10 +46,10 @@ Class CancelByPolling ' Assume that we know that the inner loop is very fast. ' Therefore, polling once per column in the outer loop condition ' is sufficient. - For col As Integer = 0 To rect.rows - 1 + For row As Integer = 0 To rect.rows - 1 ' Simulating work. Thread.SpinWait(5000) - Console.Write("0',1' ", x, y) + Console.Write("0',1' ", col, row) Next Next diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex13.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex13.vb index 21fba8ec5ed9d..879b8a3ba4742 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex13.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex13.vb @@ -6,7 +6,7 @@ Imports System.Threading Imports System.Threading.Tasks Class LinkedTokenSourceDemo - Shared Sub Main() + Shared Sub Main13() Dim worker As New WorkerWithTimer() Dim cts As New CancellationTokenSource() diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex4.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex4.vb index a68e96a2990d5..6f47708a5a16d 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex4.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex4.vb @@ -3,10 +3,11 @@ Option Strict On ' Imports System.Net +Imports System.Net.Http Imports System.Threading -Class Example - Private Shared Sub Main() +Class Example4 + Private Shared Sub Main4() Dim cts As New CancellationTokenSource() StartWebRequest(cts.Token) @@ -17,19 +18,15 @@ Class Example End Sub Private Shared Sub StartWebRequest(token As CancellationToken) - Dim wc As New WebClient() - wc.DownloadStringCompleted += Function(s, e) Console.WriteLine("Request completed.") + Dim client As New HttpClient() - ' Cancellation on the token will - ' call CancelAsync on the WebClient. - token.Register(Function() - wc.CancelAsync() + token.Register(Sub() + client.CancelPendingRequests() Console.WriteLine("Request cancelled!") - - End Function) + End Sub) Console.WriteLine("Starting request.") - wc.DownloadStringAsync(New Uri("http://www.contoso.com")) + client.GetStringAsync(New Uri("http://www.contoso.com")) End Sub End Class ' diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex9.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex9.vb index 9591f7e310cb3..fcfa2ce040ec6 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex9.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/cancellationex9.vb @@ -9,7 +9,7 @@ Class CancelOldStyleEvents ' Old-style MRE that doesn't support unified cancellation. Shared mre As New ManualResetEvent(False) - Shared Sub Main() + Shared Sub Main9() Dim cts As New CancellationTokenSource() ' Pass the same token source to the delegate and to the task instance. diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/objectcancellation1.vb b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/objectcancellation1.vb index dcdb6cb2e787d..c5e4df72e04c4 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/objectcancellation1.vb +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/cancellation/vb/objectcancellation1.vb @@ -17,8 +17,8 @@ Class CancelableObject End Sub End Class -Module Example - Public Sub Main() +Module ExampleOb1 + Public Sub MainOb1() Dim cts As New CancellationTokenSource() Dim token As CancellationToken = cts.Token diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/plinq/vb/plinq.vbproj b/samples/snippets/visualbasic/VS_Snippets_Misc/plinq/vb/plinq.vbproj index 260a7e0372b19..cc7b97befd9ab 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/plinq/vb/plinq.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/plinq/vb/plinq.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 plinq.Program diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/tpl_parallel/vb/simpleforeach.vbproj b/samples/snippets/visualbasic/VS_Snippets_Misc/tpl_parallel/vb/simpleforeach.vbproj index c6abae001785d..58990cd569d25 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/tpl_parallel/vb/simpleforeach.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/tpl_parallel/vb/simpleforeach.vbproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 - - \ No newline at end of file + + diff --git a/samples/snippets/visualbasic/VS_Snippets_Misc/tpldataflow_readwrite/vb/dataflowreadwrite.vbproj b/samples/snippets/visualbasic/VS_Snippets_Misc/tpldataflow_readwrite/vb/dataflowreadwrite.vbproj index 4a1db8fceb693..ad5a3d640d702 100644 --- a/samples/snippets/visualbasic/VS_Snippets_Misc/tpldataflow_readwrite/vb/dataflowreadwrite.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_Misc/tpldataflow_readwrite/vb/dataflowreadwrite.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 - \ No newline at end of file + diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthrough/vb/dynamicwalkthrough.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthrough/vb/dynamicwalkthrough.vbproj index 5c4cc84b7b595..51a227d5c4848 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthrough/vb/dynamicwalkthrough.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthrough/vb/dynamicwalkthrough.vbproj @@ -3,7 +3,7 @@ Exe DynamicSample - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthroughironpython/vb/ironpythonsample.vbproj b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthroughironpython/vb/ironpythonsample.vbproj index 65a3cfb431084..e4f9bbd7e5424 100644 --- a/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthroughironpython/vb/ironpythonsample.vbproj +++ b/samples/snippets/visualbasic/VS_Snippets_VBCSharp/vbdynamicwalkthroughironpython/vb/ironpythonsample.vbproj @@ -3,7 +3,7 @@ Exe DynamicIronPythonSample - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/how-to/conversions/conversions.vbproj b/samples/snippets/visualbasic/how-to/conversions/conversions.vbproj index 41f1d5ad4b264..a269962b552f0 100644 --- a/samples/snippets/visualbasic/how-to/conversions/conversions.vbproj +++ b/samples/snippets/visualbasic/how-to/conversions/conversions.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/programming-guide/dynamic-linq-expression-trees/dynamic-linq-expression-trees.vbproj b/samples/snippets/visualbasic/programming-guide/dynamic-linq-expression-trees/dynamic-linq-expression-trees.vbproj index cfa81bd48c7f0..e4e0801e8226c 100644 --- a/samples/snippets/visualbasic/programming-guide/dynamic-linq-expression-trees/dynamic-linq-expression-trees.vbproj +++ b/samples/snippets/visualbasic/programming-guide/dynamic-linq-expression-trees/dynamic-linq-expression-trees.vbproj @@ -3,7 +3,7 @@ Exe dynamic_linq_expression_trees - net6.0 + net8.0 diff --git a/samples/snippets/visualbasic/programming-guide/language-features/data-types/named-tuples/tupleinfer.vbproj b/samples/snippets/visualbasic/programming-guide/language-features/data-types/named-tuples/tupleinfer.vbproj index 235bee113c6f9..622470452fff4 100644 --- a/samples/snippets/visualbasic/programming-guide/language-features/data-types/named-tuples/tupleinfer.vbproj +++ b/samples/snippets/visualbasic/programming-guide/language-features/data-types/named-tuples/tupleinfer.vbproj @@ -2,8 +2,8 @@ Exe - net6.0 + net8.0 15.3 - + diff --git a/samples/snippets/visualbasic/programming-guide/language-features/data-types/tuples/tuples.vbproj b/samples/snippets/visualbasic/programming-guide/language-features/data-types/tuples/tuples.vbproj index 9a84a9450ef1d..d721a8a494147 100644 --- a/samples/snippets/visualbasic/programming-guide/language-features/data-types/tuples/tuples.vbproj +++ b/samples/snippets/visualbasic/programming-guide/language-features/data-types/tuples/tuples.vbproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 On diff --git a/samples/snippets/visualbasic/programming-guide/language-features/passing-named-arguments/namedargs.vbproj b/samples/snippets/visualbasic/programming-guide/language-features/passing-named-arguments/namedargs.vbproj index fe22db6bef5ca..9baa01558d3df 100644 --- a/samples/snippets/visualbasic/programming-guide/language-features/passing-named-arguments/namedargs.vbproj +++ b/samples/snippets/visualbasic/programming-guide/language-features/passing-named-arguments/namedargs.vbproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 15.5 From 89c42f04b4129e3c8005e4e2f0056bf5d6af3433 Mon Sep 17 00:00:00 2001 From: alexwolfmsft <93200798+alexwolfmsft@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:31:09 -0500 Subject: [PATCH 08/12] .NET AI freshness pass (#43767) * .NET AI freshness pass Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --------- Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- docs/ai/conceptual/agents.md | 2 +- .../conceptual/chain-of-thought-prompting.md | 11 +++-- docs/ai/conceptual/how-genai-and-llms-work.md | 2 +- docs/ai/conceptual/rag.md | 2 +- docs/ai/conceptual/vector-databases.md | 2 +- docs/ai/conceptual/zero-shot-learning.md | 34 +++++++-------- docs/ai/dotnet-ai-ecosystem.md | 2 +- docs/ai/how-to/app-service-aoai-auth.md | 42 +++++++++---------- docs/ai/how-to/app-service-db-auth.md | 38 ++++++++--------- docs/ai/how-to/use-redis-for-memory.md | 7 +--- docs/ai/quickstarts/quickstart-local-ai.md | 2 +- docs/ai/tutorials/llm-eval.md | 2 +- .../ai/tutorials/tutorial-ai-vector-search.md | 2 +- 13 files changed, 71 insertions(+), 77 deletions(-) diff --git a/docs/ai/conceptual/agents.md b/docs/ai/conceptual/agents.md index 60c48d3c55a16..b6dc47ca7bc6b 100644 --- a/docs/ai/conceptual/agents.md +++ b/docs/ai/conceptual/agents.md @@ -3,7 +3,7 @@ title: "Agents and Copilots Bring Automation and Interactive Assistance to Your description: "Learn how agents and copilots intelligently extend the functionality of LLMs to automatically meet user goals in .NET." author: catbutler ms.topic: concept-article #Don't change. -ms.date: 04/15/2024 +ms.date: 11/24/2024 #customer intent: As a .NET developer, I want to understand how agents and copilots extend the functionality of LLMs, so that my apps can handle any type of content and automatically meet user goals. diff --git a/docs/ai/conceptual/chain-of-thought-prompting.md b/docs/ai/conceptual/chain-of-thought-prompting.md index 8e9d7567ca87e..20d3d234b1984 100644 --- a/docs/ai/conceptual/chain-of-thought-prompting.md +++ b/docs/ai/conceptual/chain-of-thought-prompting.md @@ -3,7 +3,7 @@ title: "Chain of Thought Prompting - .NET" description: "Learn how chain of thought prompting can simplify prompt engineering." author: catbutler ms.topic: concept-article #Don't change. -ms.date: 04/10/2024 +ms.date: 11/24/2024 #customer intent: As a .NET developer, I want to understand what chain-of-thought prompting is and how it can help me save time and get better completions out of prompt engineering. @@ -11,11 +11,9 @@ ms.date: 04/10/2024 # Chain of thought prompting -This article explains the use of chain of thought prompting in .NET. +GPT model performance and response quality benefits from *prompt engineering*, which is the practice of providing instructions and examples to a model to prime or refine its output. As they process instructions, models make more reasoning errors when they try to answer right away rather than taking time to work out an answer. You can help the model reason its way toward correct answers more reliably by asking for the model to include its chain of thought—that is, the steps it took to follow an instruction, along with the results of each step. -GPT model performance benefits from *prompt engineering*, which is the practice of providing instructions and examples to a model to prime or refine its output. As they process instructions, models make more reasoning errors when they try to answer right away rather than taking time to work out an answer. You can help the model reason its way toward correct answers more reliably by asking for the model to include its chain of thought—that is, the steps it took to follow an instruction, along with the results of each step. - -*Chain of thought prompting* is the practice of prompting a GPT model to perform a task step-by-step and to present each step and its result in order in the output. This simplifies prompt engineering by offloading some execution planning to the model, and makes it easier to connect any problem to a specific step so you know where to focus further efforts. +*Chain of thought prompting* is the practice of prompting a model to perform a task step-by-step and to present each step and its result in order in the output. This simplifies prompt engineering by offloading some execution planning to the model, and makes it easier to connect any problem to a specific step so you know where to focus further efforts. It's generally simpler to just instruct the model to include its chain of thought, but you can use examples to show the model how to break down tasks. The following sections show both ways. @@ -24,7 +22,8 @@ It's generally simpler to just instruct the model to include its chain of though To use an instruction for chain of thought prompting, include a directive that tells the model to perform the task step-by-step and to output the result of each step. ```csharp -prompt= "Instructions: Compare the pros and cons of EVs and petroleum-fueled vehicles. Break the task into steps, and output the result of each step as you perform it."; +prompt= """Instructions: Compare the pros and cons of EVs and petroleum-fueled vehicles. +Break the task into steps, and output the result of each step as you perform it."""; ``` ## Use chain of thought prompting in examples diff --git a/docs/ai/conceptual/how-genai-and-llms-work.md b/docs/ai/conceptual/how-genai-and-llms-work.md index 1f0cec722c075..95fc51f2d4835 100644 --- a/docs/ai/conceptual/how-genai-and-llms-work.md +++ b/docs/ai/conceptual/how-genai-and-llms-work.md @@ -3,7 +3,7 @@ title: "How Generative AI and LLMs work" description: "Understand how Generative AI and large language models (LLMs) work and how they might be useful in your .NET projects." author: haywoodsloan ms.topic: concept-article -ms.date: 04/04/2024 +ms.date: 11/24/2024 #customer intent: As a .NET developer, I want to understand how Generative AI and large language models (LLMs) work and how they may be useful in my .NET projects. diff --git a/docs/ai/conceptual/rag.md b/docs/ai/conceptual/rag.md index e566c43c2b59f..95f0dc902dfb5 100644 --- a/docs/ai/conceptual/rag.md +++ b/docs/ai/conceptual/rag.md @@ -3,7 +3,7 @@ title: "Integrate Your Data into AI Apps with Retrieval-Augmented Generation" description: "Learn how retrieval-augmented generation lets you use your data with LLMs to generate better completions in .NET." author: catbutler ms.topic: concept-article #Don't change. -ms.date: 04/15/2024 +ms.date: 11/24/2024 #customer intent: As a .NET developer, I want to understand how retrieval-augmented generation works in .NET so that LLMs can use my data sources to provide more valuable completions. diff --git a/docs/ai/conceptual/vector-databases.md b/docs/ai/conceptual/vector-databases.md index 2040abf125ea9..e00b1f2ffd628 100644 --- a/docs/ai/conceptual/vector-databases.md +++ b/docs/ai/conceptual/vector-databases.md @@ -3,7 +3,7 @@ title: "Using Vector Databases to Extend LLM Capabilities" description: "Learn how vector databases extend LLM capabilities by storing and processing embeddings in .NET." author: catbutler ms.topic: concept-article #Don't change. -ms.date: 05/16/2024 +ms.date: 11/24/2024 #customer intent: As a .NET developer, I want to learn how vector databases store and process embeddings in .NET so I can make more data available to LLMs in my apps. diff --git a/docs/ai/conceptual/zero-shot-learning.md b/docs/ai/conceptual/zero-shot-learning.md index 219e2f21d8f9c..0a9e134934604 100644 --- a/docs/ai/conceptual/zero-shot-learning.md +++ b/docs/ai/conceptual/zero-shot-learning.md @@ -3,7 +3,7 @@ title: "Zero-shot and few-shot learning" description: "Learn the use cases for zero-shot and few-shot learning in prompt engineering." author: catbutler ms.topic: concept-article #Don't change. -ms.date: 04/12/2024 +ms.date: 11/25/2024 #customer intent: As a .NET developer, I want to understand how zero-shot and few-shot learning techniques can help me improve my prompt engineering. @@ -13,11 +13,13 @@ ms.date: 04/12/2024 This article explains zero-shot learning and few-shot learning for prompt engineering in .NET, including their primary use cases. -GPT model performance benefits from *prompt engineering*, the practice of providing instructions and examples to a model to refine its output. Zero-shot learning and few-shot learning are techniques that you can use when providing examples. +GPT model performance benefits from *prompt engineering*, the practice of providing instructions and examples to a model to refine its output. Zero-shot learning and few-shot learning are techniques you can use when providing examples. -With zero-shot learning, you include prompts but not verbatim completions. You can include completions that only consist of cues. Zero-shot learning relies entirely on the model's existing knowledge to generate responses, which reduces the number of tokens created and can help you control costs. However, zero-shot learning doesn't add to the model's knowledge. +## Zero-shot learning -Here's an example zero-shot prompt that tells the model to evaluate user input to determine which of four possible intents the input represents, and then to preface its response with **"Intent: "**. +Zero-shot learning is the practice of passing prompts that aren't paired with verbatim completions, although you can include completions that consist of cues. Zero-shot learning relies entirely on the model's existing knowledge to generate responses, which reduces the number of tokens created and can help you control costs. However, zero-shot learning doesn't add to the model's knowledge or context. + +Here's an example zero-shot prompt that tells the model to evaluate user input to determine which of four possible intents the input represents, and then to preface the response with **"Intent: "**. ```csharp prompt = $""" @@ -29,7 +31,14 @@ Intent: """; ``` -With few-shot learning, you include prompts paired with verbatim completions. Compared to zero-shot learning, this means few-shot learning produces more tokens and causes the model to update its knowledge, which can make few-shot learning more resource-intensive. However, for the same reasons few-shot learning also helps the model produce more relevant responses. +There are two primary use cases for zero-shot learning: + +- **Work with fined-tuned LLMs** - Because it relies on the model's existing knowledge, zero-shot learning is not as resource-intensive as few-shot learning, and it works well with LLMs that have already been fined-tuned on instruction datasets. You might be able to rely solely on zero-shot learning and keep costs relatively low. +- **Establish performance baselines** - Zero-shot learning can help you simulate how your app would perform for actual users. This lets you evaluate various aspects of your model's current performance, such as accuracy or precision. In this case, you typically use zero-shot learning to establish a performance baseline and then experiment with few-shot learning to improve performance. + +## Few-shot learning + +Few-shot learning is the practice of passing prompts paired with verbatim completions (few-shot prompts) to show your model how to respond. Compared to zero-shot learning, this means few-shot learning produces more tokens and causes the model to update its knowledge, which can make few-shot learning more resource-intensive. However, few-shot learning also helps the model produce more relevant responses. ```csharp prompt = $""" @@ -48,21 +57,10 @@ Intent: """; ``` -## Zero-shot learning use cases - -Zero-shot learning is the practice of passing prompts that aren't paired with verbatim completions, although they can be paired with a cue. There are two primary use cases for zero-shot learning: - -- **Working with fined-tuned LLMs** - Because it relies on the model's existing knowledge, zero-shot learning is not as resource-intensive as few-shot learning, and it works well with LLMs that have already been fined-tuned on instruction datasets. You might be able to rely solely on zero-shot learning and keep costs relatively low. -- **Establish performance baselines** - Zero-shot learning can help you simulate how your app would perform for actual users. This lets you evaluate various aspects of your model's current performance, such as accuracy or precision. In this case, you typically use zero-shot learning to establish a performance baseline and then experiment with few-shot learning to improve performance. - -## Few-shot learning use cases - -Few-shot learning is the practice of passing prompts paired with verbatim completions (few-shot prompts) to show your model how to respond. Unlike zero-shot learning, few-shot learning can add to the model's knowledge. You can even use your own datasets to automatically generate few-shot prompts, by performing retrieval-augmented generation. - Few-shot learning has two primary use cases: -- **Tuning an LLM** - Because it can add to the model's knowledge, few-shot learning can improve a model's performance. It also causes the model to create more tokens than zero-shot learning does, which can eventually become prohibitively expensive or even infeasible. However, if your LLM isn't fined-tuned yet, you won't get good performance with zero-shot prompts, and few-shot learning is warranted. -- **Fixing performance issues** - You can use few-shot learning as a follow-on to zero-shot learning. In this case, you use zero-shot learning to establish a performance baseline, and then experiment with few-shot learning based on the zero-shot prompts you used. This lets you add to the model's knowledge after seeing how it currently responds, so you can iterate and improve performance while minimizing the number of tokens you introduce. +- **Tuning an LLM** - Because it can add to the model's knowledge, few-shot learning can improve a model's performance. It also causes the model to create more tokens than zero-shot learning does, which can eventually become prohibitively expensive or even infeasible. However, if your LLM isn't fined-tuned yet, you won't always get good performance with zero-shot prompts, and few-shot learning is warranted. +- **Fixing performance issues** - You can use few-shot learning as a follow-up to zero-shot learning. In this case, you use zero-shot learning to establish a performance baseline, and then experiment with few-shot learning based on the zero-shot prompts you used. This lets you add to the model's knowledge after seeing how it currently responds, so you can iterate and improve performance while minimizing the number of tokens you introduce. ### Caveats diff --git a/docs/ai/dotnet-ai-ecosystem.md b/docs/ai/dotnet-ai-ecosystem.md index 5f38c1577c9d9..f208867d16b58 100644 --- a/docs/ai/dotnet-ai-ecosystem.md +++ b/docs/ai/dotnet-ai-ecosystem.md @@ -1,7 +1,7 @@ --- title: Overview of the .NET + AI ecosystem description: This article provides an overview of the ecosystem of SDKs and tools available to .NET developers integrating AI into their applications. -ms.date: 04/04/2024 +ms.date: 11/24/2024 ms.topic: overview ms.custom: devx-track-dotnet, devx-track-dotnet-ai --- diff --git a/docs/ai/how-to/app-service-aoai-auth.md b/docs/ai/how-to/app-service-aoai-auth.md index 63e707e9d5592..6e968d54509e1 100644 --- a/docs/ai/how-to/app-service-aoai-auth.md +++ b/docs/ai/how-to/app-service-aoai-auth.md @@ -4,14 +4,14 @@ description: "Learn how to authenticate and authorize your app service applicati author: haywoodsloan ms.topic: how-to ms.custom: devx-track-azurecli -ms.date: 04/19/2024 +ms.date: 11/24/2024 zone_pivot_groups: azure-interface #customer intent: As a .NET developer, I want authenticate and authorize my App Service to Azure OpenAI by using Microsoft Entra so that I can securely use AI in my .NET application. --- -# Authenticate and authorize App Service to Azure OpenAI using Microsoft Entra and the Semantic Kernel SDK +# Authenticate an AI app hosted on Azure App Service to Azure OpenAI using Microsoft Entra ID -This article demonstrates how to use [Microsoft Entra-managed identities](/azure/app-service/overview-managed-identity) to authenticate and authorize an App Service application to an Azure OpenAI resource. +This article demonstrates how to use [Microsoft Entra ID managed identities](/azure/app-service/overview-managed-identity) to authenticate and authorize an App Service application to an Azure OpenAI resource. This article also demonstrates how to use the [Semantic Kernel SDK](/semantic-kernel/overview) to easily implement Microsoft Entra authentication in your .NET application. @@ -33,32 +33,18 @@ Your application can be granted two types of identities: * A **system-assigned identity** is tied to your application and is deleted if your app is deleted. An app can have only one system-assigned identity. * A **user-assigned identity** is a standalone Azure resource that can be assigned to your app. An app can have multiple user-assigned identities. -### Add a system-assigned identity - :::zone target="docs" pivot="azure-portal" +# [System-assigned](#tab/system-assigned) + 1. Navigate to your app's page in the [Azure portal](https://aka.ms/azureportal), and then scroll down to the **Settings** group. 1. Select **Identity**. 1. On the **System assigned** tab, toggle *Status* to **On**, and then select **Save**. -:::zone-end - -:::zone target="docs" pivot="azure-cli" - -Run the `az webapp identity assign` command to create a system-assigned identity: - -```azurecli -az webapp identity assign --name --resource-group -``` - -:::zone-end - -### Add a user-assigned identity +## [User-assigned](#tab/user-assigned) To add a user-assigned identity to your app, create the identity, and then add its resource identifier to your app config. -:::zone target="docs" pivot="azure-portal" - 1. Create a user-assigned managed identity resource by following [these instructions](/azure/active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-portal#create-a-user-assigned-managed-identity). 1. In the left navigation pane of your app's page, scroll down to the **Settings** group. 1. Select **Identity**. @@ -68,10 +54,22 @@ To add a user-assigned identity to your app, create the identity, and then add i > [!IMPORTANT] > After you select **Add**, the app restarts. +--- + :::zone-end :::zone target="docs" pivot="azure-cli" +## [System-assigned](#tab/system-assigned) + +Run the `az webapp identity assign` command to create a system-assigned identity: + +```azurecli +az webapp identity assign --name --resource-group +``` + +## [User-assigned](#tab/user-assigned) + 1. Create a user-assigned identity: ```azurecli @@ -84,6 +82,8 @@ To add a user-assigned identity to your app, create the identity, and then add i az webapp identity assign --resource-group --name --identities ``` +--- + :::zone-end ## Add an Azure OpenAI user role to your managed identity @@ -135,7 +135,7 @@ az role assignment create --assignee "" \ :::zone-end -## Implement token-based authentication by using Semantic Kernel SDK +## Implement token-based authentication using Semantic Kernel SDK 1. Initialize a `DefaultAzureCredential` object to assume your app's managed identity: diff --git a/docs/ai/how-to/app-service-db-auth.md b/docs/ai/how-to/app-service-db-auth.md index 0fe3c2996b55a..f92a4441a9be5 100644 --- a/docs/ai/how-to/app-service-db-auth.md +++ b/docs/ai/how-to/app-service-db-auth.md @@ -4,7 +4,7 @@ description: "Learn how to authenticate and authorize your App Service .NET appl author: haywoodsloan ms.topic: how-to ms.custom: devx-track-azurecli -ms.date: 04/24/2024 +ms.date: 11/24/2024 zone_pivot_groups: azure-interface #customer intent: As a .NET developer, I want authenticate and authorize my App Service to a vector database so that I can securely add memories to the AI in my .NET application. --- @@ -13,7 +13,7 @@ zone_pivot_groups: azure-interface This article demonstrates how to manage the connection between your App Service .NET application and a [vector database solution](../conceptual/vector-databases.md). It covers using Microsoft Entra managed identities for supported services and securely storing connection strings for others. -By adding a vector database to your application, you can enable [semantic memories or *vector stores*]([vector stores](/semantic-kernel/concepts/vector-store-connectors/)) for your AI. The [Semantic Kernel SDK](/semantic-kernel/overview) for .NET enables you to easily implement memory storage and recall using your preferred vector database solution. +By adding a vector database to your application, you can enable [semantic memories or *vector stores*](/semantic-kernel/concepts/vector-store-connectors/) for your AI. The [Semantic Kernel SDK](/semantic-kernel/overview) for .NET enables you to easily implement memory storage and recall using your preferred vector database solution. ## Prerequisites @@ -35,32 +35,18 @@ Your application can be granted two types of identities: * A **system-assigned identity** is tied to your application and is deleted if your app is deleted. An app can have only one system-assigned identity. * A **user-assigned identity** is a standalone Azure resource that can be assigned to your app. An app can have multiple user-assigned identities. -#### Add a system-assigned identity - :::zone target="docs" pivot="azure-portal" +# [System-assigned](#tab/system-assigned) + 1. Navigate to your app's page in the [Azure portal](https://aka.ms/azureportal), and then scroll down to the **Settings** group. 1. Select **Identity**. 1. On the **System assigned** tab, toggle *Status* to **On**, and then select **Save**. -:::zone-end - -:::zone target="docs" pivot="azure-cli" - -Run the `az webapp identity assign` command to create a system-assigned identity: - -```azurecli -az webapp identity assign --name --resource-group -``` - -:::zone-end - -#### Add a user-assigned identity +## [User-assigned](#tab/user-assigned) To add a user-assigned identity to your app, create the identity, and then add its resource identifier to your app config. -:::zone target="docs" pivot="azure-portal" - 1. Create a user-assigned managed identity resource by following [these instructions](/azure/active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-portal#create-a-user-assigned-managed-identity). 1. In the left navigation pane of your app's page, scroll down to the **Settings** group. 1. Select **Identity**. @@ -70,10 +56,22 @@ To add a user-assigned identity to your app, create the identity, and then add i > [!IMPORTANT] > After you select **Add**, the app restarts. +--- + :::zone-end :::zone target="docs" pivot="azure-cli" +## [System-assigned](#tab/system-assigned) + +Run the `az webapp identity assign` command to create a system-assigned identity: + +```azurecli +az webapp identity assign --name --resource-group +``` + +## [User-assigned](#tab/user-assigned) + 1. Create a user-assigned identity: ```azurecli @@ -86,6 +84,8 @@ To add a user-assigned identity to your app, create the identity, and then add i az webapp identity assign --resource-group --name --identities ``` +--- + :::zone-end ### Add an Azure role to your managed identity diff --git a/docs/ai/how-to/use-redis-for-memory.md b/docs/ai/how-to/use-redis-for-memory.md index fd1956caa838d..2015b7c3d870f 100644 --- a/docs/ai/how-to/use-redis-for-memory.md +++ b/docs/ai/how-to/use-redis-for-memory.md @@ -57,8 +57,5 @@ Before you integrate your Redis database to the Semantic Kernel SDK, make sure t ## Related content - - -* [Use RAG with SQL] -* [Data ingestion from SharePoint] -* [Working with vector databases] +* [Working with vector databases](../tutorials/tutorial-ai-vector-search.md) +* [Chat using your own data sample for .NET](../get-started-app-chat-template.md) diff --git a/docs/ai/quickstarts/quickstart-local-ai.md b/docs/ai/quickstarts/quickstart-local-ai.md index e92ca410ce712..962b94f0e5688 100644 --- a/docs/ai/quickstarts/quickstart-local-ai.md +++ b/docs/ai/quickstarts/quickstart-local-ai.md @@ -1,7 +1,7 @@ --- title: Quickstart - Connect to and chat with a local AI using .NET and Semantic Kernel description: Set up a local AI model and chat with it using a .NET console app and the Semantic Kernel SDK -ms.date: 06/04/2024 +ms.date: 11/24/2024 ms.topic: quickstart ms.custom: devx-track-dotnet, devx-track-dotnet-ai author: alexwolfmsft diff --git a/docs/ai/tutorials/llm-eval.md b/docs/ai/tutorials/llm-eval.md index 3967ba61f6401..f2bf5ebba80ed 100644 --- a/docs/ai/tutorials/llm-eval.md +++ b/docs/ai/tutorials/llm-eval.md @@ -3,7 +3,7 @@ title: "Tutorial: Evaluate an LLM's prompt completions" description: "Evaluate the coherence, relevance, and groundedness of an LLM's prompt completions using Azure OpenAI and the Semantic Kernel SDK for .NET." author: haywoodsloan ms.topic: tutorial -ms.date: 05/08/2024 +ms.date: 11/24/2024 #customer intent: As a .NET developer, I want to evaluate an LLM's prompt completions using .NET so that I can choose an LLM for my .NET application that fits my use case. diff --git a/docs/ai/tutorials/tutorial-ai-vector-search.md b/docs/ai/tutorials/tutorial-ai-vector-search.md index 81f8f9bc326d8..c641844f94bda 100644 --- a/docs/ai/tutorials/tutorial-ai-vector-search.md +++ b/docs/ai/tutorials/tutorial-ai-vector-search.md @@ -1,7 +1,7 @@ --- title: Tutorial - Integrate OpenAI with the RAG pattern and vector search using Azure Cosmos DB for MongoDB description: Create a simple recipe app using the RAG pattern and vector search using Azure Cosmos DB for MongoDB. -ms.date: 04/26/2024 +ms.date: 11/24/2024 ms.topic: tutorial ms.custom: devx-track-dotnet, devx-track-dotnet-ai author: alexwolfmsft From 9b376380db96644b2ea0117983598ea149cb0c9b Mon Sep 17 00:00:00 2001 From: Borislav Ivanov Date: Wed, 27 Nov 2024 01:36:17 +0200 Subject: [PATCH 09/12] Fix spelling error (#43761) --- .../file-schema/trace-debug/performancecounters-element.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/framework/configure-apps/file-schema/trace-debug/performancecounters-element.md b/docs/framework/configure-apps/file-schema/trace-debug/performancecounters-element.md index 837dad61d3c07..d6dd03844d627 100644 --- a/docs/framework/configure-apps/file-schema/trace-debug/performancecounters-element.md +++ b/docs/framework/configure-apps/file-schema/trace-debug/performancecounters-element.md @@ -50,7 +50,7 @@ None. Performance counters use a memory mapped file, or shared memory, to publish performance data. The size of the shared memory determines how many instances can be used at once. There are two types of shared memory: global shared memory and separate shared memory. The global shared memory is used by all performance counter categories installed with the .NET Framework versions 1.0 or 1.1. Performance counter categories installed with the .NET Framework version 2.0 use separate shared memory, with each performance counter category having its own memory. -The size of global shared memory can be set only with a configuration file. The default size is 524,288 byes, the maximum size is 33,554,432 bytes, and the minimum size is 32,768 bytes. Since the global shared memory is shared by all processes and categories, the first creator specifies the size. If you define the size in your application configuration file, that size is only used if your application is the first application that causes the performance counters to execute. Therefore the correct location to specify the `filemappingsize` value is the Machine.config file. Memory in the global shared memory cannot be released by individual performance counters, so eventually global shared memory is exhausted if a large number of performance counter instances with different names are created. +The size of global shared memory can be set only with a configuration file. The default size is 524,288 bytes, the maximum size is 33,554,432 bytes, and the minimum size is 32,768 bytes. Since the global shared memory is shared by all processes and categories, the first creator specifies the size. If you define the size in your application configuration file, that size is only used if your application is the first application that causes the performance counters to execute. Therefore the correct location to specify the `filemappingsize` value is the Machine.config file. Memory in the global shared memory cannot be released by individual performance counters, so eventually global shared memory is exhausted if a large number of performance counter instances with different names are created. For the size of separate shared memory, the DWORD FileMappingSize value in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\\*\*\Performance is referenced first, followed by the value specified for the global shared memory in the configuration file. If the FileMappingSize value does not exist, then the separate shared memory size is set to one fourth (1/4) the global setting in the configuration file. From 5f1ff82518996c05f311cf42c2dc4ff0da08767a Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Wed, 27 Nov 2024 00:38:07 +0100 Subject: [PATCH 10/12] Fix expected and actual being swapped (#43670) --- docs/core/testing/mstest-analyzers/mstest0026.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core/testing/mstest-analyzers/mstest0026.md b/docs/core/testing/mstest-analyzers/mstest0026.md index a9c44cf24c2ca..e2eee0ebd6e96 100644 --- a/docs/core/testing/mstest-analyzers/mstest0026.md +++ b/docs/core/testing/mstest-analyzers/mstest0026.md @@ -61,12 +61,12 @@ Ensure that arguments do not contain `(?.)` or `?[]` when passed to the assertio ```csharp Company? company = GetCompany(); -Assert.AreEqual(company?.Name, "Contoso"); // MSTEST0026 +Assert.AreEqual("Contoso", company?.Name); // MSTEST0026 StringAssert.Contains(company?.Address, "Brazil"); // MSTEST0026 // Fixed code Assert.IsNotNull(company); -Assert.AreEqual(company.Name, "Contoso"); +Assert.AreEqual("Contoso", company.Name); StringAssert.Contains(company.Address, "Brazil"); ``` From 02724f4d35174c5931864adc9e66e3c6a0b981e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Wed, 27 Nov 2024 00:51:55 +0100 Subject: [PATCH 11/12] MSTest SDK doc: use latest released version (#43714) * MSTest SDK doc: use latest released version * Update docs/core/testing/unit-testing-mstest-sdk.md --- docs/core/testing/unit-testing-mstest-sdk.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/core/testing/unit-testing-mstest-sdk.md b/docs/core/testing/unit-testing-mstest-sdk.md index b3c6c47656e0f..a8e832285ddb0 100644 --- a/docs/core/testing/unit-testing-mstest-sdk.md +++ b/docs/core/testing/unit-testing-mstest-sdk.md @@ -19,7 +19,7 @@ The MSTest SDK discovers and runs your tests using the [MSTest runner](./unit-te You can enable `MSTest.Sdk` in a project by simply updating the `Sdk` attribute of the `Project` node of your project: ```xml - + net8.0 @@ -31,7 +31,7 @@ You can enable `MSTest.Sdk` in a project by simply updating the `Sdk` attribute ``` > [!NOTE] -> `/3.3.1` is given as example as it's the first version of the SDK, but it can be replaced with any newer version. +> `/3.6.3` is given as example and can be replaced with any newer version. To simplify handling of versions, we recommend setting the SDK version at solution level using the _global.json_ file. For example, your project file would look like: @@ -52,7 +52,7 @@ Then, specify the `MSTest.Sdk` version in the _global.json_ file as follows: ```json { "msbuild-sdks": { - "MSTest.Sdk": "3.3.1" + "MSTest.Sdk": "3.6.3" } } ``` @@ -90,7 +90,7 @@ You can set the profile using the property `TestingExtensionsProfile` with one o Here's a full example, using the `None` profile: ```xml - + net8.0 @@ -109,7 +109,7 @@ Extensions can be enabled and disabled by MSBuild properties with the pattern `E For example, to enable the crash dump extension (NuGet package [Microsoft.Testing.Extensions.CrashDump](https://www.nuget.org/packages/Microsoft.Testing.Extensions.CrashDump)), you can use the following property `EnableMicrosoftTestingExtensionsCrashDump` set to `true`: ```xml - + net8.0 @@ -133,7 +133,7 @@ This property pattern can be used to enable an additional extension on top of th You can also disable an extension that's coming from the selected profile. For example, disable the `MS Code Coverage` extension by setting `false`: ```xml - + net8.0 @@ -211,7 +211,7 @@ Add the version to your `global.json`: ```json { "msbuild-sdks": { - "MSTest.Sdk": "3.3.1" + "MSTest.Sdk": "3.6.3" } } ``` From db88975d204aa4d69d6a7d0d29cad86493a095b2 Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:08:24 -0800 Subject: [PATCH 12/12] Update linux-ubuntu-install.md (#43782) --- docs/core/install/linux-ubuntu-install.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/core/install/linux-ubuntu-install.md b/docs/core/install/linux-ubuntu-install.md index 56ecfb47c3ab2..ab974d4d68439 100644 --- a/docs/core/install/linux-ubuntu-install.md +++ b/docs/core/install/linux-ubuntu-install.md @@ -79,7 +79,7 @@ You can install a recent version of _libgdiplus_ by [adding the Mono repository ## Ubuntu 24.04 -[!INCLUDE [linux-ubuntu-package-feed-both](includes/linux-ubuntu-package-feed-both.md)] +[!INCLUDE [linux-ubuntu-package-feed-only](includes/linux-ubuntu-package-feed-only.md)] The following versions of .NET are supported or available for Ubuntu 24.04: @@ -101,8 +101,7 @@ When an [Ubuntu version](https://wiki.ubuntu.com/Releases) falls out of support, # [.NET 6](#tab/dotnet6) -> [!IMPORTANT] -> .NET 6 is available in the Ubuntu backports package repository for Ubuntu 24.04, and not the built-in package repository. For more information, see [Register the Ubuntu backports package repository](linux-ubuntu.md#register-the-ubuntu-net-backports-package-repository). After the repository is registered, use the following sections to install .NET. +[!INCLUDE [linux-ubuntu-register-backports](includes/linux-ubuntu-register-backports.md)] > [!WARNING] > .NET 6 is no longer supported.