diff --git a/docs/architecture/maui/media/login-page-displayed-by-the-webview.png b/docs/architecture/maui/media/login-page-displayed-by-the-webview.png deleted file mode 100644 index ee05b1b233cd8..0000000000000 Binary files a/docs/architecture/maui/media/login-page-displayed-by-the-webview.png and /dev/null differ diff --git a/docs/architecture/maui/media/screenshot.png b/docs/architecture/maui/media/screenshot.png deleted file mode 100644 index 1139628f0219c..0000000000000 Binary files a/docs/architecture/maui/media/screenshot.png and /dev/null differ diff --git a/docs/core/install/media/install-sdk/windows-install-visual-studio-2019.png b/docs/core/install/media/install-sdk/windows-install-visual-studio-2019.png deleted file mode 100644 index a9b624ea1445b..0000000000000 Binary files a/docs/core/install/media/install-sdk/windows-install-visual-studio-2019.png and /dev/null differ diff --git a/docs/core/testing/unit-testing-platform-faq.md b/docs/core/testing/unit-testing-platform-faq.md deleted file mode 100644 index 7ca8ad233a777..0000000000000 --- a/docs/core/testing/unit-testing-platform-faq.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Microsoft.Testing.Platform FAQ -description: Get answers to frequently asked questions about Microsoft.Testing.Platform. -author: Evangelink -ms.author: amauryleve -ms.date: 07/09/2024 ---- - -# Microsoft.Testing.Platform FAQ - -This article contains answers to commonly asked questions about `Microsoft.Testing.Platform`. - -## error CS8892: Method 'TestingPlatformEntryPoint.Main(string[])' will not be used as an entry point because a synchronous entry point 'Program.Main(string[])' was found - -Manually defining an entry point (`Main`) in test project, or referencing a test project into an application that already has an entry point, will result in conflict with the entry point generated by `Microsoft.Testing.Platform`. To avoid this issue take one of these steps: - -- Remove your manually defined entry point, typically `Main` method in _Program.cs_, and let testing platform to generate one for you. - -- Disable the generation of the entry point by setting `false` MSBuild property. - -- Completely disable the transitive dependency to `Microsoft.Testing.Platform.MSBuild` by setting `false` MSBuild property. This is needed when you are referencing test project from a non-test project, for example: You have a console application referencing a test application. diff --git a/docs/csharp/language-reference/toc.yml b/docs/csharp/language-reference/toc.yml index 57a0061e10f59..4a957cc0c008b 100644 --- a/docs/csharp/language-reference/toc.yml +++ b/docs/csharp/language-reference/toc.yml @@ -1657,7 +1657,7 @@ items: - name: CS1630 href: ../misc/cs1630.md - name: CS1637 - href: ../misc/cs1637.md + href: /dotnet/csharp/language-reference/compiler-messages/iterator-yield - name: CS1638 href: ../misc/cs1638.md - name: CS1639 diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compare1.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compare1.vb deleted file mode 100644 index 3eb51865c9dc2..0000000000000 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compare1.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Visual Basic .NET Document -Option Strict On - -' -Imports System.Diagnostics -Imports System.IO -Imports System.Text.RegularExpressions - -Module Example - Public Sub Main() - Dim pattern As String = "\b(\w+((\r?\n)|,?\s))*\w+[.?:;!]" - Dim sw As Stopwatch - Dim match As Match - Dim ctr As Integer - - Dim inFile As New StreamReader(".\Dreiser_TheFinancier.txt") - Dim input As String = inFile.ReadToEnd() - inFile.Close() - - ' Read first ten sentences with interpreted regex. - Console.WriteLine("10 Sentences with Interpreted Regex:") - sw = Stopwatch.StartNew() - Dim int10 As New Regex(pattern, RegexOptions.SingleLine) - match = int10.Match(input) - For ctr = 0 To 9 - If match.Success Then - ' Do nothing with the match except get the next match. - match = match.NextMatch() - Else - Exit For - End If - Next - sw.Stop() - Console.WriteLine(" {0} matches in {1}", ctr, sw.Elapsed) - - ' Read first ten sentences with compiled regex. - Console.WriteLine("10 Sentences with Compiled Regex:") - sw = Stopwatch.StartNew() - Dim comp10 As New Regex(pattern, - RegexOptions.SingleLine Or RegexOptions.Compiled) - match = comp10.Match(input) - For ctr = 0 To 9 - If match.Success Then - ' Do nothing with the match except get the next match. - match = match.NextMatch() - Else - Exit For - End If - Next - sw.Stop() - Console.WriteLine(" {0} matches in {1}", ctr, sw.Elapsed) - - ' Read all sentences with interpreted regex. - Console.WriteLine("All Sentences with Interpreted Regex:") - sw = Stopwatch.StartNew() - Dim intAll As New Regex(pattern, RegexOptions.SingleLine) - match = intAll.Match(input) - Dim matches As Integer = 0 - Do While match.Success - matches += 1 - ' Do nothing with the match except get the next match. - match = match.NextMatch() - Loop - sw.Stop() - Console.WriteLine(" {0:N0} matches in {1}", matches, sw.Elapsed) - - ' Read all sentences with compiled regex. - Console.WriteLine("All Sentences with Compiled Regex:") - sw = Stopwatch.StartNew() - Dim compAll As New Regex(pattern, - RegexOptions.SingleLine Or RegexOptions.Compiled) - match = compAll.Match(input) - matches = 0 - Do While match.Success - matches += 1 - ' Do nothing with the match except get the next match. - match = match.NextMatch() - Loop - sw.Stop() - Console.WriteLine(" {0:N0} matches in {1}", matches, sw.Elapsed) - End Sub -End Module -' The example displays output like the following: -' 10 Sentences with Interpreted Regex: -' 10 matches in 00:00:00.0047491 -' 10 Sentences with Compiled Regex: -' 10 matches in 00:00:00.0141872 -' All Sentences with Interpreted Regex: -' 13,443 matches in 00:00:01.1929928 -' All Sentences with Compiled Regex: -' 13,443 matches in 00:00:00.7635869 -' -' >compare1 -' 10 Sentences with Interpreted Regex: -' 10 matches in 00:00:00.0046914 -' 10 Sentences with Compiled Regex: -' 10 matches in 00:00:00.0143727 -' All Sentences with Interpreted Regex: -' 13,443 matches in 00:00:01.1514100 -' All Sentences with Compiled Regex: -' 13,443 matches in 00:00:00.7432921 -' diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compile1.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compile1.vb deleted file mode 100644 index fe943c3dd1995..0000000000000 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compile1.vb +++ /dev/null @@ -1,20 +0,0 @@ -' Visual Basic .NET Document -Option Strict On - -' -Imports System.Reflection -Imports System.Text.RegularExpressions - -Module Example - Public Sub Main() - Dim SentencePattern As New RegexCompilationInfo("\b(\w+((\r?\n)|,?\s))*\w+[.?:;!]", - RegexOptions.Multiline, - "SentencePattern", - "Utilities.RegularExpressions", - True) - Dim regexes() As RegexCompilationInfo = {SentencePattern} - Dim assemName As New AssemblyName("RegexLib, Version=1.0.0.1001, Culture=neutral, PublicKeyToken=null") - Regex.CompileToAssembly(regexes, assemName) - End Sub -End Module -' diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compile2.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compile2.vb deleted file mode 100644 index dc9a3ace1bcdb..0000000000000 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.regularexpressions.bestpractices/vb/compile2.vb +++ /dev/null @@ -1,31 +0,0 @@ -' Visual Basic .NET Document -Option Strict On - -' -Imports System.IO -Imports System.Text.RegularExpressions -Imports Utilities.RegularExpressions - -Module Example - Public Sub Main() - Dim pattern As New SentencePattern() - Dim inFile As New StreamReader(".\Dreiser_TheFinancier.txt") - Dim input As String = inFile.ReadToEnd() - inFile.Close() - - Dim matches As MatchCollection = pattern.Matches(input) - Console.WriteLine("Found {0:N0} sentences.", matches.Count) - End Sub -End Module -' The example displays the following output: -' Found 13,443 sentences. -' - -' This code is here so that Parsnip will compile the example. -Namespace Utilities.RegularExpressions - Public Class SentencePattern - Public Function Matches(input As String) As MatchCollection - return Nothing - End Function - End Class -End Namespace