dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
699 stars 1.54k forks source link

developer #10171

Open yegorisB opened 1 month ago

yegorisB commented 1 month ago

Type of issue

VS2022 Error Message

Description

using System.Text.RegularExpressions; public static int Count (string input, string pattern); Severity Code CS0103 The name 'Count' does not exist in the current context VS2022 [Enter feedback here]

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.count?view=net-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Text.RegularExpressions/Regex.xml

Document Version Independent Id

eaa53010-0ad3-5926-c750-8b29ef19a4e0

Article author

@dotnet-bot

dotnet-issue-labeler[bot] commented 1 month ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 1 month ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

DickBaker commented 1 month ago

there are many doc context-leaks where .NET-9 has bled-thru into .NET-8 docs. See also Issues #9868 #9919 #10111 so expect to be "de-duped" as dupe of #10012 !

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions

tarekgh commented 1 month ago

@yegorisB Regex.Count doc is correctly specifying the API is supported starting .NET 7.0. What is wrong with that?

image

CC @gewarren