Skip to content

Commit d0478b3

Browse files
Merge pull request #44101 from dotnet/main
Merge main into live
2 parents b945f88 + 59ce762 commit d0478b3

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

docs/core/project-sdk/msbuild-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ The `EnableNUnitRunner` property enables or disables the use of the [NUnit runne
15121512

15131513
### GenerateTestingPlatformEntryPoint
15141514

1515-
Setting the `GenerateTestingPlatformEntryPoint` property to `false` disables the automatic generation of the program entry point in an MSTest, NUnit, or xUnit test project. You might want to set this property to `false` when you manually define an entry point, or when you reference a test project from an executable that also has an entry point.
1515+
Setting the `GenerateTestingPlatformEntryPoint` property to `false` disables the automatic generation of the program entry point in an MSTest or NUnit test project. You might want to set this property to `false` when you manually define an entry point, or when you reference a test project from an executable that also has an entry point.
15161516

15171517
For more information, see [error CS8892](../testing/unit-testing-platform-faq.md#error-cs8892-method-testingplatformentrypointmainstring-will-not-be-used-as-an-entry-point-because-a-synchronous-entry-point-programmainstring-was-found).
15181518

docs/framework/migration-guide/snippets/csharp/versions-installed.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ private static void Get45PlusFromRegistry()
9898
//<snippet2>
9999
const string subkey = @"SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\";
100100

101-
using (var ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(subkey))
101+
using (var baseKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32))
102+
using (var ndpKey = baseKey.OpenSubKey(subkey))
102103
{
103104
if (ndpKey != null && ndpKey.GetValue("Release") != null)
104105
{

docs/framework/migration-guide/snippets/visual-basic/versions-installed.vb

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Module Program
7272
Private Sub Get45PlusFromRegistry()
7373
Const subkey As String = "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\"
7474

75-
Using ndpKey As RegistryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(subkey)
75+
Using baseKey As RegistryKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32),
76+
ndpKey As RegistryKey = baseKey.OpenSubKey(subkey)
7677
If ndpKey IsNot Nothing AndAlso ndpKey.GetValue("Release") IsNot Nothing Then
7778
Console.WriteLine($".NET Framework Version: {CheckFor45PlusVersion(ndpKey.GetValue("Release"))}")
7879
Else

docs/framework/wcf/feature-details/how-to-view-certificates-with-the-mmc-snap-in.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ms.date: 02/25/2019
55
helpviewer_keywords:
66
- "certificates [WCF], viewing with the MMC snap-in"
77
ms.assetid: 2b8782aa-ebb4-4ee7-974b-90299e356dc5
8+
no-loc: [certlm.msc, certmgr.msc]
89
---
910
# How to: View certificates with the MMC snap-in
1011

docs/standard/serialization/system-text-json/snippets/use-dom-utf8jsonreader-utf8jsonwriter/csharp/JsonNodeAverageGradeExample.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public static void Main()
3838
double sum = 0;
3939
JsonNode document = JsonNode.Parse(jsonString)!;
4040

41-
JsonNode root = document.Root;
42-
JsonArray studentsArray = root["Students"]!.AsArray();
41+
JsonArray studentsArray = document["Students"]!.AsArray();
4342

4443
int count = studentsArray.Count;
4544
foreach (JsonNode? student in studentsArray)

0 commit comments

Comments
 (0)