3773 references to Console
AnalyzerRunner (35)
aspire (5)
Aspire.Cli.Tests (5)
Aspire.Dashboard.Tests (2)
Aspire.EndToEnd.Tests (16)
Aspire.Hosting (4)
Aspire.RuntimeIdentifier.Tool (2)
Aspire.Templates.Tests (16)
AutobahnTestApp (6)
BoundTreeGenerator (4)
BuildActionTelemetryTable (17)
BuildBoss (12)
BuildValidator (3)
ClientSample (30)
CodeGenerator (7)
CodeStyleConfigFileGenerator (9)
ConfigurationSchemaGenerator.Tests (1)
csc (8)
CSharpErrorFactsGenerator (1)
CSharpSyntaxGenerator (8)
csi (1)
CustomEncryptorSample (2)
DefaultBuilder.SampleApp (8)
DemoConsole (8)
Diagnostics.EFCore.FunctionalTests (1)
DnnAnalyzer (2)
dotnet-dev-certs (24)
dotnet-getdocument (23)
dotnet-openapi (25)
dotnet-razorpagegenerator (12)
dotnet-sql-cache (22)
dotnet-svcutil.xmlserializer (16)
dotnet-svcutil-lib (36)
dotnet-svcutil-lib.Tests (3)
dotnet-user-jwts (25)
dotnet-user-secrets (22)
EntityFrameworkCoreSample (1)
EventHubsConsumer (3)
GenerateAnalyzerNuspec (1)
GenerateDocumentationAndConfigFiles (29)
GenerateRulesMissingDocumentation (7)
GetDocument.Insider (23)
HelixTestRunner (4)
Http2SampleApp (1)
HttpAbstractions.SampleApp (1)
HttpClientApp (4)
HttpStress (52)
IdeBenchmarks (5)
IdeCoreBenchmarks (54)
IIS.Microbenchmarks (5)
IIS.ShadowCopy.Tests (1)
illink (99)
Linker\Driver.cs (98)
57Console.Error.WriteLine("No parameters specified");
77Console.Error.WriteLine("Fatal error in {0}", _linker);
125Console.Error.WriteLine("Cannot read response file due to '{0}'", e.Message);
1447Console.WriteLine(_linker);
1449Console.WriteLine($"illink [options] {resolvers}");
1450Console.WriteLine(" -a FILE [MODE] Assembly file used as root assembly with optional MODE value to alter default root mode");
1451Console.WriteLine(" Mode can be one of the following values");
1452Console.WriteLine(" all: Keep all members in root assembly");
1453Console.WriteLine(" default: Use entry point for applications and all members for libraries");
1454Console.WriteLine(" entrypoint: Use assembly entry point as only root in the assembly");
1455Console.WriteLine(" library: All assembly members and data needed for secondary trimming are retained");
1456Console.WriteLine(" visible: Keep all members and types visible outside of the assembly");
1457Console.WriteLine(" -x FILE XML descriptor file with members to be kept");
1459Console.WriteLine();
1460Console.WriteLine("Options");
1461Console.WriteLine(" -d PATH Specify additional directory to search in for assembly references");
1462Console.WriteLine(" -reference FILE Specify additional file location used to resolve assembly references");
1463Console.WriteLine(" -b Update debug symbols for all modified files. Defaults to false");
1464Console.WriteLine(" --preserve-symbol-paths Preserve debug header paths to pdb files. Defaults to false");
1465Console.WriteLine(" -out PATH Specify the output directory. Defaults to 'output'");
1466Console.WriteLine(" -h Lists all {0} options", _linker);
1467Console.WriteLine(" @FILE Read response file for more options");
1469Console.WriteLine();
1470Console.WriteLine("Actions");
1471Console.WriteLine(" --trim-mode ACTION Sets action for assemblies annotated with IsTrimmable attribute. Defaults to 'link'");
1472Console.WriteLine(" copy: Analyze whole assembly and save it to the output");
1473Console.WriteLine(" copyused: Same as copy but only for assemblies which are needed");
1474Console.WriteLine(" link: Remove any unused IL or metadata and optimizes the assembly");
1475Console.WriteLine(" skip: Do not process the assembly");
1476Console.WriteLine(" addbypassngen: Add BypassNGenAttribute to unused methods");
1477Console.WriteLine(" addbypassngenused: Same as addbypassngen but unused assemblies are removed");
1478Console.WriteLine(" --action ACTION Sets action for assemblies that have no IsTrimmable attribute. Defaults to 'link'");
1479Console.WriteLine(" --action ACTION ASM Overrides the default action for specific assembly name");
1481Console.WriteLine();
1482Console.WriteLine("Advanced Options");
1483Console.WriteLine(" --about About the {0}", _linker);
1484Console.WriteLine(" --custom-step CFG Add a custom step <config> to the existing pipeline");
1485Console.WriteLine(" Step can use one of following configurations");
1486Console.WriteLine(" TYPE,PATH_TO_ASSEMBLY: Add user defined type as last step to the pipeline");
1487Console.WriteLine(" -NAME:TYPE,PATH_TO_ASSEMBLY: Inserts step type before existing step with name");
1488Console.WriteLine(" +NAME:TYPE,PATH_TO_ASSEMBLY: Add step type after existing step");
1489Console.WriteLine(" --custom-data KEY=VALUE Populates context data set with user specified key-value pair");
1490Console.WriteLine(" --deterministic Produce a deterministic output for modified assemblies");
1491Console.WriteLine(" --ignore-descriptors Skips reading embedded descriptors (short -z). Defaults to false");
1492Console.WriteLine(" --skip-unresolved Ignore unresolved types, methods, and assemblies. Defaults to true");
1493Console.WriteLine(" --output-pinvokes PATH Output a JSON file with all modules and entry points of the P/Invokes found");
1494Console.WriteLine(" --verbose Log messages indicating progress and warnings");
1495Console.WriteLine(" --nowarn WARN Disable specific warning messages");
1496Console.WriteLine(" --warn VERSION Only print out warnings with version <= VERSION. Defaults to '9999'");
1497Console.WriteLine(" VERSION is an integer in the range 0-9999.");
1498Console.WriteLine(" --warnaserror[+|-] Report all warnings as errors");
1499Console.WriteLine(" --warnaserror[+|-] WARN Report specific warnings as errors");
1500Console.WriteLine(" --singlewarn[+|-] Show at most one analysis warning per assembly");
1501Console.WriteLine(" --singlewarn[+|-] ASM Show at most one analysis warning for a specific assembly");
1502Console.WriteLine(" --version Print the version number of the {0}", _linker);
1504Console.WriteLine();
1505Console.WriteLine("Trimming");
1506Console.WriteLine(" --disable-opt NAME [ASM] Disable one of the default optimizations globaly or for a specific assembly name");
1507Console.WriteLine(" beforefieldinit: Unused static fields are removed if there is no static ctor");
1508Console.WriteLine(" ipconstprop: Interprocedural constant propagation on return values");
1509Console.WriteLine(" overrideremoval: Overrides of virtual methods on types that are never instantiated are removed");
1510Console.WriteLine(" unreachablebodies: Instance methods that are marked but not executed are converted to throws");
1511Console.WriteLine(" unusedinterfaces: Removes interface types from declaration when not used");
1512Console.WriteLine(" unusedtypechecks: Inlines never successful type checks");
1513Console.WriteLine(" substitutefeatureguards: Substitutes properties annotated as FeatureGuard(typeof(RequiresUnreferencedCodeAttribute)) to false");
1514Console.WriteLine(" --enable-opt NAME [ASM] Enable one of the additional optimizations globaly or for a specific assembly name");
1515Console.WriteLine(" sealer: Any method or type which does not have override is marked as sealed");
1516Console.WriteLine(" --explicit-reflection Adds to members never used through reflection DisablePrivateReflection attribute. Defaults to false");
1517Console.WriteLine(" --feature FEATURE VALUE Apply any optimizations defined when this feature setting is a constant known at link time");
1518Console.WriteLine(" --keep-com-interfaces Keep COM interfaces implemented by kept types. Defaults to true");
1519Console.WriteLine(" --keep-compilers-resources Keep assembly resources used for F# compilation resources. Defaults to false");
1520Console.WriteLine(" --keep-dep-attributes Keep attributes used for manual dependency tracking. Defaults to false");
1521Console.WriteLine(" --keep-metadata NAME Keep metadata which would otherwise be removed if not used");
1522Console.WriteLine(" all: Metadata for any member are all kept");
1523Console.WriteLine(" parametername: All parameter names are kept");
1524Console.WriteLine(" --new-mvid Generate a new guid for each linked assembly (short -g). Defaults to true");
1525Console.WriteLine(" --strip-descriptors Remove XML descriptor resources for linked assemblies. Defaults to true");
1526Console.WriteLine(" --strip-security Remove metadata and code related to Code Access Security. Defaults to true");
1527Console.WriteLine(" --substitutions FILE Configuration file with field or methods substitution rules");
1528Console.WriteLine(" --ignore-substitutions Skips reading embedded substitutions. Defaults to false");
1529Console.WriteLine(" --strip-substitutions Remove XML substitution resources for linked assemblies. Defaults to true");
1530Console.WriteLine(" --used-attrs-only Attribute usage is removed if the attribute type is not used. Defaults to false");
1531Console.WriteLine(" --link-attributes FILE Supplementary custom attribute definitions for attributes controlling the trimming behavior.");
1532Console.WriteLine(" --ignore-link-attributes Skips reading embedded attributes. Defaults to false");
1533Console.WriteLine(" --strip-link-attributes Remove XML link attributes resources for linked assemblies. Defaults to true");
1535Console.WriteLine();
1536Console.WriteLine("Analyzer");
1537Console.WriteLine(" --dependencies-file FILE Specify the dependencies output. Defaults to 'output/linker-dependencies.xml'");
1538Console.WriteLine(" if 'xml' is file format, 'output/linker-dependencies.dgml if 'dgml' is file format");
1539Console.WriteLine(" --dump-dependencies Dump dependencies for the ILLink analyzer tool");
1540Console.WriteLine(" --dependencies-file-format FORMAT Specify output file type. Defaults to 'xml'");
1541Console.WriteLine(" xml: outputs an .xml file");
1542Console.WriteLine(" dgml: outputs a .dgml file");
1543Console.WriteLine(" --reduced-tracing Reduces dependency output related to assemblies that will not be modified");
1544Console.WriteLine("");
1549Console.WriteLine("{0} Version {1}",
1556Console.WriteLine("For more information, visit the project Web site");
1557Console.WriteLine(" https://github.com/dotnet/runtime/tree/main/src/tools/illink");
ILLink.RoslynAnalyzer (2)
Infrastructure.Common (10)
InMemory.FunctionalTests (2)
InProcessWebSite (21)
InteractiveHost32 (1)
InteractiveHost64 (1)
InteropClient (51)
InteropWebsite (4)
IOperationGenerator (17)
IStartupInjectionAssemblyName (1)
JwtClientSample (4)
Kestrel.SampleApp (2)
KeyManagementSample (7)
KeyManagementSimulator (16)
Metrics (29)
Metrics.Legacy (29)
Microsoft.Arcade.Common (3)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
Microsoft.AspNetCore.Components.Performance (5)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView.Photino (1)
Microsoft.AspNetCore.Components.WebViewE2E.Test (28)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (5)
Microsoft.AspNetCore.Grpc.Microbenchmarks (5)
Microsoft.AspNetCore.Hosting (9)
Microsoft.AspNetCore.Hosting.TestSites (5)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (5)
Microsoft.AspNetCore.Http.Microbenchmarks (5)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (5)
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (5)
Microsoft.AspNetCore.Owin.Microbenchmarks (5)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (5)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (5)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (5)
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
Microsoft.AspNetCore.Security.Microbenchmarks (5)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (5)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (6)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Shared.Tests (9)
Microsoft.AspNetCore.SignalR.Microbenchmarks (5)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (5)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (5)
Microsoft.Build (80)
BackEnd\Components\Scheduler\SchedulingPlan.cs (16)
241Console.WriteLine("{0}: {1} ({2} referrers) {3}", configuration.Key, config.TotalPlanTime, config.ReferrerCount, config.ConfigFullPath);
244Console.WriteLine(" {0} {1}", referrer.ConfigId, referrer.ConfigFullPath);
247Console.WriteLine();
250Console.WriteLine();
258Console.WriteLine("Projects with the most immediate children:");
263Console.WriteLine("{0}: {1} {2}", configuration.Key, configuration.Value.ReferencesCount, configuration.Value.ConfigFullPath);
266Console.WriteLine();
274Console.WriteLine("Configs in hierarchy by number of occurrences:");
279Console.WriteLine("{0}: {1} {2}", configId, _configIdToPaths[configId].Count, _configIdToData[configId].ConfigFullPath);
282Console.WriteLine();
332Console.WriteLine("Projects by expense:");
341Console.WriteLine("{0}: {1} {2}", config.ConfigId, config.AccumulatedTime, config.ConfigFullPath);
348Console.Write(" ");
351Console.Write(" {0}", pathEntry.ConfigId);
354Console.WriteLine();
357Console.WriteLine();
Microsoft.Build.CommandLine.UnitTests (7)
Microsoft.Build.Engine.OM.UnitTests (10)
Microsoft.Build.Engine.UnitTests (104)
FileMatcher_Tests.cs (9)
599Console.WriteLine($"Input {input.Item1} with pattern {input.Item2} failed");
650Console.WriteLine("GetFileSystemEntries('{0}', '{1}')", path, pattern);
1246Console.WriteLine(result);
1266Console.WriteLine(result);
2495Console.WriteLine("Expect Fixed '{0}' got '{1}'", expectedFixedDirectoryPart, fixedDirectoryPart);
2496Console.WriteLine("Expect Wildcard '{0}' got '{1}'", expectedWildcardDirectoryPart, wildcardDirectoryPart);
2497Console.WriteLine("Expect Filename '{0}' got '{1}'", expectedFilenamePart, filenamePart);
2603Console.WriteLine("Checking FileSpec: '{0}' against '{1}'", filespec, fileToMatch);
2608Console.WriteLine("Checking FileSpec: '{0}' against '{1}'", filespec, fileToMatch);
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.CodeAnalysis (16)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (16)
Microsoft.Build.Tasks.Core (1)
Microsoft.Build.Tasks.UnitTests (47)
Microsoft.Build.UnGAC (4)
Microsoft.Build.UnitTests.Shared (30)
Microsoft.Build.Utilities.Core (1)
Microsoft.Build.Utilities.UnitTests (19)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (11)
Microsoft.CodeAnalysis.Analyzers (10)
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
Microsoft.CodeAnalysis.CodeStyle (10)
Microsoft.CodeAnalysis.Collections.Package (8)
Microsoft.CodeAnalysis.Contracts.Package (8)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.Debugging.Package (8)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (10)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (11)
Microsoft.CodeAnalysis.Extensions.Package (8)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.InteractiveHost (30)
Microsoft.CodeAnalysis.LanguageServer (6)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (10)
Microsoft.CodeAnalysis.PooledObjects.Package (8)
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
Microsoft.CodeAnalysis.Scripting (5)
Microsoft.CodeAnalysis.Test.Utilities (7)
Microsoft.CodeAnalysis.Threading.Package (8)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (10)
Microsoft.CodeAnalysis.Workspaces (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CommonLanguageServerProtocol.Framework.Example (8)
Microsoft.CommonLanguageServerProtocol.Framework.Package (8)
Microsoft.Data.Analysis.Tests (4)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.ArcadeAzureIntegration (1)
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.GenAPI (1)
Microsoft.DotNet.MacOsPkg.Core (5)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SignCheckLibrary (12)
Microsoft.DotNet.SwaggerGenerator.CmdLine (5)
Microsoft.DotNet.Tar (1)
Microsoft.DotNet.VersionTools.Cli (5)
Microsoft.Extensions.AI.Evaluation.Console (3)
Microsoft.Extensions.AotCompatibility.TestApp (1)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.Caching.MicroBenchmarks (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Logging.Console (8)
Microsoft.Extensions.ObjectPool.Microbenchmark (5)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (5)
Microsoft.Extensions.Validation.GeneratorTests (1)
Microsoft.ML.AutoML.Samples (92)
Microsoft.ML.AutoML.Tests (6)
Microsoft.ML.Core (15)
Microsoft.ML.CpuMath.PerformanceTests (1)
Microsoft.ML.Data (1)
Microsoft.ML.GenAI.Samples (11)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.Maml (6)
Microsoft.ML.NugetPackageVersionUpdater (2)
Microsoft.ML.PerformanceTests (5)
Microsoft.ML.ResultProcessor (13)
ResultProcessor.cs (13)
161Console.Error.WriteLine("Can't load trainer '{0}'", predictorName);
384Console.Error.WriteLine("ResultProcessor was asked to process results from file {0} which does not exist.", filename);
391Console.Error.WriteLine("Empty file {0}", filename);
415Console.Error.WriteLine("Results file {0} does not contain the MAML executable command:", filename);
416Console.Error.WriteLine("\t{0}", commandline);
630Console.Error.WriteLine("Invalid file format.");
904Console.Error.WriteLine("ResultProcessor tried to extract fold starting at line {0}, couldn't find end-of-fold separator before end of file.", startLineIdx);
911Console.Error.WriteLine("ResultProcessor failed to parse fold starting at line {0} ending at line {1}.", startLineIdx, endLineIdx);
916Console.Error.WriteLine("Fold {0} results have already been added, not adding.", thisFoldResults.Key);
967Console.Error.WriteLine("Couldn't parse fold index line: " + lines[0]);
973Console.Error.WriteLine("Couldn't parse fold index line: " + lines[0]);
1024Console.Error.WriteLine(e.Message);
1082? File.CreateText(cmd.OutputFile) : Console.Out);
Microsoft.ML.Samples (976)
Dynamic\TensorFlow\TextClassification.cs (5)
67Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})", "Features",
72Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})",
125Console.WriteLine("Number of classes: {0}", prediction.Prediction
127Console.WriteLine("Is sentiment/review positive? {0}", prediction
129Console.WriteLine("Prediction Confidence: {0}", prediction.Prediction[1]
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score);
87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score);
87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score);
87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score);
87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (4)
20Console.WriteLine($"NumericVector StringVector");
22Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item
50Console.WriteLine($"NumericVector StringVector");
52Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item.
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (4)
20Console.WriteLine($"NumericVector StringVector");
22Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item.
50Console.WriteLine($"NumericVector StringVector");
52Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (4)
20Console.WriteLine($"Label NumericVector");
22Console.WriteLine("{0,-25} {1,-25}", item.Label, string.Join(",",
48Console.WriteLine($"NumericVector");
50Console.WriteLine("{0,-25}", string.Join(",", item.NumericVector));
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (4)
20Console.WriteLine($"NumericVectorA NumericVectorB");
22Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item
51Console.WriteLine($"NumericVectorA NumericVectorB");
53Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (2)
62Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}", "ImagePath",
95Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}",
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (2)
50Console.WriteLine("{0, -25} {1, -25} {2, -25}", "Features", "Image",
77Console.WriteLine("{0, -25} {1, -25} {2, -25}", string.Join(",",
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (2)
69Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25} {4, -25}",
109Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25} " +
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (2)
61Console.WriteLine("{0, -25} {1, -25} {2, -25}", "ImagePath", "Name",
89Console.WriteLine("{0, -25} {1, -25} {2, -25}",
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (2)
64Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}", "ImagePath",
97Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}",
Microsoft.ML.Samples.GPU (80)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (5)
67Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})", "Features",
72Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})",
125Console.WriteLine("Number of classes: {0}", prediction.Prediction
127Console.WriteLine("Is sentiment/review positive? {0}", prediction
129Console.WriteLine("Prediction Confidence: {0}", prediction.Prediction[1]
Microsoft.ML.Samples.OneDal (6)
Program.cs (6)
182Console.WriteLine("algorithm,all workflow time[ms],training accuracy,testing accuracy,training F1 score,testing F1 score");
183Console.WriteLine($"Random Forest Binary,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}");
189Console.WriteLine("algorithm,all workflow time[ms],training RMSE,testing RMSE,training R2 score,testing R2 score");
190Console.WriteLine($"Random Forest Regression,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}");
197Console.WriteLine("algorithm,all workflow time[ms],training RMSE,testing RMSE,training R2 score,testing R2 score");
198Console.WriteLine($"OLS Regression,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}");
Microsoft.ML.StandardTrainers (21)
Optimizer\DifferentiableFunction.cs (7)
194Console.WriteLine(Header);
231Console.WriteLine("{0,-9}{1,-18:0.0000e0}{2,-18:0.0000e0}{3,-15:0.0000e0}{4,0:0.0000e0}", n, numDeriv, dirDeriv, diff, normDiff);
258Console.WriteLine(Header);
278Console.WriteLine("{0,-9}{1,-18:0.0000e0}{2,-18:0.0000e0}{3,-15:0.0000e0}{4,0:0.0000e0}", n, numDeriv, dirDeriv, diff, normDiff);
297Console.WriteLine(Header);
316Console.WriteLine("{0,-9}{1,-18:0.0000e0}{2,-18:0.0000e0}{3,-15:0.0000e0}{4,0:0.0000e0}", n, numDeriv, dirDeriv, diff, normDiff);
351Console.WriteLine("{0,-18:0.0000e0}{1,-18:0.0000e0}{2,-15:0.0000e0}{3,0:0.0000e0}", numDeriv, dirDeriv, diff, normDiff);
Microsoft.ML.TensorFlow.Tests (3)
Microsoft.ML.TestFramework (4)
Microsoft.ML.Tests (8)
Microsoft.ML.TimeSeries.Tests (1)
Microsoft.ML.Tokenizers.Data.Tests (1)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (1)
MiddlewareAnalysisSample (3)
MilvusPlayground.ApiService (1)
MinimalSample (3)
MSBuild (76)
XMake.cs (69)
215Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidConfigurationFile", builder.ToString()));
273Console.CancelKeyPress += Console_CancelKeyPress;
442Console.WriteLine("\n{0}{1}{0}", new string('=', 41 - ("Process".Length / 2)), "Process");
443Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Working Set", currentProcess.PeakWorkingSet64, "bytes");
444Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Paged Memory", currentProcess.PeakPagedMemorySize64, "bytes"); // Not very useful one
445Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Virtual Memory", currentProcess.PeakVirtualMemorySize64, "bytes"); // Not very useful one
446Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Privileged Processor Time", currentProcess.PrivilegedProcessorTime.TotalMilliseconds, "ms");
447Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak User Processor Time", currentProcess.UserProcessorTime.TotalMilliseconds, "ms");
448Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Total Processor Time", currentProcess.TotalProcessorTime.TotalMilliseconds, "ms");
450Console.WriteLine("{0}{0}", new string('=', 41));
510Console.WriteLine("\n{0}{1}{0}", new string('=', 41 - (category.CategoryName.Length / 2)), category.CategoryName);
520Console.WriteLine("{0}{0}", new string('=', 41));
549Console.WriteLine("||{0,50}|{1}|{2,8}|", counter.CounterName, valueString, friendlyCounterType);
634Console.WriteLine($"Waiting for debugger to attach ({EnvironmentUtilities.ProcessPath} PID {EnvironmentUtilities.CurrentProcessId}). Press enter to continue...");
635Console.ReadLine();
694Console.CancelKeyPress += cancelHandler;
811Console.WriteLine(ResourceUtilities.GetResourceString("PossiblyOmittedMaxCPUSwitch"));
852exitType = OutputPropertiesAfterEvaluation(getProperty, getItem, project, Console.Out);
925exitType = OutputBuildInformationInJson(result, getProperty, getItem, getTargetResult, loggers, exitType, Console.Out);
957Console.WriteLine(e.Message);
958Console.WriteLine();
968Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ConfigurationFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
975Console.WriteLine(e.Message);
986Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
992Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixWithErrorCode", e.Message));
999Console.WriteLine(e.InnerException.ToString());
1010Console.WriteLine($"MSBUILD : error {e.ErrorCode}: {e.Message}");
1012Console.WriteLine("This is an unhandled exception from a logger -- PLEASE OPEN A BUG AGAINST THE LOGGER OWNER.");
1016Console.WriteLine(e.InnerException.ToString());
1022Console.WriteLine(
1034Console.WriteLine($"MSBUILD : error {pce?.ErrorCode ?? exppce?.ErrorCode}: {e.Message}");
1039Console.WriteLine("This is an unhandled exception from a project cache -- PLEASE OPEN A BUG AGAINST THE PROJECT CACHE OWNER.");
1045Console.WriteLine(e.InnerException.ToString());
1053Console.WriteLine(
1060Console.WriteLine(
1069Console.WriteLine("{0}\r\n{1}", AssemblyResources.GetString("FatalError"), e.ToString());
1071Console.WriteLine("This is an unhandled exception in MSBuild Engine -- PLEASE OPEN A BUG AGAINST THE MSBUILD TEAM.\r\n{0}", e.ToString());
1083Console.CancelKeyPress -= cancelHandler;
1142Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildFailedWithPropertiesItemsOrTargetResultsRequested"));
1456Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Preprocess);
1477Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Targets);
1703Console.WriteLine(AssemblyResources.GetString("FatalError"));
1705Console.WriteLine("This is an unhandled exception in MSBuild -- PLEASE OPEN A BUG AGAINST THE MSBUILD TEAM.");
1707Console.WriteLine(exception.ToString());
1708Console.WriteLine();
1758Console.Error.WriteLine(message);
1949Console.OutputEncoding = Encoding.UTF8;
1951Console.InputEncoding = Encoding.UTF8;
1964codepage = Console.OutputEncoding.CodePage;
2561Console.WriteLine($"Waiting for debugger to attach... ({EnvironmentUtilities.ProcessPath} PID {EnvironmentUtilities.CurrentProcessId})");
2795Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}");
3271TextWriter writer = Console.Out;
3290TextWriter writer = Console.Out;
4513Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OptionalLoggerCreationMessage", loggerDescription.Name, e.Message));
4588Console.WriteLine(message);
4676Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion, NativeMethods.FrameworkName));
4688Console.WriteLine(AssemblyResources.GetString("HelpMessage_1_Syntax"));
4689Console.WriteLine(AssemblyResources.GetString("HelpMessage_2_Description"));
4690Console.WriteLine(AssemblyResources.GetString("HelpMessage_3_SwitchesHeader"));
4693Console.WriteLine(AssemblyResources.GetString(parameterizedSwitchRsouceId));
4697Console.WriteLine(AssemblyResources.GetString(parameterlessSwitchRsouceId));
4699Console.WriteLine(AssemblyResources.GetString("HelpMessage_7_ResponseFile"));
4700Console.WriteLine(AssemblyResources.GetString("HelpMessage_16_Examples"));
4701Console.WriteLine(AssemblyResources.GetString("HelpMessage_37_DocsLink"));
4709Console.WriteLine(AssemblyResources.GetString("HelpPrompt"));
4720Console.WriteLine(ProjectCollection.Version.ToString());
4724Console.Write(ProjectCollection.Version.ToString());
4734Console.WriteLine(availability);
4745Console.WriteLine(jsonNode.ToJsonString(options));
MSBuildTaskHost (2)
mscorlib (1)
netstandard (1)
NonDISample (2)
PhotinoTestApp (1)
PrepareTests (8)
PresentationCore (1)
PresentationFramework (7)
MS\Internal\Data\AccessorTable.cs (5)
122Console.WriteLine($"After generation {_generation}, removed {originalCount - _table.Count} of {originalCount} entries from AccessorTable, new count is {_table.Count}");
139Console.WriteLine("No stats available for AccessorTable.");
143Console.WriteLine("AccessorTable had {0} hits, {1} misses ({2,2}%) in {3} generations.",
145Console.WriteLine(" Age Hits Pct Cumulative");
152Console.WriteLine("{0,5} {1,6} {2,5} {3,5}",
PresentationFramework.Fluent.Tests (4)
Publishers.DbSetup (1)
QueueSharing (4)
ReachFramework (81)
AlphaFlattener\PrimitiveList.cs (35)
75Console.WriteLine();
77Console.WriteLine(" No Type Und Ovr TrO Bounding Box Clipping");
81Console.Write(" Transform");
84Console.WriteLine();
94Console.Write(LeftPad(index, 4) + LeftPad(typ, 18) + ":");
100Console.Write(' ');
104Console.Write('@');
109Console.Write(" ");
115Console.Write(LeftPad(info.underlay.Count, 3));
120Console.Write(' ' + LeftPad(info.overlap.Count, 3));
124Console.Write('$');
125Console.Write(LeftPad(info.overlapHasTransparency, 3));
129Console.Write(" ");
132Console.Write(' ');
136Console.Write(" ");
139Console.Write(LeftPad(info.bounds, 0));
145Console.Write(LeftPad(clip.Bounds, 0));
152Console.Write(" {");
153Console.Write(LeftPad(m.M11, 3) + ' ');
154Console.Write(LeftPad(m.M12, 3) + ' ');
155Console.Write(LeftPad(m.M21, 3) + ' ');
156Console.Write(LeftPad(m.M22, 3) + ' ');
157Console.Write(LeftPad(m.OffsetX, 6) + ' ');
158Console.Write(LeftPad(m.OffsetY, 6));
159Console.Write("} ");
170Console.Write(" \"");
174Console.Write(chars[i]);
177Console.Write('"');
195Console.Write(" SolidColorBrush({0})", sb.Color);
203Console.Write(' ');
204Console.Write(LeftPad(extra, 0));
207Console.WriteLine();
291Console.Write("skip ");
366Console.Write(" <{0} {1}>", one, two);
372Console.WriteLine();
Redis (1)
Replay (30)
ResultsOfTGenerator (11)
Roslyn.Diagnostics.Analyzers (10)
Roslyn.PerformanceTests (1)
Roslyn.Test.Performance.Utilities (2)
RoutingSandbox (7)
RoutingWebSite (7)
RulesetToEditorconfigConverter (3)
RunTests (20)
SampleStartups (5)
SemanticSearch.BuildTask (8)
SignalR.Client.FunctionalTestApp (1)
SignalRSamples (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (1)
SqlServerEndToEnd.DbSetup (1)
StackDepthTest (3)
StartRequestDelegateUrlApp (2)
StartRouteBuilderUrlApp (2)
StartWithIApplicationBuilderUrlApp (2)
Stress.ApiService (126)
ConsoleStresser.cs (124)
11var stdout = Console.OpenStandardOutput();
14Console.SetOut(con);
16Console.WriteLine();
17Console.WriteLine("Console stress");
18Console.WriteLine("==============");
19Console.WriteLine();
21Console.WriteLine("UTF-8 characters:");
22Console.WriteLine("Emojis: \U0001F600, \U0001F680, \U0001F4A9");
23Console.WriteLine("Chinese: \u8fd9\u662f\u4e00\u4e2a\u4e2d\u6587\u5b57\u7b26\u4e32"); // "This is a Chinese string"
24Console.WriteLine();
26Console.WriteLine("Entire URL in one segment:");
27Console.Write("\x1b[36mhttp://localhost:7000\x1b[0m");
28Console.WriteLine();
30Console.WriteLine("Scheme and host in separate segment to port:");
31Console.Write("\x1b[36mhttp://localhost\x1b[0m");
32Console.Write("\x1b[31m:7001\x1b[0m");
33Console.WriteLine();
35Console.WriteLine("Everything in different segments:");
36Console.Write("\x1b[36mhttp\x1b[0m");
37Console.Write("\x1b[31m://\x1b[0m");
38Console.Write("\x1b[32mlocalhost\x1b[0m");
39Console.Write("\x1b[33m:7002\x1b[0m");
40Console.WriteLine();
41Console.WriteLine();
43Console.WriteLine("URL examples:");
44Console.Write("\x1b[36m"); // Set color so we can see the difference between URLs and the rest of the text
45Console.WriteLine("https://www.example.com");
46Console.WriteLine("https://subdomain.example.com");
47Console.WriteLine("http://www.example.com");
48Console.WriteLine("http://example.com/path/to/page");
49Console.WriteLine("https://www.example.com?query=string¶m=value");
50Console.WriteLine("https://www.example.com#anchor");
51Console.WriteLine("https://255.255.255.255");
52Console.WriteLine("ftp://example.com/resource");
53Console.WriteLine("mailto:user@example.com");
54Console.WriteLine("https://user:password@example.com");
55Console.WriteLine("https://example.com:8080");
56Console.WriteLine("https://example.com/path/to/page.html");
57Console.WriteLine("https://www.example.co.uk");
58Console.WriteLine("https://example.io");
59Console.WriteLine("https://xn--n3h.com (Punycode for Unicode characters)");
60Console.WriteLine("https://www.example.com/path%20with%20spaces");
61Console.WriteLine("https://[2001:db8::1] (IPv6 address)");
62Console.WriteLine("http://www.example.com/foo.php?bar[]=1&bar[]=2&bar[]=3");
63Console.WriteLine("https://www.example.com/path/to/page?#");
64Console.WriteLine("https://user:password@example.com/path?query=string#anchor");
65Console.WriteLine("https://www.example.com/? (Question mark at end of URL)");
66Console.WriteLine("https://example.com/# (Hash at end of URL)");
67Console.WriteLine("https://www.example.com/path/to/page/?query=string#anchor");
68Console.WriteLine("https://example.com./path/to/page/ (Dot at the end of domain)");
69Console.WriteLine("https://www-example.com (Dash in domain)");
70Console.WriteLine("https://example.com/path/to/page/index.html?query=string#section1");
71Console.WriteLine("https://example.com/empty/");
72Console.WriteLine("https://example.com/empty/. (Dot at end of URL)");
73Console.WriteLine("https://www.example.com/path/with/semicolon; (Semicolon at end of URL)");
74Console.WriteLine("https://www.example.com/path/with/semicolon, (Comma at end of URL)");
75Console.WriteLine("https://www.example.com/path/with/plus+sign");
76Console.WriteLine("https://www.example.com/path/with/equals=sign");
77Console.WriteLine("https://www.example.com/path/with/ampersand&sign");
78Console.WriteLine("https://www.example.com/path/with/percent%25encoded");
79Console.WriteLine("https://www.example.com/path/with/dollar$sign");
80Console.WriteLine("https://www.example.com/path/with/exclamation!mark");
81Console.WriteLine("https://www.example.com/;path/");
82Console.WriteLine("https://www.example.com/path/?query;string");
83Console.WriteLine("https://;www.example.com/");
84Console.WriteLine("https://www;.example.com/");
85Console.WriteLine("https://www.exa;mple.com/");
87Console.Write("\x1b[0m"); // reset color
90Console.WriteLine();
91Console.WriteLine("ANSI Console Foreground and Background Colors");
96Console.Write("\x1b[" + color + "m"); // Set foreground color
97Console.WriteLine($"This is foreground color {color}");
99Console.Write("\x1b[0m"); // Reset colors to default
104Console.Write("\x1b[" + color + "m"); // Set background color
105Console.Write($"This is background color {color}");
106Console.WriteLine("\x1b[0m"); // Reset colors to default after each background to maintain readability
108Console.Write("\x1b[0m"); // Reset all colors to default at the end
110Console.WriteLine();
111Console.WriteLine("\u001b[36;45mThis text is Cyan with a Magenta background.\u001b[0m");
112Console.WriteLine("\u001b[31mThis text has a red foreground using ANSI escape codes.\u001b[0m");
113Console.WriteLine("\u001b[42mThis text has a green background using ANSI escape codes.\u001b[0m");
114Console.WriteLine("\u001b[1mThis text is bold using ANSI escape codes.\u001b[0m");
115Console.WriteLine("\u001b[4mThis text is underlined using ANSI escape codes.\u001b[0m");
116Console.WriteLine("\u001b[31;1;4mThis text is red, bold, and underlined.\u001b[0m");
117Console.WriteLine("\u001b[31;3;4mThis text is red, italic and underlined.\u001b[0m");
118Console.WriteLine("\u001b[31;3;4;9mThis text is red, italic and strikethrough.\u001b[0m");
119Console.WriteLine("\u001b[31;42;3;4mThis text is red, green background, italic and underlined.\u001b[0m");
121Console.WriteLine();
122Console.WriteLine("\u001b[38;5;221mThis text is a Xterm text color using ANSI escape codes.\u001b[0m");
123Console.WriteLine("\u001b[48;5;95mThis text is a Xterm bakground color using ANSI escape codes.\u001b[0m");
124Console.WriteLine("\u001b[38;5;221m\u001b[48;5;95mThis text is a Xterm text and bakground color using ANSI escape codes.\u001b[0m");
125Console.WriteLine("\u001b[38;5;243mThis text is a Xterm gray text color using ANSI escape codes.\u001b[0m");
126Console.WriteLine("\u001b[48;5;243mThis text is a Xterm gray background color using ANSI escape codes.\u001b[0m");
127Console.WriteLine("\u001b[38;5;1mThis text is a Xterm red color using ANSI escape codes.\u001b[0m");
128Console.WriteLine("\u001b[38;5;9mThis text is a Xterm bright red color using ANSI escape codes.\u001b[0m");
129Console.WriteLine("\u001b[48;5;1mThis text is a Xterm red background color using ANSI escape codes.\u001b[0m");
130Console.WriteLine("\u001b[48;5;9mThis text is a Xterm bright red background color using ANSI escape codes.\u001b[0m");
131Console.WriteLine("\u001b[3;38;5;9mThis text is a Xterm bright red color and italic using ANSI escape codes.\u001b[0m");
132Console.WriteLine("\u001b[4;38;5;9mThis text is a Xterm bright red color and underlined using ANSI escape codes.\u001b[0m");
133Console.WriteLine("\u001b[9;38;5;9mThis text is a Xterm bright red color and strikethrough using ANSI escape codes.\u001b[0m");
135Console.WriteLine();
136Console.WriteLine("\u001b[38;5;321mThis text is a Xterm text color using invalid color value.\u001b[0m");
137Console.WriteLine("\u001b[38;5;100This text is a Xterm text color using unfinished escape sequence (m here to finish the sequence late).\u001b[0m");
138Console.WriteLine("\u001b[38;5;100This text is a Xterm text color using unfinished escape sequence.\u001b[0m");
140Console.WriteLine();
141Console.WriteLine("A link in escape sequence: \u001b]8;;https://example.com\u001b\\The link text\u001b]8;;\u001b\\");
142Console.WriteLine("A link with formatted link text in escape sequnce: \u001b]8;;https://example.com\u001b\\The \u001b[38;5;100mlink\u001b[0m formatted text\u001b]8;;\u001b\\");
144Console.WriteLine();
145Console.WriteLine("HTML:");
146Console.WriteLine("<b>BOLD!</b>");
147Console.WriteLine("<script>alert('Hello, World!')</script>");
148Console.WriteLine("<span style=\"color: #ff0000; background-color: #00ff00; font-weight: bold; text-decoration: underline;\">This text is red with a green background, bold, and underlined using HTML.</span>");
150Console.WriteLine();
151Console.WriteLine("Long continious !!! content:");
152Console.WriteLine(new string('!', 1000));
153Console.WriteLine();
154Console.WriteLine("Long continious letter content:");
157Console.Write(new string(i % 2 == 0 ? 'a' : 'b', 50));
159Console.WriteLine();
160Console.WriteLine();
161Console.WriteLine("Long world content:");
166Console.Write(" ");
168Console.Write(new string(i % 2 == 0 ? 'a' : 'b', 50));
170Console.WriteLine();
Swaggatherer (10)
System.Console (38)
System.Diagnostics.TextWriterTraceListener (4)
System.Drawing.Common.Tests (3)
System.Net.Quic (1)
System.Net.Security (1)
System.Security.Cryptography (1)
System.Windows.Forms.Design.Tests (5)
SystemdTestApp (1)
Templates.Blazor.Tests (9)
Templates.Blazor.WebAssembly.Auth.Tests (11)
Templates.Blazor.WebAssembly.Tests (11)
Templates.Mvc.Tests (11)
Templates.Tests (11)
Test.Utilities (10)
TestDiscoveryWorker (8)
TestPassApp (16)
TaskDialogTesting.cs (16)
19page1.Created += (s, e) => Console.WriteLine("Page1 Created");
20page1.Destroyed += (s, e) => Console.WriteLine("Page1 Destroyed");
21page1.HelpRequest += (s, e) => Console.WriteLine("Page1 HelpRequest");
28page1.Expander.ExpandedChanged += (s, e) => Console.WriteLine($"Expander ExpandedChanged: {page1.Expander.Expanded}");
42buttonOK.Click += (s, e) => Console.WriteLine($"Button '{s}' Click");
43buttonHelp.Click += (s, e) => Console.WriteLine($"Button '{s}' Click");
47Console.WriteLine($"Button '{s}' Click");
52Console.WriteLine($"Button '{s}' Click");
57Console.WriteLine($"(returns) Button '{s}' Click");
62Console.WriteLine($"Button '{s}' Click");
73page2.Created += (s, e) => Console.WriteLine("Page2 Created");
74page2.Destroyed += (s, e) => Console.WriteLine("Page2 Destroyed");
80page1.Verification.CheckedChanged += (s, e) => Console.WriteLine($"CheckBox CheckedChanged: {page1.Verification.Checked}");
85radioButton1.CheckedChanged += (s, e) => Console.WriteLine($"RadioButton1 CheckedChanged: {radioButton1.Checked}");
86radioButton2.CheckedChanged += (s, e) => Console.WriteLine($"RadioButton2 CheckedChanged: {radioButton2.Checked}");
89Console.WriteLine($"---> Dialog Result: {dialogResult}");
TestProject.AppHost (2)
TestProject.WorkerA (1)
Text.Analyzers (10)
TlsFeaturesObserve (2)
UnsupportedTypes (1)
vbc (8)
VBCSCompiler (8)
VisualBasicSyntaxGenerator (1)
WaitForSandbox.DbSetup (1)
Wasm.Performance.ConsoleHost (10)
Wasm.Performance.Driver (13)
WebSocketSample (6)
WebTransportInteractiveSampleApp (2)
WebTransportSampleApp (2)
WinFormsControlsTest (29)
XmlFileLogger (1)
xunit.console (80)
ConsoleRunner.cs (74)
50Console.CancelKeyPress += (sender, e) =>
54Console.WriteLine("Canceling... (Press Ctrl+C again to terminate)");
69Console.Write("Press any key to start execution...");
70Console.ReadKey(true);
71Console.WriteLine();
95Console.WriteLine();
96Console.Write("Press any key to continue...");
97Console.ReadKey();
98Console.WriteLine();
108Console.WriteLine($"error: {ex.Message}");
115Console.WriteLine(ex.StackTrace);
166Console.WriteLine($"Type {type.FullName} in assembly {dllFile} appears to be a runner reporter, but does not have an empty constructor.");
182Console.WriteLine($"Microsoft.DotNet.XUnitConsoleRunner v{typeof(ConsoleRunner).Assembly.GetName().Version} ({IntPtr.Size * 8}-bit {platform})");
189Console.WriteLine("Copyright (C) .NET Foundation.");
190Console.WriteLine();
191Console.WriteLine($"usage: {executableName} <assemblyFile> [configFile] [assemblyFile [configFile]...] [options] [reporter] [resultFormat filename [...]]");
192Console.WriteLine();
193Console.WriteLine("Note: Configuration files must end in .json (XML is not supported on .NET Core)");
194Console.WriteLine();
195Console.WriteLine("Valid options:");
196Console.WriteLine(" -nologo : do not show the copyright message");
197Console.WriteLine(" -nocolor : do not output results with colors");
198Console.WriteLine(" -failskips : convert skipped tests into failures");
199Console.WriteLine(" -stoponfail : stop on first test failure");
200Console.WriteLine(" -parallel option : set parallelization based on option");
201Console.WriteLine(" : none - turn off all parallelization");
202Console.WriteLine(" : collections - only parallelize collections");
203Console.WriteLine(" : assemblies - only parallelize assemblies");
204Console.WriteLine(" : all - parallelize assemblies & collections");
205Console.WriteLine(" -maxthreads count : maximum thread count for collection parallelization");
206Console.WriteLine(" : default - run with default (1 thread per CPU thread)");
207Console.WriteLine(" : unlimited - run with unbounded thread count");
208Console.WriteLine(" : (number) - limit task thread pool size to 'count'");
209Console.WriteLine(" -wait : wait for input after completion");
210Console.WriteLine(" -diagnostics : enable diagnostics messages for all test assemblies");
211Console.WriteLine(" -internaldiagnostics : enable internal diagnostics messages for all test assemblies");
213Console.WriteLine(" -pause : pause before doing any work, to help attach a debugger");
215Console.WriteLine(" -debug : launch the debugger to debug the tests");
216Console.WriteLine(" -serialize : serialize all test cases (for diagnostic purposes only)");
217Console.WriteLine(" -trait \"name=value\" : only run tests with matching name/value traits");
218Console.WriteLine(" : if specified more than once, acts as an OR operation");
219Console.WriteLine(" -notrait \"name=value\" : do not run tests with matching name/value traits");
220Console.WriteLine(" : if specified more than once, acts as an AND operation");
221Console.WriteLine(" -method \"name\" : run a given test method (can be fully specified or use a wildcard;");
222Console.WriteLine(" : i.e., 'MyNamespace.MyClass.MyTestMethod' or '*.MyTestMethod')");
223Console.WriteLine(" : if specified more than once, acts as an OR operation");
224Console.WriteLine(" -nomethod \"name\" : do not run a given test method (can be fully specified or use a wildcard;");
225Console.WriteLine(" : i.e., 'MyNamespace.MyClass.MyTestMethod' or '*.MyTestMethod')");
226Console.WriteLine(" : if specified more than once, acts as an AND operation");
227Console.WriteLine(" -class \"name\" : run all methods in a given test class (should be fully");
228Console.WriteLine(" : specified; i.e., 'MyNamespace.MyClass')");
229Console.WriteLine(" : if specified more than once, acts as an OR operation");
230Console.WriteLine(" -noclass \"name\" : do not run any methods in a given test class (should be fully");
231Console.WriteLine(" : specified; i.e., 'MyNamespace.MyClass')");
232Console.WriteLine(" : if specified more than once, acts as an AND operation");
233Console.WriteLine(" -namespace \"name\" : run all methods in a given namespace (i.e.,");
234Console.WriteLine(" : 'MyNamespace.MySubNamespace')");
235Console.WriteLine(" : if specified more than once, acts as an OR operation");
236Console.WriteLine(" -nonamespace \"name\" : do not run any methods in a given namespace (i.e.,");
237Console.WriteLine(" : 'MyNamespace.MySubNamespace')");
238Console.WriteLine(" : if specified more than once, acts as an AND operation");
239Console.WriteLine(" -noautoreporters : do not allow reporters to be auto-enabled by environment");
240Console.WriteLine(" : (for example, auto-detecting TeamCity or AppVeyor)");
241Console.WriteLine(" -framework \"name\" : set the target framework");
242Console.WriteLine();
247Console.WriteLine("Reporters: (optional, choose only one)");
250Console.WriteLine($" -{reporter.RunnerSwitch.ToLowerInvariant().PadRight(21)} : {reporter.Description}");
252Console.WriteLine();
255Console.WriteLine("Result formats: (optional, choose one or more)");
257transform => Console.WriteLine($" -{$"{transform.CommandLine} <filename>".PadRight(21).Substring(0, 21)} : {transform.Description}")
408Console.WriteLine("Canceling due to test failure...");
421Console.WriteLine($"{e.GetType().FullName}: {e.Message}");
424Console.WriteLine(e.StackTrace);
441Console.WriteLine($"File not found: {fileName}");