1103 references to NewLine
aspire (6)
Certificates\CertificateGeneration\CertificateManager.cs (1)
1039return string.Join(Environment.NewLine, description);
Diagnostics\FileLoggerProvider.cs (1)
180? $"[{ts}] [{lvl}] [{category}] {message}{Environment.NewLine}{exception}"
DotNet\DotNetCliRunner.cs (1)
587var lines = stdout.Split(Environment.NewLine);
Packaging\TemporaryNuGetConfig.cs (1)
53NewLineChars = Environment.NewLine,
Projects\PrebuiltAppHostServer.cs (1)
255var outputLines = string.Join(Environment.NewLine, buildOutput.GetLines().Select(l => l.Line));
src\Shared\ConsoleLogs\PromptContext.cs (1)
51var value = string.Join(Environment.NewLine, uniqueLines);
Aspire.Cli.Tests (6)
CliSmokeTests.cs (2)
51var lines = errorOutput.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 88var lines = errorOutput.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries);
Commands\SdkDumpCommandTests.cs (1)
222.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Dashboard (20)
Components\Pages\Traces.razor.cs (3)
118tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTraceId)], trace.TraceId); 129tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTotalTraces)], count); 132tooltip += Environment.NewLine + string.Format(CultureInfo.InvariantCulture, Loc[nameof(Dashboard.Resources.Traces.TracesTotalErroredTraces)], errorCount);
DashboardWebApplication.cs (4)
950Debug.Assert(_validationFailures.Count == 0, "Validation failures: " + Environment.NewLine + string.Join(Environment.NewLine, _validationFailures)); 956Debug.Assert(_validationFailures.Count == 0, "Validation failures: " + Environment.NewLine + string.Join(Environment.NewLine, _validationFailures));
Model\Assistant\AssistantChatViewModel.cs (4)
250var resolvedMessage = message + Environment.NewLine + Environment.NewLine; 255resolvedMessage = Environment.NewLine + Environment.NewLine + resolvedMessage;
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
169Environment.NewLine + Environment.NewLine,
Model\Markdown\MarkdownProcessor.cs (1)
27pipelineBuilder.ConfigureNewLine(Environment.NewLine);
Model\Otlp\ResourcesSelectHelpers.cs (3)
59""", name, fallback, string.Join(Environment.NewLine, resources), match); 74""", name, string.Join(Environment.NewLine, resources), string.Join(Environment.NewLine, matches));
Model\Otlp\SpanWaterfallViewModel.cs (2)
41tooltip += Environment.NewLine + "Status = Error"; 45tooltip += Environment.NewLine + $"Outgoing call to {UninstrumentedPeer}";
src\Shared\ConsoleLogs\PromptContext.cs (1)
51var value = string.Join(Environment.NewLine, uniqueLines);
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Dashboard.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.EndToEnd.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
312var exceptionMessage = $"{reason}: {Environment.NewLine}{outputMessage}"; 535msg += $" Content:{Environment.NewLine}{contentStr}";
tests\Shared\TemplatesTesting\CommandResult.cs (2)
39_ = message.AppendLine(CultureInfo.InvariantCulture, $"{Environment.NewLine}Standard Output:{Environment.NewLine}{Output}");
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
203return string.Join(System.Environment.NewLine, outputLines);
Aspire.Hosting (5)
ApplicationModel\ResourceCommandService.cs (2)
120errorMessage += Environment.NewLine + string.Join(Environment.NewLine, failures.Select(f => $"Resource '{f.resourceId}' failed with error message: {f.result.ErrorMessage}"));
Dashboard\DashboardEventHandlers.cs (1)
904(s, _) => (logMessage.Exception is { } e) ? s + Environment.NewLine + e : s);
Dcp\DcpDependencyCheck.cs (2)
91$"'dcp {arguments}' returned exit code {processResult.ExitCode}. {errorStringBuilder.ToString()}{Environment.NewLine}{outputStringBuilder.ToString()}" 119$"{ex.Message} {errorStringBuilder.ToString()}{Environment.NewLine}{outputStringBuilder.ToString()}"
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Hosting.Tests (18)
Dashboard\DashboardLifecycleHookTests.cs (1)
644$"Error message{Environment.NewLine}System.InvalidOperationException: Error!",
Dcp\DcpExecutorTests.cs (11)
651await pipes.StandardOut.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:33.473275911Z Hello world" + Environment.NewLine)); 662await pipes.StandardErr.Writer.WriteAsync(Encoding.UTF8.GetBytes("2024-08-19T06:10:32.661Z Next" + Environment.NewLine)); 706return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:01.000Z First" + Environment.NewLine)); 708return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:02.000Z Second" + Environment.NewLine)); 710return new MemoryStream(Encoding.UTF8.GetBytes("2024-08-19T06:10:03.000Z Third" + Environment.NewLine)); 713"2024-08-19T06:10:05.000Z Sixth" + Environment.NewLine + 714"2024-08-19T06:10:05.000Z Seventh" + Environment.NewLine + 715"2024-08-19T06:10:04.000Z Forth" + Environment.NewLine + 716"2024-08-19T06:10:04.000Z Fifth" + Environment.NewLine)); 795"2024-08-19T06:10:01.000Z\tinfo\tdcp.ExecutableReconciler\tStarting process...\t{\"Executable\": \"/foo-pwrqgpew\", \"Reconciliation\": 4, \"Cmd\": \"bla\", \"Args\": []}" + Environment.NewLine + 796"2024-08-19T06:10:02.000Z\terror\tdcp.ExecutableReconciler\tFailed to start process\t{\"Executable\": \"/foo-pwrqgpew\", \"Reconciliation\": 4, \"Cmd\": \"bla\", \"Args\": [], \"error\": \"exec: \\\"bla\\\": executable file not found in $PATH\"}" + Environment.NewLine;
MSBuildTests.cs (1)
250Assert.True(process.ExitCode == 0, $"Build failed: {Environment.NewLine}{output}");
ProjectResourceTests.cs (1)
542: $",{Environment.NewLine} \"ASPNETCORE_FORWARDEDHEADERS_ENABLED\": \"true\"";
Schema\SchemaTests.cs (1)
803Assert.True(results.IsValid, string.Join(Environment.NewLine, errorMessages ?? ["Schema failed validation with no errors"]));
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Playground.Tests (3)
tests\Shared\Logging\XunitLoggerProvider.cs (3)
45private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 96if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 98message = message.Substring(0, message.Length - Environment.NewLine.Length);
Aspire.Templates.Tests (5)
tests\Shared\TemplatesTesting\AspireProject.cs (2)
312var exceptionMessage = $"{reason}: {Environment.NewLine}{outputMessage}"; 535msg += $" Content:{Environment.NewLine}{contentStr}";
tests\Shared\TemplatesTesting\CommandResult.cs (2)
39_ = message.AppendLine(CultureInfo.InvariantCulture, $"{Environment.NewLine}Standard Output:{Environment.NewLine}{Output}");
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
203return string.Join(System.Environment.NewLine, outputLines);
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
218var errors = string.Join(Environment.NewLine,
CodeStyleConfigFileGenerator (1)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
ConfigurationSchemaGenerator (2)
ConfigSchemaGenerator.cs (2)
35if (!schema.EndsWith(Environment.NewLine)) 38schema += Environment.NewLine;
Crossgen2Tasks (4)
CommonFilePulledFromSdkRepo\TaskBase.cs (4)
70Environment.NewLine, 74Environment.NewLine); 95s = s + " ---> " + ExceptionToStringWithoutMessage(e.InnerException) + Environment.NewLine + 104s += Environment.NewLine + stackTrace;
csc (1)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
CSharpSyntaxGenerator (10)
Grammar\GrammarGenerator.cs (7)
95var result = "// <auto-generated />" + Environment.NewLine + "grammar csharp;" + Environment.NewLine; 109result += Environment.NewLine + RuleReference(name).Text + Environment.NewLine + " : " + 110string.Join(Environment.NewLine + " | ", sorted) + Environment.NewLine + " ;" + Environment.NewLine;
Program.cs (3)
172text = text.Replace($"{{{Environment.NewLine}{Environment.NewLine}", $"{{{Environment.NewLine}");
dotnet (31)
BuildServer\VBCSCompilerServer.cs (1)
61string.Join(Environment.NewLine, errors)));
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (2)
117string.Join(Environment.NewLine, possiblePackageRoots.Select((p) => $"- {p}")))); 432stdOut + Environment.NewLine + stdErr));
Commands\Run\FileBasedAppSourceEditor.cs (1)
75_ => Environment.NewLine,
Commands\Run\VirtualProjectBuildingCommand.cs (2)
595File.WriteAllText(path: resultOutputFile, contents: result + Environment.NewLine); 697stream.Write(Encoding.UTF8.GetBytes(Environment.NewLine));
Commands\Test\MTP\MSBuildHandler.cs (1)
50string.Join(Environment.NewLine, vsTestTestProjects.Select(module => Path.GetFileName(module.ProjectFullPath))).Red().Bold()));
Commands\Test\MTP\TestApplication.cs (2)
101_handler.OnTestProcessExited(exitCode, string.Join(Environment.NewLine, stdOutBuilder), string.Join(Environment.NewLine, stdErrBuilder));
Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
44Environment.NewLine,
Commands\Tool\Restore\ToolRestoreCommand.cs (9)
95_reporter.WriteLine(string.Join(Environment.NewLine, e.VerboseMessage).Yellow()); 135Environment.NewLine, 142_reporter.WriteLine(string.Join(Environment.NewLine, successMessage)); 149_reporter.WriteLine(string.Join(Environment.NewLine, warnings).Yellow()); 153_errorReporter.WriteLine(Environment.NewLine + 162_reporter.WriteLine(string.Join(Environment.NewLine, 170_reporter.WriteLine(string.Join(Environment.NewLine, warnings).Yellow()); 204string.Join(Environment.NewLine, 213throw new ToolPackageException(string.Join(Environment.NewLine, errors));
Extensions\ParseResultExtensions.cs (1)
55message: string.Join(Environment.NewLine, parseResult.Errors.Select(e => e.Message)),
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (1)
152commandOutput = commandResult.StdOut + Environment.NewLine + commandResult.StdErr;
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26278.112\contentFiles\cs\net11.0\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
Telemetry\TelemetryFilter.cs (4)
139Environment.NewLine, 143Environment.NewLine); 162s = s + " ---> " + ExceptionToStringWithoutMessage(e.InnerException) + Environment.NewLine + 169s += Environment.NewLine + stackTrace;
ToolManifest\ToolManifestEditor.cs (2)
282var joinedWithIndentation = string.Join(Environment.NewLine, 303string.Join(Environment.NewLine, errors.Select(e => "\t" + e))));
ToolManifest\ToolManifestFinder.cs (3)
44throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, allPossibleManifests.Select(f => "\t" + f.manifestfile.Value)))); 210throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value)))); 297throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value))));
dotnet-dev-certs (4)
Program.cs (3)
405"already trusted we will run the following command:" + Environment.NewLine + 407Environment.NewLine + "This command might prompt you for your password to install the certificate " + 408"on the keychain. To undo these changes: 'security remove-trusted-cert <<certificate>>'" + Environment.NewLine);
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1042return string.Join(Environment.NewLine, description);
dotnet-format (4)
Formatters\EndOfLineFormatter.cs (2)
84_ => Environment.NewLine, 95_ => GetEndOfLineOption(Environment.NewLine),
Formatters\FinalNewlineFormatter.cs (1)
35endOfLine = Environment.NewLine;
Utilities\DotNetHelper.cs (1)
15logger.LogDebug(string.Join(Environment.NewLine, restoreResult.OutputLines));
dotnet-sourcelink (3)
dotnet-suggest (2)
Program.cs (1)
38File.AppendAllText(logFile, string.Join("|", args) + Environment.NewLine);
SuggestionDispatcher.cs (1)
182return string.Join(Environment.NewLine, Prefixes());
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (4)
542index += Environment.NewLine.Length; 599if ((index + Environment.NewLine.Length) > text.Length) 604for (int i = 0; i < Environment.NewLine.Length; i++) 606if (Environment.NewLine[i] != text[index + i])
dotnet-svcutil-lib (36)
Bootstrapper\SvcutilBootstrapper.cs (1)
207throw new BootstrapException(string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", exception.Message, Environment.NewLine, Resource.BootstrapErrorDisableReferences));
CmdCredentialsProvider.cs (1)
250return separator + Environment.NewLine + certId + cert + separator;
CodeDomFixup\MethodCreationHelper.cs (6)
111indent + "{0} <summary>" + Environment.NewLine + 112indent + "{0} " + SR.ConfigureEndpointCommentSummary + Environment.NewLine + 113indent + "{0} </summary>" + Environment.NewLine + 114indent + "{0} <param name=\"serviceEndpoint\">" + SR.ServiceEndpointComment + "</param>" + Environment.NewLine + 115indent + "{0} <param name=\"clientCredentials\">" + SR.ClientCredentialsComment + "</param>" + Environment.NewLine; 127indent + "Partial Private Shared Sub ConfigureEndpoint(ByVal serviceEndpoint As System.ServiceModel.Description.ServiceEndpoint, ByVal clientCredentials As System.ServiceModel.Description.ClientCredentials)" + Environment.NewLine +
CommandProcessorOptions.cs (1)
363throw new ToolArgumentException($"{moreThanOneProjectMsg}{Environment.NewLine}{useProjectOptions}");
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
499b.Append(Environment.NewLine);
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
518b.Append(Environment.NewLine);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (1)
691_newLineChars = Environment.NewLine; // "\r\n" on Windows, "\n" on Unix
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (1)
196_w.Append(Environment.NewLine);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
468errorMessage.AppendFormat("{0}\"{1}\" ", Environment.NewLine, conflictingType.AssemblyQualifiedName);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
424Environment.NewLine,
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (2)
62result.AppendFormat("{0} UseCurrentUserProtectionScope={1}", Environment.NewLine, _useCurrentUserProtectionScope); 63result.AppendFormat("{0} Entropy Length={1}", Environment.NewLine, (_entropy == null) ? 0 : _entropy.Length);
HelpGenerator.cs (4)
365index += Environment.NewLine.Length; 422if ((index + Environment.NewLine.Length) > text.Length) 427for (int i = 0; i < Environment.NewLine.Length; i++) 429if (Environment.NewLine[i] != text[index + i])
Shared\Options\OptionsSerializer.cs (1)
205var separator = prettyFormat ? Environment.NewLine : " ";
Shared\ProjectPropertyResolver.cs (1)
98await safeLogger.WriteErrorAsync($"{ex.Message}{Environment.NewLine}{ex.StackTrace}", logToUI: false);
Shared\Utilities\ProcessRunner.cs (2)
66using (var safeLogger = await SafeLogger.WriteStartOperationAsync(logger, $"Executing command [\"{currentDir}\"]{Environment.NewLine}>{processName} {processArgs}").ConfigureAwait(false)) 115Console.WriteLine($"{Path.GetFileName(currentDir)}>{processName} {processArgs}{Environment.NewLine}");
Shared\Utilities\RuntimeEnvironmentHelper.cs (6)
62"<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + 63"<configuration>" + Environment.NewLine + 64" <packageSources>" + Environment.NewLine + 65" <add key = \"svcutilFeed\" value=\"{0}\" />" + Environment.NewLine + 66" </packageSources>" + Environment.NewLine + 67"</configuration>" + Environment.NewLine;
Shared\Utilities\Utilities.cs (1)
43message.Append(string.Concat(Environment.NewLine, exMsg, includeStackTrace ? e.StackTrace : string.Empty));
ToolConsole.cs (4)
128str = str.Replace("\\r\\n", Environment.NewLine); 135str = logTag + str.Replace(Environment.NewLine, newLineReplacement); 166WriteWarning(conversionError.Message.Replace("\r\n", Environment.NewLine).Trim(trimLFNL)); 170WriteError(conversionError.Message.Replace("\r\n", Environment.NewLine).Trim(trimLFNL));
dotnet-svcutil-lib.Tests (80)
E2ETests.cs (1)
54_ = $"{processResult.OutputText}{Environment.NewLine}{((TestLogger)this_TestCaseLogger)}";
GlobalToolTests.cs (1)
23var outputText = $"{processResult.OutputText}{Environment.NewLine}{((TestLogger)this_TestCaseLogger)}";
ProjectUtils.cs (2)
73Assert.True(ret.ExitCode == 0, $"Project package restore failed:{Environment.NewLine}{ret.OutputText}{logger}"); 78Assert.True(ret.ExitCode == 0, $"Project build failed:{Environment.NewLine}{ret.OutputText}{logger}");
TestInit.cs (44)
186Assert.True(ret.ExitCode == 0, "Could not install the global tool." + Environment.NewLine + ret.OutputText); 294Environment.NewLine + Environment.NewLine + "Error: The generated file doesn't match the baseline! Different lines:" + 295Environment.NewLine + "< \"{0}\"" + 296Environment.NewLine + "> \"{1}\"" + Environment.NewLine + 297Environment.NewLine + " windiff \"{2}\" \"{3}\"" + Environment.NewLine + 298Environment.NewLine + "To update the baseline run the following command:" + 299Environment.NewLine + " copy /y \"{3}\" \"{2}\""; 302Environment.NewLine + Environment.NewLine + "Error: A file was generated but no baseline exists!" + 303Environment.NewLine + "The \"{0}\" file was created and need to be committed into the source repo. Rerunning the test should succeed if no other error occurred!"; 306Environment.NewLine + Environment.NewLine + "No generated file was found matching the following baselines:" + Environment.NewLine + "{0}" + 307Environment.NewLine + "If no longer valid, run the following command script to delete them:" + Environment.NewLine + " {1}"; 310Environment.NewLine + Environment.NewLine + "To reproduce the problem run the following commands:" + Environment.NewLine + 311Environment.NewLine + " pushd {0}" + Environment.NewLine + 312Environment.NewLine + " dotnet svcutil {1}"; 315Environment.NewLine + "Command: dotnet svcutil {0}" + 316Environment.NewLine + "Workdir: {1}"; 318public static readonly string g_GeneralErrMsg = $"{Environment.NewLine}{Environment.NewLine}Click the Output link for a full report."; 328var resultsMsg = Environment.NewLine + $"Svcutil Result: {actualText}. Expected: {expectedText}"; 332var logText = $"{Environment.NewLine}{outputText}{Environment.NewLine}{Environment.NewLine}{commandMsg}{resultsMsg}"; 337Assert.True(isTestSucess, $"{Environment.NewLine}Test failed:{Environment.NewLine}{outputText}{g_GeneralErrMsg}"); 343Assert.True(validationSuccess, $"{Environment.NewLine}Test failed validation!{failureMessage}{g_GeneralErrMsg}"); 461.Aggregate((msg, b) => $"{msg}{Environment.NewLine}{b}"), scriptPath); 611"<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + 612"<configuration>" + Environment.NewLine + 613" <packageSources>" + Environment.NewLine + 614" <clear />" + Environment.NewLine + 615" <add key = \"svcutilTestFeed\" value=\"$svcutilTestFeed$\" />" + Environment.NewLine + 616" <add key = \"dotnet-public\" value=\"https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json\" />" + Environment.NewLine + 617" </packageSources>" + Environment.NewLine + 618"</configuration>" + Environment.NewLine;
UnitTest.cs (32)
253Environment.NewLine + cmdOptions.Errors.Select(e => e.Message).Aggregate((errors, e) => $"{errors}{Environment.NewLine}{e}"); 255Environment.NewLine + cmdOptions.Warnings.Aggregate((warnings, w) => $"{warnings}{Environment.NewLine}{w}"); 258var log = $"{Environment.NewLine}Input options:{Environment.NewLine}{options}{Environment.NewLine}" + 259$"{Environment.NewLine}Output JSON:{Environment.NewLine}{cmdOptions.Json}{Environment.NewLine}" + 260$"{Environment.NewLine}Output options:{Environment.NewLine}{optionsString}{Environment.NewLine}" + 261$"{Environment.NewLine}Parsing warnings:{cmdwarnings}{Environment.NewLine}" + 262$"{Environment.NewLine}Parsing errors:{cmderrors}{Environment.NewLine}"; 268log += $"{Environment.NewLine}{cmdOptions.GetType().Name} as {updateOptions.GetType().Name}:{Environment.NewLine}{updateOptions.Json}"; 299Environment.NewLine + cmdOptions.Errors.Select(e => e.Message).Aggregate((errors, e) => $"{errors}{Environment.NewLine}{e}"); 301Environment.NewLine + cmdOptions.Warnings.Aggregate((warnings, w) => $"{warnings}{Environment.NewLine}{w}"); 304var log = $"{Environment.NewLine}Input options:{Environment.NewLine}{options}{Environment.NewLine}" + 305$"{Environment.NewLine}Output options:{Environment.NewLine}{optionsString}{Environment.NewLine}" + 306$"{Environment.NewLine}{cmdwarnings}" + 307$"{Environment.NewLine}{cmderrors}"; 355errorMessage = $"{options.GetType().Name} did not pass serialization roundtrip!{Environment.NewLine} windiff {jsonFileSrcPath} {outJsonFile}";
dotnet-user-jwts (12)
Commands\CreateCommand.cs (11)
136var optionsString = schemeNameOption.HasValue() ? $"{Resources.JwtPrint_Scheme}: {scheme}{Environment.NewLine}" : string.Empty; 139optionsString += $"{Resources.JwtPrint_Name}: {name}{Environment.NewLine}"; 142optionsString += audienceOption.HasValue() ? $"{Resources.JwtPrint_Audiences}: {string.Join(", ", audience)}{Environment.NewLine}" : string.Empty; 149optionsString += issuerOption.HasValue() ? $"{Resources.JwtPrint_Issuer}: {issuer}{Environment.NewLine}" : string.Empty; 159optionsString += $"{Resources.JwtPrint_NotBefore}: {notBefore:O}{Environment.NewLine}"; 178optionsString += $"{Resources.JwtPrint_ExpiresOn}: {expiresOn:O}{Environment.NewLine}"; 198optionsString += $"{Resources.JwtPrint_ExpiresOn}: {expiresOn:O}{Environment.NewLine}"; 203optionsString += rolesOption.HasValue() ? $"{Resources.JwtPrint_Roles}: [{string.Join(", ", roles)}]{Environment.NewLine}" : string.Empty; 206optionsString += scopesOption.HasValue() ? $"{Resources.JwtPrint_Scopes}: {string.Join(", ", scopes)}{Environment.NewLine}" : string.Empty; 216optionsString += $"{Resources.JwtPrint_CustomClaims}: [{string.Join(", ", claims.Select(kvp => $"{kvp.Key}={kvp.Value}"))}]{Environment.NewLine}"; 224optionsString += appsettingsFileOption.HasValue() ? $"{Resources.JwtPrint_appsettingsFile}: {appsettingsFile}{Environment.NewLine}" : string.Empty;
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
64propertyGroup.Add($"{Environment.NewLine} ");
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
64propertyGroup.Add($"{Environment.NewLine} ");
GenerateDocumentationAndConfigFiles (4)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Infrastructure.Common (6)
CertificateManager.cs (3)
118exceptionString.AppendFormat("while attempting to install cert with thumbprint '{1}'.", Environment.NewLine, certificate.Thumbprint); 119exceptionString.AppendFormat("{0}This is usually due to permissions issues if writing to the LocalMachine location", Environment.NewLine); 120exceptionString.AppendFormat("{0}Try running the test with elevated or superuser permissions.", Environment.NewLine);
ServiceUtilHelper.cs (3)
120Environment.NewLine, rootCertificate)); 213Environment.NewLine, clientCertificate)); 326Environment.NewLine, peerCertificate));
Infrastructure.IntegrationTests (2)
OSAndFrameworkTests.4.1.1.cs (2)
27Environment.NewLine, 29Environment.NewLine,
Infrastructure.Tests (7)
ExtractTestPartitions\ExtractTestPartitionsTests.cs (1)
341return new ToolResult(process.ExitCode, string.Join(Environment.NewLine, outputLines));
ExtractTestPartitions\MockAssemblyBuilder.cs (2)
274var errors = string.Join(Environment.NewLine, 278throw new InvalidOperationException($"Failed to compile mock assembly:{Environment.NewLine}{errors}");
PowerShellScripts\PowerShellCommand.cs (3)
181return string.Join(System.Environment.NewLine, outputLines); 278message += $"{System.Environment.NewLine}Output:{System.Environment.NewLine}{Output}";
WorkflowScripts\NodeCommand.cs (1)
174return string.Join(System.Environment.NewLine, outputLines);
installer.tasks (16)
GenerateFileVersionProps.cs (1)
117string.Concat(versionlessFiles.Select(f => Environment.NewLine + f)));
GenerateRunScript.cs (2)
43Log.LogMessage($"Run commands = {string.Join(Environment.NewLine, RunCommands)}"); 65string[] newlineSeparator = new string[] { Environment.NewLine };
StaticFileRegeneration\TpnDocument.cs (6)
31Environment.NewLine, 53Environment.NewLine, 65Preamble + Environment.NewLine + 66string.Join(Environment.NewLine + Environment.NewLine, Sections) + 67Environment.NewLine;
StaticFileRegeneration\TpnSection.cs (2)
23Header + Environment.NewLine + Environment.NewLine + Content;
StaticFileRegeneration\TpnSectionHeader.cs (5)
75SeparatorLine + Environment.NewLine + 76Environment.NewLine + 81Name + Environment.NewLine + 100string name = string.Join(Environment.NewLine, nameLines); 143Name = string.Join(Environment.NewLine, nameLines),
Microsoft.Arcade.Common (6)
CommandResult.cs (4)
37message.AppendLine($"{Environment.NewLine}Standard Output:{Environment.NewLine}{StdOut}"); 42message.AppendLine($"{Environment.NewLine}Standard Error:{Environment.NewLine}{StdErr}");
CompactConsoleLoggerFormatter.cs (2)
47_newLineWithMessagePadding = Environment.NewLine + _messagePadding; 101textWriter.WriteLine(message.Replace(Environment.NewLine, _newLineWithMessagePadding));
Microsoft.AspNetCore.App.CodeFixes (1)
Authorization\AddAuthorizationBuilderFixer.cs (1)
122SyntaxFactory.EndOfLine(Environment.NewLine),
Microsoft.AspNetCore.Authorization (2)
LoggingExtensions.cs (2)
21: "These requirements were not met:" + Environment.NewLine + string.Join(Environment.NewLine, failure.FailedRequirements);
Microsoft.AspNetCore.Components (4)
Reflection\ComponentProperties.cs (4)
242$"when also used to capture unmatched values. Unmatched values:" + Environment.NewLine + 243string.Join(Environment.NewLine, unmatched.Keys)); 263$"per type can use '{nameof(ParameterAttribute)}.{nameof(ParameterAttribute.CaptureUnmatchedValues)}'. Properties:" + Environment.NewLine + 264string.Join(Environment.NewLine, propertyNames));
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentParameterAnalyzer.cs (2)
130Environment.NewLine, 132Environment.NewLine,
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentParameterAnalyzer.cs (2)
117Environment.NewLine, 119Environment.NewLine,
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
393 string.Join(Environment.NewLine, headers.Select(kvp => $"{kvp.Key}: {kvp.Value}"));
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
393 string.Join(Environment.NewLine, headers.Select(kvp => $"{kvp.Key}: {kvp.Value}"));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1042return string.Join(Environment.NewLine, description);
Microsoft.AspNetCore.Diagnostics (3)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
304.Split(new[] { Environment.NewLine }, StringSplitOptions.None);
src\aspnetcore\src\Shared\Diagnostics\BaseView.cs (1)
293return string.Join("<br />" + Environment.NewLine,
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
283return string.Join("<br />" + Environment.NewLine,
Microsoft.AspNetCore.Hosting (2)
Internal\HostingLoggerExtensions.cs (1)
35message = message + Environment.NewLine + ex.Message;
src\aspnetcore\src\Shared\RazorViews\BaseView.cs (1)
283return string.Join("<br />" + Environment.NewLine,
Microsoft.AspNetCore.Html.Abstractions (6)
HtmlContentBuilderExtensions.cs (4)
70/// Appends an <see cref="Environment.NewLine"/>. 83/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="string"/> value. 99/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="IHtmlContent"/> value. 114/// Appends an <see cref="Environment.NewLine"/> after appending the <see cref="string"/> value.
HtmlString.cs (2)
14/// An <see cref="HtmlString"/> instance for <see cref="Environment.NewLine"/>. 16public static readonly HtmlString NewLine = new HtmlString(Environment.NewLine);
Microsoft.AspNetCore.HttpLogging (2)
HttpLog.cs (2)
45builder.Append(Environment.NewLine); 53builder.Append(Environment.NewLine);
Microsoft.AspNetCore.Mvc.Core (20)
ApiConventionTypeAttribute.cs (3)
75Environment.NewLine + string.Join(Environment.NewLine, unsupportedAttributes) + Environment.NewLine,
ApplicationModels\ApplicationModelFactory.cs (9)
166Environment.NewLine, 213Environment.NewLine, 245var message = Resources.FormatAttributeRoute_DuplicateNames(routeName, Environment.NewLine, string.Join(Environment.NewLine, descriptions)); 333Environment.NewLine, 334string.Join(Environment.NewLine, actionDescriptions)); 342Environment.NewLine, 343string.Join(Environment.NewLine + Environment.NewLine, errorMessages));
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
95var parameters = string.Join(Environment.NewLine, fromBodyParameters.Select(p => p.DisplayName)); 102message += Environment.NewLine + parameters;
Infrastructure\ActionSelector.cs (2)
99Environment.NewLine, 104Environment.NewLine,
Routing\AttributeRoute.cs (4)
164Environment.NewLine + Environment.NewLine, 168Environment.NewLine, 171var message = Resources.FormatAttributeRoute_AggregateErrorMessage(Environment.NewLine, allErrors);
Microsoft.AspNetCore.Mvc.Razor (6)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (2)
28var viewsDifferingInCase = string.Join(Environment.NewLine, duplicates.Select(d => d.Identifier)); 31Environment.NewLine,
RazorView.cs (4)
285locations = Environment.NewLine + string.Join(Environment.NewLine, originalLocations); 291Environment.NewLine + string.Join(Environment.NewLine, layoutPageResult.SearchedLocations);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
52throw new InvalidOperationException(Resources.FormatAmbiguousHandler(Environment.NewLine, ambiguousMethods));
Microsoft.AspNetCore.Mvc.TagHelpers (9)
AnchorTagHelper.cs (1)
209Environment.NewLine,
FormActionTagHelper.cs (1)
221Environment.NewLine,
FormTagHelper.cs (1)
228Environment.NewLine,
PartialTagHelper.cs (5)
128var locations = Environment.NewLine + string.Join(Environment.NewLine, viewSearchedLocations); 133locations = Environment.NewLine + string.Join(Environment.NewLine, result.SearchedLocations); 134errorMessage += Environment.NewLine + Resources.FormatViewEngine_FallbackViewNotFound(FallbackName, locations);
ScriptTagHelper.cs (1)
372builder.AppendHtml(Environment.NewLine)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Filters\SaveTempDataPropertyFilterBase.cs (1)
114throw new InvalidOperationException(string.Join(Environment.NewLine, errorMessages));
HtmlHelper.cs (4)
527locations = Environment.NewLine + string.Join(Environment.NewLine, originalLocations); 533Environment.NewLine + string.Join(Environment.NewLine, viewEngineResult.SearchedLocations);
ViewComponents\DefaultViewComponentSelector.cs (2)
100var typeNames = string.Join(Environment.NewLine, matchedTypes); 102Resources.FormatViewComponent_AmbiguousTypeMatch(name, Environment.NewLine, typeNames));
ViewEngines\ViewEngineResult.cs (4)
98locations = Environment.NewLine + string.Join(Environment.NewLine, originalLocations); 103locations += Environment.NewLine + string.Join(Environment.NewLine, SearchedLocations);
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Assumed.cs (2)
152=> ThrowHelper.ThrowInvalidOperationException(message + Environment.NewLine + SR.FormatFile_0_Line_1(path, line)); 157=> ThrowHelper.ThrowInvalidOperationException<T>(message + Environment.NewLine + SR.FormatFile_0_Line_1(path, line));
Microsoft.AspNetCore.Routing (7)
EndpointMiddleware.cs (3)
108Environment.NewLine + 116Environment.NewLine + 124Environment.NewLine +
Matching\CandidateSet.cs (2)
350$"The following endpoints were found with the same priority:" + Environment.NewLine + 351string.Join(Environment.NewLine, duplicates.Select(e => e.DisplayName));
Matching\DefaultEndpointSelector.cs (2)
122Environment.NewLine, 123string.Join(Environment.NewLine, matches.Select(e => e.DisplayName)));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1042return string.Join(Environment.NewLine, description);
Microsoft.Build (29)
BackEnd\Components\Communications\NodeLauncher.cs (1)
144$"Failed to launch node from {nodeLaunchData.MSBuildLocation}. CommandLine: {commandLineArgs}{Environment.NewLine}{ex}");
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
232message += Environment.NewLine + "This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER."; 236message += Environment.NewLine + exception.ToString(); 266message += Environment.NewLine + "This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER."; 271message += Environment.NewLine + exception.ToString();
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
259loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "SingleResolverFailedToResolveSDK", sdk.Name, resolvers[0].Name, string.Join(Environment.NewLine, errors)); 264loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "FailedToResolveSDK", sdk.Name, string.Join($"{Environment.NewLine} ", errors)); 385string resultWarnings = result.Warnings?.Any() == true ? string.Join(Environment.NewLine, result.Warnings) : "null"; 386string resultErrors = result.Errors?.Any() == true ? string.Join(Environment.NewLine, result.Errors) : "null";
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1082Environment.NewLine + e.InnerException);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (4)
171checkContext.DispatchAsCommentFromText(MessageImportance.Low, $"BuildCheck run times{Environment.NewLine}"); 180=> title + Environment.NewLine + String.Join(Environment.NewLine, rowData.Select(a => $"{a.Key},{a.Value}")) + Environment.NewLine;
Construction\ProjectElementContainer.cs (2)
577var leadingWhitespaceNode = XmlDocument.CreateWhitespace(Environment.NewLine + parentIndentation + DEFAULT_INDENT); 578var trailingWhiteSpaceNode = XmlDocument.CreateWhitespace(Environment.NewLine + parentIndentation);
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
277ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString()); 491ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
Instance\TaskRegistry.cs (1)
1481ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskFactoryLoadFailure", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation, Environment.NewLine + e.InnerException.ToString());
Logging\BaseConsoleLogger.cs (1)
143WriteHandler(Environment.NewLine);
Logging\OptimizedStringIndenter.cs (3)
64int indentedStringLength = segments.Length * (Environment.NewLine.Length + indent); 86Environment.NewLine.CopyTo(output); 87output = output.Slice(Environment.NewLine.Length);
Logging\ParallelLogger\ConsoleOutputAligner.cs (1)
59int estimatedCapacity = message.Length + ((prefixAlreadyWritten ? 0 : prefixWidth) + Environment.NewLine.Length) * (message.Length / averageLineLength + 1);
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
178builder.Append(Environment.NewLine); 181builder.Append(Environment.NewLine); 183builder.Append(Environment.NewLine);
src\msbuild\src\Shared\TaskLoggingHelper.cs (2)
1258message += Environment.NewLine + exception.StackTrace; 1630message += Environment.NewLine + exception.StackTrace;
Microsoft.Build.Framework (3)
LazyFormattedBuildEventArgs.cs (1)
128argValue = $"Argument conversion to string failed{Environment.NewLine}{e}";
MSBuildConstants.cs (1)
131internal static readonly string[] EnvironmentNewLine = [Environment.NewLine];
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.Build.Tasks.CodeAnalysis (3)
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
240private static readonly string[] s_separator = { Environment.NewLine };
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.Build.Tasks.Core (5)
BootstrapperUtil\BootstrapperBuilder.cs (2)
520productsOrder.Append(p.ProductCode).Append(Environment.NewLine); 1980return str.Replace("%NEWLINE%", Environment.NewLine);
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
178builder.Append(Environment.NewLine); 181builder.Append(Environment.NewLine); 183builder.Append(Environment.NewLine);
Microsoft.Build.Utilities.Core (7)
CommandLineBuilder.cs (1)
220CommandLine.Append(Environment.NewLine);
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
178builder.Append(Environment.NewLine); 181builder.Append(Environment.NewLine); 183builder.Append(Environment.NewLine);
src\msbuild\src\Shared\TaskLoggingHelper.cs (2)
1258message += Environment.NewLine + exception.StackTrace; 1630message += Environment.NewLine + exception.StackTrace;
ToolTask.cs (1)
1554$@"%SystemRoot%\System32\chcp.com {encoding.CodePage}>nul{Environment.NewLine}",
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1405var contextInformation = string.Join(Environment.NewLine, CreateDiagnosticDescription(info, e), CreateDisablingMessage(analyzer, analyzerName)).Trim(); 1418return string.Join(Environment.NewLine,
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
16private static readonly string s_separator = Environment.NewLine + "-----" + Environment.NewLine;
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
122var eolLength = Environment.NewLine.Length;
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.cs (1)
989var lines = scope.ScopeDesignator.ToString().Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
91var newLine = Environment.NewLine;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
81return elementNode.WithTrailingTrivia(SyntaxFactory.ParseTrailingTrivia(Environment.NewLine)); 85SyntaxFactory.ParseLeadingTrivia(Environment.NewLine)
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
189description: (snippet.Title + Environment.NewLine + snippet.Description).ToSymbolDisplayParts(),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
592[EndOfLine(Environment.NewLine)]),
Snippets\CSharpSnippetFunctionService.cs (1)
54var str = "case " + fullyQualifiedTypeName + "." + firstEnumMemberName + ":" + Environment.NewLine + " break;";
src\roslyn\src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (2)
81return elementNode.WithTrailingTrivia(SyntaxFactory.ParseTrailingTrivia(Environment.NewLine)); 85SyntaxFactory.ParseLeadingTrivia(Environment.NewLine)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
91var newLine = Environment.NewLine;
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpLineFormattingOptions.cs (1)
14public string NewLine { get; init; } = Environment.NewLine;
Microsoft.CodeAnalysis.Features (8)
Completion\CommonCompletionProvider.cs (1)
92parts = parts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine));
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
95description: (snippetData.Description + Environment.NewLine + string.Format(FeaturesResources.Code_snippet_for_0, snippetData.Description)).ToSymbolDisplayParts(),
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (1)
51=> $"project: ({project.Id}), ({string.Join(Environment.NewLine, analyzers.Select(a => a.ToString()))})";
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
292var documentTooltip = navigateDocument.FilePath + Environment.NewLine + dllPath;
SemanticSearch\SearchExceptionDefinitionItem.cs (1)
27new TaggedText(TextTags.Space, Environment.NewLine),
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
122var eolLength = Environment.NewLine.Length;
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
16private static readonly string s_separator = Environment.NewLine + "-----" + Environment.NewLine;
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\Components\ComponentDiagnosticFactory.cs (6)
134Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); 146Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName))); 367Environment.NewLine + string.Join(Environment.NewLine, attributes.Select(p => p.TagHelper.DisplayName)));
Language\Extensions\EliminateMethodBodyPass.cs (3)
41IntermediateNodeFactory.CSharpToken("#pragma warning disable 0414" + Environment.NewLine), 44IntermediateNodeFactory.CSharpToken("#pragma warning disable 0649" + Environment.NewLine), 47IntermediateNodeFactory.CSharpToken("#pragma warning disable 0169" + Environment.NewLine)
Language\Legacy\SourceLocationTracker.cs (2)
37if ((Environment.NewLine.Length == 1 && characterRead == Environment.NewLine[0]) ||
Language\RazorCodeGenerationOptions.cs (1)
11private static string DefaultNewLine => Environment.NewLine;
Language\Syntax\SyntaxSerializer.cs (1)
210Builder.Append(value.Replace(Environment.NewLine, "LF"));
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
AbstractResxGenerator.cs (5)
250var exceptionLines = ex.ToString().Split([Environment.NewLine], StringSplitOptions.None); 251var text = string.Join("", exceptionLines.Select(line => "#error " + line + Environment.NewLine)); 563{{string.Join(Environment.NewLine, getResourceStringAttributes.Select(attr => memberIndent + attr))}} 621namespaceStart = $@"namespace {namespaceName}{Environment.NewLine}{{"; 641var crLf = Environment.NewLine;
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (2)
43newLine: Environment.NewLine, 74builder.Append(Environment.NewLine);
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
28var newText = SourceText.From(text.ToString() + Environment.NewLine + "# Refactored");
Microsoft.CodeAnalysis.Workspaces (5)
Log\WorkspaceErrorLogger.cs (1)
25=> exception.Message + Environment.NewLine + exception.StackTrace;
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\BuildHostProcessManager.cs (3)
134throw new Exception($"The build host was started but we were unable to connect to it's pipe. The process exited with {process.ExitCode}. Process output:{Environment.NewLine}{buildHostProcess.GetBuildHostProcessOutput()}", innerException: e); 537_logger.LogError("The BuildHost process is not responding. Process output:{newLine}{processLog}", Environment.NewLine, processLog); 539_logger.LogError("The BuildHost process exited with {errorCode}. Process output:{newLine}{processLog}", _process.ExitCode, Environment.NewLine, processLog);
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
53message += Environment.NewLine + exception.ToString();
Rpc\RpcClient.cs (2)
67var message = $"Failed to deserialize response from build host:{Environment.NewLine}{line}"; 161var requestJson = JsonSerializer.Serialize(request, JsonSettings.SingleLineSerializerOptions) + Environment.NewLine;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
BuildHostLogger.cs (1)
34output.Write(Environment.NewLine);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
181private readonly char[] _newLineChars = Environment.NewLine.ToCharArray();
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
181private readonly char[] _newLineChars = Environment.NewLine.ToCharArray();
Microsoft.Diagnostics.DataContractReader.Legacy (3)
DebugExtensions.cs (3)
111message += $"{Environment.NewLine}---- cDAC exception ----{Environment.NewLine}{ex}{Environment.NewLine}---- end cDAC exception ----";
Microsoft.DotNet.ApiCompat.Task (4)
src\sdk\src\Tasks\Common\TaskBase.cs (4)
70Environment.NewLine, 74Environment.NewLine); 95s = s + " ---> " + ExceptionToStringWithoutMessage(e.InnerException) + Environment.NewLine + 104s += Environment.NewLine + stackTrace;
Microsoft.DotNet.ApiCompatibility (1)
Logging\SuppressionEngine.cs (1)
147xmlWriter.WriteWhitespace(Environment.NewLine);
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
248namespaceStart = $@"namespace {namespaceName}{Environment.NewLine}{{";
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixBuildWixpack.cs (1)
432File.WriteAllText(Path.Combine(WixpackWorkingDir, "create.rsp"), string.Join(System.Environment.NewLine, commandLineArgs));
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
OptProf\GetRunSettingsSessionConfiguration.cs (3)
92$"Unable to read bootstrapper info: {e.Message}{Environment.NewLine}" + 93$"Content of BootstrapperInfo.json:{Environment.NewLine}" + 133Environment.NewLine,
Microsoft.DotNet.Cli.CoreUtils (2)
GracefulException.cs (2)
23: this(string.Join(Environment.NewLine, messages), isUserError: isUserError) 27VerboseMessage = string.Join(Environment.NewLine, verboseMessages);
Microsoft.DotNet.Cli.Utils (2)
Extensions\LockFileFormatExtensions.cs (1)
20Environment.NewLine,
PathUtility.cs (1)
358Environment.NewLine,
Microsoft.DotNet.SharedFramework.Sdk (1)
src\ValidateFileVersions.cs (1)
86string.Concat(versionlessFiles.Select(f => Environment.NewLine + f)));
Microsoft.Extensions.AI (1)
ToolReduction\EmbeddingToolReductionStrategy.cs (1)
47return t.Name + Environment.NewLine + t.Description;
Microsoft.Extensions.AI.Abstractions (1)
Contents\AIContentExtensions.cs (1)
86builder.AppendLiteral(Environment.NewLine);
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatResponseTests.cs (1)
122ChatResponse response = new(new ChatMessage(ChatRole.Assistant, $"This is a test.{Environment.NewLine}It's multiple lines."));
SpeechToText\SpeechToTextResponseTests.cs (2)
196SpeechToTextResponse response = new("This is a test." + Environment.NewLine + "It's multiple lines."); 197Assert.Equal("This is a test." + Environment.NewLine + "It's multiple lines.", response.ToString());
test\Shared\JsonSchemaExporter\SchemaTestHelpers.cs (1)
47{string.Join(Environment.NewLine, errors)}
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyEvaluator.cs (1)
114string.Join(Environment.NewLine, textContents.Select(c => c.Text)) is string contextString &&
ContentSafetyServicePayloadUtilities.cs (1)
135userTextListStrings = [string.Join(Environment.NewLine, userTextListStrings)];
Microsoft.Extensions.AI.Integration.Tests (3)
VerbatimHttpHandler.cs (3)
135$"Expected:{Environment.NewLine}" + 136$"{expected}{Environment.NewLine}" + 137$"Actual:{Environment.NewLine}" +
Microsoft.Extensions.AI.OpenAI (2)
OpenAIClientExtensions.cs (1)
90$"{descriptionNode.GetValue<string>()}{Environment.NewLine}{additionalDescription}" :
OpenAIResponsesChatClient.cs (1)
792$"{result.Instructions}{Environment.NewLine}{instructions}";
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
419var resultDuplicatedJson = JsonSerializer.Serialize(expectedResult, JsonContext2.Default.Options) + Environment.NewLine + JsonSerializer.Serialize(expectedResult, JsonContext2.Default.Options);
Microsoft.Extensions.Configuration.KeyPerFile (2)
KeyPerFileConfigurationProvider.cs (2)
46=> value.EndsWith(Environment.NewLine, StringComparison.Ordinal) 47? value.Substring(0, value.Length - Environment.NewLine.Length)
Microsoft.Extensions.DataIngestion (4)
Chunkers\ElementsChunker.cs (4)
116AppendNewLineAndSpan(_currentChunk, tableBuilder.AsSpan(0, tableLength - Environment.NewLine.Length)); 140AppendNewLineAndSpan(_currentChunk, tableBuilder.AsSpan(0, tableLength - Environment.NewLine.Length)); 253vsb.Append(Environment.NewLine); 268vsb.Append(Environment.NewLine);
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
96=> string.Join(Environment.NewLine, Elements.Select(e => e.GetMarkdown()));
Microsoft.Extensions.DataIngestion.Tests (1)
Chunkers\SemanticSimilarityChunkerTests.cs (1)
102Assert.Equal(text1 + Environment.NewLine + text2, chunks[0].Content);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteFactory.cs (1)
649Environment.NewLine,
ServiceLookup\DynamicServiceProviderEngine.cs (1)
44Debug.Fail($"We should never get exceptions from the background compilation.{Environment.NewLine}{ex}");
Microsoft.Extensions.Hosting (1)
Internal\HostingLoggerExtensions.cs (1)
21message = message + Environment.NewLine + ex.Message;
Microsoft.Extensions.Http (2)
DependencyInjection\SocketsHttpHandlerBuilderExtensions.cs (1)
36string message = SR.Format(SR.SocketsHttpHandlerBuilder_PrimaryHandlerIsInvalid, nameof(b.PrimaryHandler), typeof(SocketsHttpHandler).FullName, Environment.NewLine, b.PrimaryHandler?.ToString() ?? "(null)");
HttpMessageHandlerBuilder.cs (1)
109Environment.NewLine,
Microsoft.Extensions.Logging.Console (11)
ConsoleLoggerProcessor.cs (1)
133message: SR.Format(SR.WarningMessageOnDrop + Environment.NewLine, _messagesDropped),
JsonConsoleFormatter.cs (1)
116textWriter.Write(Environment.NewLine);
SimpleConsoleFormatter.cs (7)
17private static readonly string _newLineWithMessagePadding = Environment.NewLine + _messagePadding; 111textWriter.Write(Environment.NewLine); 128textWriter.Write(Environment.NewLine); 139WriteReplacing(textWriter, Environment.NewLine, " ", message); 144WriteReplacing(textWriter, Environment.NewLine, _newLineWithMessagePadding, message); 145textWriter.Write(Environment.NewLine); 223textWriter.Write(Environment.NewLine);
SystemdConsoleFormatter.cs (2)
104textWriter.Write(Environment.NewLine); 108string newMessage = message.Replace(Environment.NewLine, " ");
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (2)
68message = $"{logLevel}: {formatted}{Environment.NewLine}{Environment.NewLine}{exception}";
Microsoft.Extensions.ObjectPool (1)
LeakTrackingObjectPool.cs (1)
78Debug.Fail($"{typeof(T).Name} was leaked. Created at: {Environment.NewLine}{_stack}");
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
XunitLoggerFactoryExtensions.cs (3)
63private static readonly string[] s_newLineChars = new[] { Environment.NewLine }; 114if (message.EndsWith(Environment.NewLine, StringComparison.Ordinal)) 116message = message.Substring(0, message.Length - Environment.NewLine.Length);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Program.cs (1)
28{string.Join(Environment.NewLine, fuzzers.Select(f => $" {f.Name}"))}
Microsoft.Extensions.Telemetry (4)
Latency\Internal\LatencyConsoleExporter.cs (2)
23private static readonly string _title = "Latency sample #{0}: {1}ms, {2} checkpoints, {3} tags, {4} measures" + Environment.NewLine; 24private static readonly Func<int, string> _rows = Memoize.Function((int nameColumnWidth) => $" {{0,-{nameColumnWidth}}} | {{1}}" + Environment.NewLine);
Logging\ExtendedLogger.cs (2)
188trace = trace.Replace(Environment.NewLine, Environment.NewLine + indentStr + " ").Trim(' ');
Microsoft.Extensions.Telemetry.Tests (1)
Latency\Internal\LatencyConsoleExporterTests.cs (1)
155private static string NormalizeLineEndings(string value) => value.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n", Environment.NewLine);
Microsoft.Gen.MetricsReports.Unit.Tests (1)
EmitterTests.cs (1)
131string newLine = Environment.NewLine;
Microsoft.Maui.Resizetizer (2)
AppleIconAssetsGenerator.cs (1)
78 {{string.Join("," + Environment.NewLine, appIconImagesJson)}}
AsyncTask.cs (1)
69 LogError(ex.Message + Environment.NewLine + ex.StackTrace);
Microsoft.ML.AutoML.SourceGenerator (15)
Template\EstimatorType.cs (3)
168if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 180textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SearchSpace.cs (3)
185if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 197textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SweepableEstimator.cs (3)
187if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 199textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SweepableEstimator_T_.cs (3)
192if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 204textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Template\SweepableEstimatorFactory.cs (3)
163if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 175textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Microsoft.ML.AutoML.Tests (1)
TrialResultManagerTest.cs (1)
83fileContent = fileContent.Replace(Environment.NewLine, "\r");
Microsoft.ML.CodeGenerator (30)
Templates\Azure\Console\AzureModelBuilder.cs (3)
262if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 274textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Azure\Model\AzureImageModelOutputClass.cs (3)
203if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 215textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (3)
203if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 215textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ConsumeModel.cs (3)
214if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 226textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelBuilder.cs (3)
579if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 591textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelInputClass.cs (3)
177if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 189textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelOutputClass.cs (3)
220if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 232textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\ModelProject.cs (3)
209if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 221textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\PredictProgram.cs (3)
236if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 248textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Templates\Console\PredictProject.cs (3)
214if (textToAppend.EndsWith(global::System.Environment.NewLine, global::System.StringComparison.CurrentCulture)) 226textToAppend = textToAppend.Replace(global::System.Environment.NewLine, (global::System.Environment.NewLine + this.currentIndentField));
Microsoft.ML.Core (2)
ComponentModel\ComponentCatalog.cs (2)
1063errorMsg = err + Environment.NewLine + "Usage For '" + name + "':" + Environment.NewLine + helpText;
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
346.Replace(Environment.NewLine, ""))
Microsoft.ML.Data (1)
Dirty\ModelParametersBase.cs (1)
88ch.Warning(NormalizerWarningFormat, typePredictor, Environment.NewLine);
Microsoft.ML.PerformanceTests (1)
Harness\ProjectGenerator.cs (1)
70return string.Join(Environment.NewLine, File.ReadAllLines(csproj.FullName).Where(line => line.Contains("<NativeAssemblyReference")));
Microsoft.ML.Samples (2)
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (2)
87Console.WriteLine(Environment.NewLine); 109Console.WriteLine(Environment.NewLine);
Microsoft.ML.TestFramework (5)
BaseTestBaseline.cs (5)
660var message = iterationOnCollection != null ? "" : $"Output and baseline mismatch at line {iterationOnCollection}." + Environment.NewLine; 664$"Values to compare are {expected} and {actual}" + Environment.NewLine + 665$"\t AllowedVariance: {allowedVariance}" + Environment.NewLine + 666$"\t delta: {delta}" + Environment.NewLine + 667$"\t delta2: {delta2}" + Environment.NewLine);
Microsoft.ML.Tokenizers (4)
Model\CodeGenTokenizer.cs (2)
1756throw new ArgumentException($"Problems met when parsing JSON vocabulary object.{Environment.NewLine}Error message: {e.Message}"); 1796throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Model\EnglishRobertaTokenizer.cs (2)
188throw new ArgumentException($"Problems met when parsing JSON vocabulary object.{Environment.NewLine}Error message: {e.Message}"); 228throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Microsoft.ML.Tokenizers.Tests (2)
BpeTests.cs (2)
614string result = $"[{string.Join(", ", encoding.Select(t => $"{t.Id}"))} ] {Environment.NewLine}"; 615result += $"[{string.Join(", ", encoding.Select(t => $"\"{t.Value}\""))} ] {Environment.NewLine}";
Microsoft.NET.Build.Containers (1)
LocalDaemons\DockerCli.cs (1)
169string messages = string.Join(Environment.NewLine, errorProperty.EnumerateArray());
Microsoft.NET.Build.Tasks (6)
FrameworkPackages\FrameworkPackages.cs (1)
133log.LogMessage("Pack directories found: {0}", string.Join(Environment.NewLine, packDirectories));
ProcessFrameworkReferences.cs (1)
678string.Join(Environment.NewLine, matchingRuntimePacks.Select(rp => rp.RuntimePackNamePatterns)));
src\sdk\src\Tasks\Common\TaskBase.cs (4)
70Environment.NewLine, 74Environment.NewLine); 95s = s + " ---> " + ExceptionToStringWithoutMessage(e.InnerException) + Environment.NewLine + 104s += Environment.NewLine + stackTrace;
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
GenerateServiceWorkerAssetsManifest.cs (1)
68Environment.NewLine,
Microsoft.NET.Sdk.Publish.Tasks (3)
MsDeploy\CommonUtility.cs (2)
1680strBuilder.Append(Environment.NewLine); 1686strBuilder.Append(Environment.NewLine);
Tasks\MsDeploy\CreateMSDeployScript.cs (1)
45var lines = fileContents.Split(new string[] { Environment.NewLine, "\n" }, StringSplitOptions.None);
Microsoft.NET.Sdk.Razor.Tasks (3)
DotnetToolTask.cs (3)
236var lines = output.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); 249var lines = output.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); 277var list = responseFileCommands.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (23)
ComputeReferenceStaticWebAssetItems.cs (2)
87Environment.NewLine + string.Join(Environment.NewLine, all.Select(a => $"({a.Identity},{a.AssetKind})")));
ComputeStaticWebAssetsForCurrentProject.cs (2)
60Environment.NewLine + string.Join(Environment.NewLine, all.Select(a => $"({a.Identity},{a.AssetKind})")));
DefineStaticWebAssets.cs (6)
533var errorMessage = "More than two assets are targeting the same path: " + Environment.NewLine + 534"'{0}' with kind '{1}'" + Environment.NewLine + 535"'{2}' with kind '{3}'" + Environment.NewLine + 555var errorMessage = "Two assets found targeting the same path with incompatible asset kinds:" + Environment.NewLine + 556"'{0}' with kind '{1}'" + Environment.NewLine + 557"'{2}' with kind '{3}'" + Environment.NewLine +
GenerateStaticWebAssetEndpointsManifest.cs (1)
194return (string.Join(Environment.NewLine, parsed), parsed);
JSModules\ApplyJsModules.cs (4)
70Environment.NewLine + 71string.Join(Environment.NewLine, jsModuleFiles.Select(f => f.ItemSpec))); 83Environment.NewLine + 84string.Join(Environment.NewLine, jsModuleFiles.Select(f => f.ItemSpec)));
OverrideHtmlAssetPlaceholders.cs (1)
151return String.Join(Environment.NewLine, links.Select(l => l.Value));
ScopedCss\ApplyCssScopes.cs (4)
73Environment.NewLine + 74string.Join(Environment.NewLine, scopeFiles.Select(f => f.ItemSpec))); 86Environment.NewLine + 87string.Join(Environment.NewLine, scopeFiles.Select(f => f.ItemSpec)));
ServiceWorker\GenerateServiceWorkerAssetsManifest.cs (2)
81Environment.NewLine, 100var content = $"self.assetsManifest = {data};{Environment.NewLine}";
ServiceWorker\UpdateServiceWorkerFileWithVersion.cs (1)
32var versionedContent = $"/* Manifest version: {ManifestVersion} */{Environment.NewLine}{sourceContent}";
Microsoft.TemplateEngine.Cli (5)
CliEnvironment.cs (1)
29public string NewLine { get; } = Environment.NewLine;
Commands\create\TemplateCommand.cs (1)
41template.Name + Environment.NewLine + template.Description)
TemplatePackageDisplay.cs (3)
382reporter.Write(Environment.NewLine); 388Environment.NewLine, 390reporter.Write(Environment.NewLine);
Microsoft.TemplateEngine.Core (1)
Expressions\Shared\SharedEvaluatorDefinition.cs (1)
186: (faultedMessage + Environment.NewLine + e.Message);
Microsoft.TemplateEngine.Edge (3)
DefaultEnvironment.cs (1)
24NewLine = Environment.NewLine;
Settings\TemplateCache.cs (1)
195templatesList.ToString().TrimEnd(Environment.NewLine.ToCharArray()),
Template\TemplateCreator.cs (1)
220string message = string.Join(Environment.NewLine, ExceptionMessages(cx));
Microsoft.TestPlatform.Build (2)
Tasks\VSTestLogsTask.cs (1)
25Log.LogMessage(MessageImportance.Normal, Resources.Resources.BuildCompleted + Environment.NewLine);
Tasks\VSTestTask2.cs (1)
167var n = Environment.NewLine;
Microsoft.TestPlatform.CoreUtilities (4)
Extensions\StringBuilderExtensions.cs (1)
31data += Environment.NewLine;
Output\ConsoleOutput.cs (1)
58Write(Environment.NewLine, level);
Tracing\EqtTrace.cs (2)
732string prefix = Environment.NewLine + '\t'; 788message.Append(Environment.NewLine);
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameLogger.cs (1)
103sb.Append(tcn).Append(Environment.NewLine);
Microsoft.VisualStudio.TestPlatform.Common (8)
DataCollection\TestPlatformDataCollectionLogger.cs (4)
73"Data collector '{0}' logged the following error:" + Environment.NewLine + 74"Description: {1}" + Environment.NewLine + 75"Exception type: {2}" + Environment.NewLine + "Exception message: {3}" 76+ Environment.NewLine + "Exception stack trace: {4}",
ExtensionFramework\TestPluginCache.cs (4)
91"TestPluginCache.GetExtensionPaths: Filtered extension paths: {0}", string.Join(Environment.NewLine, extensions)); 97"TestPluginCache.GetExtensionPaths: Added default extension paths: {0}", string.Join(Environment.NewLine, _defaultExtensionPaths)); 101"TestPluginCache.GetExtensionPaths: Added unfilterableExtensionPaths: {0}", string.Join(Environment.NewLine, _unfilterableExtensionPaths)); 151"TestPluginCache.DiscoverTestExtensions: Discovering the extensions using allExtensionPaths: {0}", string.Join(Environment.NewLine, allExtensionPaths));
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Utilities\StringUtilities.cs (1)
26result = result.TrimEnd(Environment.NewLine.ToCharArray());
MSBuild (7)
CommandLine\CommandLineSwitchException.cs (1)
75return base.Message + Environment.NewLine + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidSwitchIndicator", commandLineArg);
InitializationException.cs (3)
80return base.Message + Environment.NewLine + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidSwitchIndicator", invalidSwitch); 149errorMessage += Environment.NewLine + e.ToString(); 176errorMessage += Environment.NewLine + e.ToString();
src\msbuild\src\Shared\Debugging\DebugUtils.cs (3)
178builder.Append(Environment.NewLine); 181builder.Append(Environment.NewLine); 183builder.Append(Environment.NewLine);
NuGet.CommandLine.XPlat (6)
Commands\ConfigCommands\ConfigRunners.cs (2)
221logger.LogMinimal(Environment.NewLine); 230logger.LogMinimal(Environment.NewLine);
Utility\HttpSourcesUtility.cs (2)
55Environment.NewLine + string.Join(Environment.NewLine, httpSources.Select(e => e.Name)));
Utility\MSBuildAPIUtility.cs (1)
677Environment.NewLine,
Utility\TableParser.cs (1)
137stringTable.Add(new FormattedCell(Environment.NewLine));
NuGet.Commands (22)
ListCommand\ListCommandRunner.cs (2)
100Environment.NewLine + string.Join(Environment.NewLine, httpPackageSources.Select(e => e.Name))));
RestoreCommand\CompatibilityIssue.cs (2)
218sb.Append(Environment.NewLine).Append(" - " + framework); 237sb.Append(Environment.NewLine).Append(" - " + framework);
RestoreCommand\Diagnostics\DiagnosticUtility.cs (1)
97sb.Append(Environment.NewLine);
RestoreCommand\RestoreCommand.cs (8)
1439var invalidReasons = string.Join(Environment.NewLine, lockFileResult.InvalidReasons); 1642var text = Strings.Log_CycleDetected + $" {Environment.NewLine} {cycle.GetPath()}."; 1674+ $" {Environment.NewLine} {versionConflict.Selected.GetPathWithLastRange()} {Environment.NewLine} {versionConflict.Conflicting.GetPathWithLastRange()}."; 1684+ $" {Environment.NewLine} {versionConflict.Selected.GetPathWithLastRange()} {Environment.NewLine} {versionConflict.Conflicting.GetPathWithLastRange()}."; 1735+ $" {Environment.NewLine} {downgraded.GetPathWithLastRange()} {Environment.NewLine} {downgradedBy.GetPathWithLastRange()}";
SignCommand\SignCommandRunner.cs (1)
54signArgs.Logger.LogInformation(Environment.NewLine);
SourcesCommands\SourceRunners.cs (2)
230Environment.NewLine + string.Join(Environment.NewLine, httpPackageSources.Select(e => e.Name))));
TrustedSignersCommand\TrustedSignersCommandRunner.cs (1)
214await logger.LogAsync(LogLevel.Minimal, Environment.NewLine);
VerifyCommand\VerifyCommandRunner.cs (5)
121logger.LogMinimal(Environment.NewLine + string.Format(CultureInfo.CurrentCulture, 128logger.LogInformation($"{packagePath}{Environment.NewLine}"); 137logger.LogMinimal(Environment.NewLine); 154logger.LogInformation(Environment.NewLine + string.Format(CultureInfo.CurrentCulture, Strings.VerifyCommand_Success, packageIdentity.ToString())); 158logger.LogMinimal(Environment.NewLine + Strings.VerifyCommand_Failed);
NuGet.Configuration (2)
Utility\XElementUtility.cs (2)
31var parentIndent = leadingText != null ? leadingText.Value : Environment.NewLine; 79var indentString = textBeforeOrNull.Value.Trim(Environment.NewLine.ToCharArray());
NuGet.PackageManagement (7)
NuGetPackageManager.cs (5)
1108nuGetProjectContext.Log(MessageLevel.Info, Environment.NewLine); 1842nuGetProjectContext.Log(NuGet.ProjectManagement.MessageLevel.Info, Environment.NewLine); 2372nuGetProjectContext.Log(NuGet.ProjectManagement.MessageLevel.Info, Environment.NewLine); 2716$"{Environment.NewLine}{string.Join(Environment.NewLine, errors.Select(e => e.FormatWithCode()))}");
Utility\XElementExtensions.cs (2)
267var parentIndent = leadingText != null ? leadingText.Value : Environment.NewLine; 350var indentString = textBeforeOrNull.Value.Trim(Environment.NewLine.ToCharArray());
NuGet.Packaging (10)
PackageCreation\Authoring\Manifest.cs (1)
287string message = String.Join(Environment.NewLine, results);
PackageCreation\Authoring\PackageBuilder.cs (2)
1002if (warningMessage.Length > Environment.NewLine.Length) 1004warningMessage.Length -= Environment.NewLine.Length;
Signing\Signatures\AuthorPrimarySignature.cs (1)
32issues.Add(SignatureLog.MinimalLog(Environment.NewLine +
Signing\Signatures\RepositoryCountersignature.cs (1)
98issues.Add(SignatureLog.MinimalLog(Environment.NewLine +
Signing\Signatures\RepositoryPrimarySignature.cs (1)
37issues.Add(SignatureLog.MinimalLog(Environment.NewLine +
Signing\Signatures\Signature.cs (1)
159$"{Environment.NewLine}")));
Signing\Timestamp\Timestamp.cs (2)
131issues.Add(SignatureLog.InformationLog(string.Format(CultureInfo.CurrentCulture, Strings.TimestampValue, GeneralizedTime.LocalDateTime.ToString(CultureInfo.CurrentCulture)) + Environment.NewLine)); 136$"{Environment.NewLine}{CertificateUtility.X509Certificate2ToString(timestamperCertificate, fingerprintAlgorithm)}")));
StringFormatter.cs (1)
42return Strings.ZipFileTimeStampModifiedWarning + Environment.NewLine + listOfFileTimeStampModifiedMessages;
NuGet.Protocol (10)
HttpSource\HttpRetryHandler.cs (1)
289+ Environment.NewLine
HttpSource\HttpSource.cs (1)
112+ Environment.NewLine
Providers\RepositorySignatureResourceProvider.cs (1)
112+ Environment.NewLine
Providers\ServiceIndexResourceV3Provider.cs (1)
168+ Environment.NewLine
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
550+ Environment.NewLine
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (1)
549+ Environment.NewLine
Resources\PackageUpdateResource.cs (1)
498+ Environment.NewLine
Utility\FindPackagesByIdNupkgDownloader.cs (2)
299+ Environment.NewLine 323+ Environment.NewLine
Utility\GetDownloadResultUtility.cs (1)
117+ Environment.NewLine
PresentationBuildTasks (2)
MS\Internal\Tasks\TaskHelper.cs (2)
52log.LogMessage(MessageImportance.Low,Environment.NewLine); 55log.LogMessage(MessageImportance.Low, Environment.NewLine);
PresentationCore (5)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (5)
151Debug.WriteLine("WorkerOperationGetTabletsInfo.OnDoWork failed due to: {0}{1}", Environment.NewLine, e.ToString()); 207Debug.WriteLine("WorkerOperationCreateContext.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString()); 314Debug.WriteLine("WorkerOperationRefreshCursorInfo.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString()); 356Debug.WriteLine("WorkerOperationGetTabletInfo.OnDoWork failed due to {0}{1}", Environment.NewLine, e.ToString()); 396Debug.WriteLine("WorkerOperationWorkerGetUpdatedSizes.OnDoWork failed due to a {0}{1}", Environment.NewLine, e.ToString());
PresentationFramework (9)
System\windows\Documents\TextEditor.cs (1)
1225int endOfFirstLine = textData.IndexOf(Environment.NewLine, StringComparison.Ordinal);
System\windows\Documents\TextEditorTyping.cs (2)
1134string filteredText = This._FilterText(Environment.NewLine, This.Selection); 1138This.Selection.Text = Environment.NewLine;
System\Windows\Documents\TextRangeBase.cs (4)
694textBuffer.Append(Environment.NewLine); 715textBuffer.Append(Environment.NewLine); 781textBuffer.Append(Environment.NewLine); 787textBuffer.Append(Environment.NewLine);
System\Windows\Documents\TextStore.cs (2)
1491if (!(nextChars[0] == Environment.NewLine[0] && nextChars[1] == Environment.NewLine[1]))
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1042return string.Join(Environment.NewLine, description);
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (1)
110Fail("ASSERT FAILED" + Environment.NewLine + message);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
173foreach (var line in child.ToString().Split([Environment.NewLine], StringSplitOptions.RemoveEmptyEntries))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
47_ => Environment.NewLine
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
19[DataMember] public string NewLine { get; init; } = Environment.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
285: reason + Environment.NewLine + restString;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
91var newLine = Environment.NewLine;
rzc (5)
Json\Assumed.cs (2)
151=> ThrowHelper.ThrowInvalidOperationException(message + Environment.NewLine + Strings.FormatFile_0_Line_1(path, line)); 156=> ThrowHelper.ThrowInvalidOperationException<T>(message + Environment.NewLine + Strings.FormatFile_0_Line_1(path, line));
ServerCommand.cs (3)
159var content = $"{processId}{Environment.NewLine}rzc{Environment.NewLine}{rzcPath}{Environment.NewLine}{Pipe.Value()}";
Security.TransportSecurity.IntegrationTests (3)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (3)
87errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message); 164errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message); 248errorBuilder.AppendFormat("Exception message: {0}{1}", Environment.NewLine, exception.Message);
Shared.Tests (1)
JsonSchemaExporter\SchemaTestHelpers.cs (1)
47{string.Join(Environment.NewLine, errors)}
SuperFileCheck (4)
Program.cs (4)
366return String.Join(Environment.NewLine, methodDecl.GetText().Lines.Select(x => TransformLine(x, checkPrefixes))); 552Console.Write(Environment.NewLine); 555Console.Write(Environment.NewLine); 557Console.Write(Environment.NewLine);
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
151b.Append(Environment.NewLine);
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
364b.Append(Environment.NewLine);
System.CommandLine (5)
Completions\CompletionAction.cs (1)
37Environment.NewLine,
LocalizationResources.cs (4)
223value, commandAlias, expectedType, Environment.NewLine + string.Join(Environment.NewLine, completions)); 236value, optionAlias, expectedType, Environment.NewLine + string.Join(Environment.NewLine, completions));
System.Data.Odbc (3)
System\Data\Odbc\OdbcConnection.cs (1)
568throw new DllNotFoundException(SR.Odbc_UnixOdbcNotFound + Environment.NewLine + e.Message);
System\Data\Odbc\OdbcException.cs (1)
23builder.Append(Environment.NewLine);
System\Data\Odbc\OdbcInfoMessageEvent.cs (1)
31if (0 < builder.Length) { builder.Append(Environment.NewLine); }
System.Data.OleDb (24)
OleDb_Util.cs (18)
29builder.Append(Environment.NewLine); 34builder.Append(Environment.NewLine); 39builder.Append(Environment.NewLine); 44builder.Append(Environment.NewLine); 53builder.Append(Environment.NewLine); 74builder.Append(Environment.NewLine); 79builder.Append(Environment.NewLine); 117{ builder.Append(Environment.NewLine); } 122{ builder.Append(Environment.NewLine); } 127{ builder.Append(Environment.NewLine); } 132{ builder.Append(Environment.NewLine); } 137{ builder.Append(Environment.NewLine); } 142{ builder.Append(Environment.NewLine); } 147{ builder.Append(Environment.NewLine); } 152{ builder.Append(Environment.NewLine); } 157{ builder.Append(Environment.NewLine); } 162{ builder.Append(Environment.NewLine); } 342message = FailedGetDescription(hr) + Environment.NewLine + ODB.ELookup(hresult);
OleDbException.cs (3)
84builder.Append(Environment.NewLine); 91builder.Append(Environment.NewLine); 116builder.Append(Environment.NewLine);
OleDbStruct.cs (3)
49builder.Append("tagDBPARAMBINDINFO_x86").Append(Environment.NewLine); 52builder.Append("pwszDataSourceType =").Append(Marshal.PtrToStringUni(pwszDataSourceType)).Append(Environment.NewLine); 77builder.Append("tagDBPARAMBINDINFO").Append(Environment.NewLine);
System.Diagnostics.TraceSource (6)
System\Diagnostics\DefaultTraceListener.cs (6)
106WriteLine(SR.DebugAssertBanner + Environment.NewLine 107+ SR.DebugAssertShortMessage + Environment.NewLine 108+ message + Environment.NewLine 109+ SR.DebugAssertLongMessage + Environment.NewLine 110+ detailMessage + Environment.NewLine 140Write(message + Environment.NewLine, useLogFile);
System.DirectoryServices (2)
System\DirectoryServices\ActiveDirectory\Exception.cs (2)
167return s + Environment.NewLine + SR.Format(SR.Name, Name) + Environment.NewLine;
System.Net.Http (5)
System\Net\Http\Headers\HeaderUtilities.cs (1)
336sb.Append(Environment.NewLine);
System\Net\Http\Headers\HttpHeaders.cs (1)
362builder.Append(Environment.NewLine);
System\Net\Http\HttpRequestMessage.cs (1)
167sb.Append(Environment.NewLine);
System\Net\Http\HttpResponseMessage.cs (2)
195sb.Append(Environment.NewLine); 201sb.Append(Environment.NewLine);
System.Net.Http.WinHttpHandler (2)
src\runtime\src\libraries\Common\src\System\Runtime\ExceptionServices\ExceptionStackTrace.cs (2)
24Environment.StackTrace + Environment.NewLine + 25"--- End of stack trace from AddCurrentStack ---" + Environment.NewLine;
System.Net.NetworkInformation (21)
src\runtime\src\libraries\Common\src\System\IO\RowConfigReader.cs (5)
88int endOfLine = _buffer.IndexOf(Environment.NewLine, afterKey, _comparisonKind); 135|| (keyIndex >= Environment.NewLine.Length && _buffer.AsSpan(keyIndex - Environment.NewLine.Length, Environment.NewLine.Length).SequenceEqual(Environment.NewLine)))
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (3)
140int labelLineStart = fileContents.LastIndexOf(Environment.NewLine, labelIndex, StringComparison.Ordinal); 157labelLineStart = fileContents.LastIndexOf(Environment.NewLine, labelIndex, StringComparison.Ordinal); 159int endOfLine = fileContents.IndexOf(Environment.NewLine, labelIndex, StringComparison.Ordinal);
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (7)
17int endOfTcpLine = sockstatFile.IndexOf(Environment.NewLine, indexOfTcp + 1, StringComparison.Ordinal); 33v4connections = tcp4FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 43v6connections = tcp6FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 113v4connections = tcp4FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 123v6connections = tcp6FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 193v4connections = udp4FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries); 203v6connections = udp6FileContents.Split(Environment.NewLine, StringSplitOptions.RemoveEmptyEntries);
System\Net\NetworkInformation\StringParsingHelpers.Misc.cs (2)
66return routeFile.AsSpan().Count(Environment.NewLine) - 1; // File includes one-line header 92int endOfSecondLine = snmp4FileContents.IndexOf(Environment.NewLine, secondIpHeader, StringComparison.Ordinal);
System\Net\NetworkInformation\StringParsingHelpers.Statistics.cs (4)
182int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondIpHeader, StringComparison.Ordinal); 269int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondIpHeader, StringComparison.Ordinal); 336int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondTcpHeader, StringComparison.Ordinal); 368int endOfSecondLine = fileContents.IndexOf(Environment.NewLine, secondUdpHeader, StringComparison.Ordinal);
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
3344msg += Environment.NewLine; 3841Debugger.Log(0, null, $"EventSource Error: {msg}{Environment.NewLine}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (1)
63return base.Message + Environment.NewLine + valueMessage;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.Unix.cs (2)
51_errorMessage ??= Environment.NewLine; 54_errorMessage += message + Environment.NewLine;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (3)
1472/// Replaces all newline sequences in the current string with <see cref="Environment.NewLine"/>. 1476/// with <see cref="Environment.NewLine"/>. 1492/// <see cref="Environment.NewLine"/> as the <em>replacementText</em> parameter.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
910public StringBuilder AppendLine() => Append(Environment.NewLine); 915return Append(Environment.NewLine);
System\Diagnostics\StackTrace.NativeAot.cs (2)
91if (traceFormat == TraceFormat.Normal && builder.Length >= Environment.NewLine.Length) 92builder.Length -= Environment.NewLine.Length;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContractSet.cs (1)
594errorMessage.AppendFormat("{0}\"{1}\" ", Environment.NewLine, conflictingType.AssemblyQualifiedName);
System.Private.Windows.Core.TestUtilities (1)
ThrowingTraceListener.cs (1)
15: $"{Environment.NewLine}{detailMessage}")}");
System.Private.Xml (8)
System\Xml\Core\XmlWriterSettings.cs (1)
506_newLineChars = Environment.NewLine; // "\r\n" on Windows, "\n" on Unix
System\Xml\Serialization\SchemaObjectWriter.cs (1)
194_w.Append(Environment.NewLine);
System\Xml\Serialization\XmlSchemas.cs (2)
591err += $"{Environment.NewLine}{Dump(src)}{Environment.NewLine}{Dump(dest)}";
System\Xml\Xsl\QIL\QilValidationVisitor.cs (1)
182message = $"{s}{Environment.NewLine}{message}";
System\Xml\Xsl\XPath\XPathCompileException.cs (1)
118message += Environment.NewLine;
System\Xml\Xsl\XslException.cs (2)
91result += $" ---> {InnerException}{Environment.NewLine} {CreateMessage(SR.Xml_EndOfInnerExceptionStack)}"; 95result += Environment.NewLine + StackTrace;
System.Runtime.Caching (3)
System\Runtime\Caching\Dbg.cs (3)
28e is ExternalException ee ? "Exception " + e + Environment.NewLine + "_hr=0x" + ee.ErrorCode.ToString("x", CultureInfo.InvariantCulture) : 42Environment.NewLine, 43exceptionMessage != null ? exceptionMessage + Environment.NewLine : "");
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSException.cs (1)
80? bs + Environment.NewLine + jsStackTrace
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (1)
495Environment.FailFast($"ReleaseCSOwnedObject expected to find registration for JSHandle: {jsHandle}, ManagedThreadId: {Environment.CurrentManagedThreadId}. {Environment.NewLine} {Environment.StackTrace}");
System.Security.Permissions (3)
System\Security\HostProtectionException.cs (3)
71sb.Append(Environment.NewLine); 72sb.Append(Environment.NewLine); 74sb.Append(Environment.NewLine);
System.ServiceModel.Primitives (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
449Environment.NewLine,
System.ServiceModel.Primitives.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
175string headerValue = header.ToString().Replace(Environment.NewLine, String.Empty).Replace(" ", String.Empty); 321name, Environment.NewLine, value, errorBuilder.ToString()));
System.Text.Json (6)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
775/// The default is the value of <see cref="Environment.NewLine"/>. 790return _newLine ??= Environment.NewLine;
System\Text\Json\Writer\JsonWriterOptions.cs (4)
16private static readonly string s_alternateNewLine = Environment.NewLine.Length == 2 ? JsonConstants.NewLineLineFeed : JsonConstants.NewLineCarriageReturnLineFeed; 142/// The default is the value of <see cref="Environment.NewLine"/>. 152get => (_optionsMask & NewLineBit) != 0 ? s_alternateNewLine : Environment.NewLine; 156if (value != Environment.NewLine)
System.Threading.Tasks.Dataflow (1)
Internal\DataflowEtwProvider.cs (1)
140try { exceptionData = string.Join(Environment.NewLine, completionTask.Exception!.InnerExceptions.Select(static e => e.ToString())); }
System.Windows.Forms (2)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
618Text = string.Join(Environment.NewLine, value);
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
179nameOfControl += $"{Environment.NewLine}\tOwnerItem: {dd.OwnerItem}";
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
76ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorInvokingAction, _methodItem!.DisplayName, Environment.NewLine + ex.Message));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
350StringBuilder builder = new(Environment.NewLine); 351builder.AppendJoin(Environment.NewLine, failures);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
751snapLineInfo = string.Join(Environment.NewLine, _testHook_RecentSnapLines) + Environment.NewLine;
System\Windows\Forms\Design\ControlDesigner.cs (1)
2500stack = string.Join(Environment.NewLine, exceptionLines.Where(l => l.Contains(typeName)));
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
187=> _textEntry.Text = string.Join(Environment.NewLine, Items);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
791&& (text.Substring(lineStartIndex, lineTextLength) == Environment.NewLine
testhost (1)
src\vstest\src\testhost.x86\TestHostTraceListener.cs (1)
43throw GetException((message + Environment.NewLine + detailMessage));
testhost.arm64 (1)
src\vstest\src\testhost.x86\TestHostTraceListener.cs (1)
43throw GetException((message + Environment.NewLine + detailMessage));
testhost.x86 (1)
TestHostTraceListener.cs (1)
43throw GetException((message + Environment.NewLine + detailMessage));
vbc (1)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (1)
278logger.Log($"Cache miss {dllName} [{hashKey}] diff vs entry [{entryName}]:{Environment.NewLine}{diff}");
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (1)
155string output = prefix + message + Environment.NewLine;
vstest.console (77)
Internal\ConsoleLogger.cs (2)
269var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, TestMessageFormattingPrefix); 270var messageText = message.Text?.Replace(Environment.NewLine, prefix).TrimEnd(TestMessageFormattingPrefix.ToCharArray());
Internal\MSBuildLogger.cs (4)
191var stackFrames = Regex.Split(result.ErrorStackTrace, Environment.NewLine); 361var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, testMessageFormattingPrefix); 362var messageText = message.Text?.Replace(Environment.NewLine, prefix).TrimEnd(testMessageFormattingPrefix.ToCharArray()); 433string[] stackFrames = Regex.Split(errorStackTrace, Environment.NewLine);
Processors\EnableCodeCoverageArgumentProcessor.cs (71)
86@" <DataCollector uri=""datacollector://microsoft/CodeCoverage/2.0"" assemblyQualifiedName=""Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=16.0.0.0 " + @", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" friendlyName=""Code Coverage"">" + Environment.NewLine + 87@" <Configuration>" + Environment.NewLine + 88@" <CodeCoverage>" + Environment.NewLine + 89@" <ModulePaths>" + Environment.NewLine + 90@" <Exclude>" + Environment.NewLine + 91@" <ModulePath>.*CPPUnitTestFramework.*</ModulePath>" + Environment.NewLine + 92@" <ModulePath>.*vstest.console.*</ModulePath>" + Environment.NewLine + 93@" <ModulePath>.*microsoft.intellitrace.*</ModulePath>" + Environment.NewLine + 94@" <ModulePath>.*testhost.*</ModulePath>" + Environment.NewLine + 95@" <ModulePath>.*datacollector.*</ModulePath>" + Environment.NewLine + 96@" <ModulePath>.*microsoft.teamfoundation.testplatform.*</ModulePath>" + Environment.NewLine + 97@" <ModulePath>.*microsoft.visualstudio.testplatform.*</ModulePath>" + Environment.NewLine + 98@" <ModulePath>.*microsoft.visualstudio.testwindow.*</ModulePath>" + Environment.NewLine + 99@" <ModulePath>.*microsoft.visualstudio.mstest.*</ModulePath>" + Environment.NewLine + 100@" <ModulePath>.*microsoft.visualstudio.qualitytools.*</ModulePath>" + Environment.NewLine + 101@" <ModulePath>.*microsoft.vssdk.testhostadapter.*</ModulePath>" + Environment.NewLine + 102@" <ModulePath>.*microsoft.vssdk.testhostframework.*</ModulePath>" + Environment.NewLine + 103@" <ModulePath>.*qtagent32.*</ModulePath>" + Environment.NewLine + 104@" <ModulePath>.*msvcr.*dll$</ModulePath>" + Environment.NewLine + 105@" <ModulePath>.*msvcp.*dll$</ModulePath>" + Environment.NewLine + 106@" <ModulePath>.*clr.dll$</ModulePath>" + Environment.NewLine + 107@" <ModulePath>.*clr.ni.dll$</ModulePath>" + Environment.NewLine + 108@" <ModulePath>.*clrjit.dll$</ModulePath>" + Environment.NewLine + 109@" <ModulePath>.*clrjit.ni.dll$</ModulePath>" + Environment.NewLine + 110@" <ModulePath>.*mscoree.dll$</ModulePath>" + Environment.NewLine + 111@" <ModulePath>.*mscoreei.dll$</ModulePath>" + Environment.NewLine + 112@" <ModulePath>.*mscoreei.ni.dll$</ModulePath>" + Environment.NewLine + 113@" <ModulePath>.*mscorlib.dll$</ModulePath>" + Environment.NewLine + 114@" <ModulePath>.*mscorlib.ni.dll$</ModulePath>" + Environment.NewLine + 115@" </Exclude>" + Environment.NewLine + 116@" </ModulePaths>" + Environment.NewLine + 117@" <UseVerifiableInstrumentation>True</UseVerifiableInstrumentation>" + Environment.NewLine + 118@" <AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>" + Environment.NewLine + 119@" <CollectFromChildProcesses>True</CollectFromChildProcesses>" + Environment.NewLine + 120@" <CollectAspDotNet>false</CollectAspDotNet>" + Environment.NewLine + 121@" <SymbolSearchPaths />" + Environment.NewLine + 122@" <Functions>" + Environment.NewLine + 123@" <Exclude>" + Environment.NewLine + 124@" <Function>^std::.*</Function>" + Environment.NewLine + 125@" <Function>^ATL::.*</Function>" + Environment.NewLine + 126@" <Function>.*::__GetTestMethodInfo.*</Function>" + Environment.NewLine + 127@" <Function>.*__CxxPureMSILEntry.*</Function>" + Environment.NewLine + 128@" <Function>^Microsoft::VisualStudio::CppCodeCoverageFramework::.*</Function>" + Environment.NewLine + 129@" <Function>^Microsoft::VisualStudio::CppUnitTestFramework::.*</Function>" + Environment.NewLine + 130@" <Function>^__empty_global_delete.*</Function>" + Environment.NewLine + 131@" </Exclude>" + Environment.NewLine + 132@" </Functions>" + Environment.NewLine + 133@" <Attributes>" + Environment.NewLine + 134@" <Exclude>" + Environment.NewLine + 135@" <Attribute>^System\.Diagnostics\.DebuggerHiddenAttribute$</Attribute>" + Environment.NewLine + 136@" <Attribute>^System\.Diagnostics\.DebuggerNonUserCodeAttribute$</Attribute>" + Environment.NewLine + 137@" <Attribute>^System\.Diagnostics\.CodeAnalysis\.ExcludeFromCodeCoverageAttribute$</Attribute>" + Environment.NewLine + 138@" <Attribute>^Microsoft\.VisualStudio\.TestPlatform\.TestSDKAutoGeneratedCode$</Attribute>" + Environment.NewLine + 139@" </Exclude>" + Environment.NewLine + 140@" </Attributes>" + Environment.NewLine + 141@" <Sources>" + Environment.NewLine + 142@" <Exclude>" + Environment.NewLine + 143@" <Source>.*\\atlmfc\\.*</Source>" + Environment.NewLine + 144@" <Source>.*\\vctools\\.*</Source>" + Environment.NewLine + 145@" <Source>.*\\public\\sdk\\.*</Source>" + Environment.NewLine + 146@" <Source>.*\\externalapis\\.*</Source>" + Environment.NewLine + 147@" <Source>.*\\microsoft sdks\\.*</Source>" + Environment.NewLine + 148@" <Source>.*\\vc\\include\\.*</Source>" + Environment.NewLine + 149@" <Source>.*\\msclr\\.*</Source>" + Environment.NewLine + 150@" <Source>.*\\ucrt\\.*</Source>" + Environment.NewLine + 151@" </Exclude>" + Environment.NewLine + 152@" </Sources>" + Environment.NewLine + 153@" <CompanyNames/>" + Environment.NewLine + 154@" <PublicKeyTokens/>" + Environment.NewLine + 155@" </CodeCoverage>" + Environment.NewLine + 156@" </Configuration>" + Environment.NewLine +
vstest.console.arm64 (77)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (2)
269var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, TestMessageFormattingPrefix); 270var messageText = message.Text?.Replace(Environment.NewLine, prefix).TrimEnd(TestMessageFormattingPrefix.ToCharArray());
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (4)
191var stackFrames = Regex.Split(result.ErrorStackTrace, Environment.NewLine); 361var prefix = string.Format(CultureInfo.CurrentCulture, "{0}{1}", Environment.NewLine, testMessageFormattingPrefix); 362var messageText = message.Text?.Replace(Environment.NewLine, prefix).TrimEnd(testMessageFormattingPrefix.ToCharArray()); 433string[] stackFrames = Regex.Split(errorStackTrace, Environment.NewLine);
src\vstest\src\vstest.console\Processors\EnableCodeCoverageArgumentProcessor.cs (71)
86@" <DataCollector uri=""datacollector://microsoft/CodeCoverage/2.0"" assemblyQualifiedName=""Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=16.0.0.0 " + @", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"" friendlyName=""Code Coverage"">" + Environment.NewLine + 87@" <Configuration>" + Environment.NewLine + 88@" <CodeCoverage>" + Environment.NewLine + 89@" <ModulePaths>" + Environment.NewLine + 90@" <Exclude>" + Environment.NewLine + 91@" <ModulePath>.*CPPUnitTestFramework.*</ModulePath>" + Environment.NewLine + 92@" <ModulePath>.*vstest.console.*</ModulePath>" + Environment.NewLine + 93@" <ModulePath>.*microsoft.intellitrace.*</ModulePath>" + Environment.NewLine + 94@" <ModulePath>.*testhost.*</ModulePath>" + Environment.NewLine + 95@" <ModulePath>.*datacollector.*</ModulePath>" + Environment.NewLine + 96@" <ModulePath>.*microsoft.teamfoundation.testplatform.*</ModulePath>" + Environment.NewLine + 97@" <ModulePath>.*microsoft.visualstudio.testplatform.*</ModulePath>" + Environment.NewLine + 98@" <ModulePath>.*microsoft.visualstudio.testwindow.*</ModulePath>" + Environment.NewLine + 99@" <ModulePath>.*microsoft.visualstudio.mstest.*</ModulePath>" + Environment.NewLine + 100@" <ModulePath>.*microsoft.visualstudio.qualitytools.*</ModulePath>" + Environment.NewLine + 101@" <ModulePath>.*microsoft.vssdk.testhostadapter.*</ModulePath>" + Environment.NewLine + 102@" <ModulePath>.*microsoft.vssdk.testhostframework.*</ModulePath>" + Environment.NewLine + 103@" <ModulePath>.*qtagent32.*</ModulePath>" + Environment.NewLine + 104@" <ModulePath>.*msvcr.*dll$</ModulePath>" + Environment.NewLine + 105@" <ModulePath>.*msvcp.*dll$</ModulePath>" + Environment.NewLine + 106@" <ModulePath>.*clr.dll$</ModulePath>" + Environment.NewLine + 107@" <ModulePath>.*clr.ni.dll$</ModulePath>" + Environment.NewLine + 108@" <ModulePath>.*clrjit.dll$</ModulePath>" + Environment.NewLine + 109@" <ModulePath>.*clrjit.ni.dll$</ModulePath>" + Environment.NewLine + 110@" <ModulePath>.*mscoree.dll$</ModulePath>" + Environment.NewLine + 111@" <ModulePath>.*mscoreei.dll$</ModulePath>" + Environment.NewLine + 112@" <ModulePath>.*mscoreei.ni.dll$</ModulePath>" + Environment.NewLine + 113@" <ModulePath>.*mscorlib.dll$</ModulePath>" + Environment.NewLine + 114@" <ModulePath>.*mscorlib.ni.dll$</ModulePath>" + Environment.NewLine + 115@" </Exclude>" + Environment.NewLine + 116@" </ModulePaths>" + Environment.NewLine + 117@" <UseVerifiableInstrumentation>True</UseVerifiableInstrumentation>" + Environment.NewLine + 118@" <AllowLowIntegrityProcesses>True</AllowLowIntegrityProcesses>" + Environment.NewLine + 119@" <CollectFromChildProcesses>True</CollectFromChildProcesses>" + Environment.NewLine + 120@" <CollectAspDotNet>false</CollectAspDotNet>" + Environment.NewLine + 121@" <SymbolSearchPaths />" + Environment.NewLine + 122@" <Functions>" + Environment.NewLine + 123@" <Exclude>" + Environment.NewLine + 124@" <Function>^std::.*</Function>" + Environment.NewLine + 125@" <Function>^ATL::.*</Function>" + Environment.NewLine + 126@" <Function>.*::__GetTestMethodInfo.*</Function>" + Environment.NewLine + 127@" <Function>.*__CxxPureMSILEntry.*</Function>" + Environment.NewLine + 128@" <Function>^Microsoft::VisualStudio::CppCodeCoverageFramework::.*</Function>" + Environment.NewLine + 129@" <Function>^Microsoft::VisualStudio::CppUnitTestFramework::.*</Function>" + Environment.NewLine + 130@" <Function>^__empty_global_delete.*</Function>" + Environment.NewLine + 131@" </Exclude>" + Environment.NewLine + 132@" </Functions>" + Environment.NewLine + 133@" <Attributes>" + Environment.NewLine + 134@" <Exclude>" + Environment.NewLine + 135@" <Attribute>^System\.Diagnostics\.DebuggerHiddenAttribute$</Attribute>" + Environment.NewLine + 136@" <Attribute>^System\.Diagnostics\.DebuggerNonUserCodeAttribute$</Attribute>" + Environment.NewLine + 137@" <Attribute>^System\.Diagnostics\.CodeAnalysis\.ExcludeFromCodeCoverageAttribute$</Attribute>" + Environment.NewLine + 138@" <Attribute>^Microsoft\.VisualStudio\.TestPlatform\.TestSDKAutoGeneratedCode$</Attribute>" + Environment.NewLine + 139@" </Exclude>" + Environment.NewLine + 140@" </Attributes>" + Environment.NewLine + 141@" <Sources>" + Environment.NewLine + 142@" <Exclude>" + Environment.NewLine + 143@" <Source>.*\\atlmfc\\.*</Source>" + Environment.NewLine + 144@" <Source>.*\\vctools\\.*</Source>" + Environment.NewLine + 145@" <Source>.*\\public\\sdk\\.*</Source>" + Environment.NewLine + 146@" <Source>.*\\externalapis\\.*</Source>" + Environment.NewLine + 147@" <Source>.*\\microsoft sdks\\.*</Source>" + Environment.NewLine + 148@" <Source>.*\\vc\\include\\.*</Source>" + Environment.NewLine + 149@" <Source>.*\\msclr\\.*</Source>" + Environment.NewLine + 150@" <Source>.*\\ucrt\\.*</Source>" + Environment.NewLine + 151@" </Exclude>" + Environment.NewLine + 152@" </Sources>" + Environment.NewLine + 153@" <CompanyNames/>" + Environment.NewLine + 154@" <PublicKeyTokens/>" + Environment.NewLine + 155@" </CodeCoverage>" + Environment.NewLine + 156@" </Configuration>" + Environment.NewLine +