44 overrides of Message
Aspire.Hosting (1)
dotnet-svcutil-lib (5)
ILCompiler.TypeSystem (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.Build (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.Extensions.Options (1)
Microsoft.TemplateEngine.Cli (1)
MSBuild (2)
PresentationFramework (1)
System.ComponentModel.Composition (1)
System.Configuration.ConfigurationManager (1)
System.Diagnostics.EventLog (1)
System.DirectoryServices (2)
System.Net.Http (2)
System.Net.NameResolution (1)
System.Net.Primitives (1)
System.Net.Requests (1)
System.Net.Security (1)
System.Net.Sockets (1)
System.Private.CoreLib (10)
System.Private.Xml (4)
System.ServiceModel.Primitives (1)
System.Text.Json (1)
System.Xaml (1)
3564 references to Message
aspire (126)
Commands\RunCommand.cs (7)
626Telemetry.RecordError(ex.Message, ex);
632var errorMessage = string.Format(CultureInfo.CurrentCulture, TemplatingStrings.CertificateTrustError, ex.Message);
644var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.ErrorConnectingToAppHost, ex.Message);
660var errorMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
819? string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, faultException.Message)
830throw new OperationCanceledException(ex.Message, ex, cancellationToken);
851var failureMessage = string.Format(CultureInfo.CurrentCulture, InteractionServiceStrings.UnexpectedErrorOccurred, ex.Message);
aspire-managed (6)
Aspire.Acquisition.Tests (2)
Aspire.Azure.AI.OpenAI.Tests (4)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.Cli.EndToEnd.Tests (17)
Aspire.Cli.Tests (136)
Agents\AspireSkillsBundleTests.cs (18)
131Assert.Contains("failed SHA-512 verification", exception.Message);
217Assert.Contains("SHA-512 or SHA-256", exception.Message, StringComparison.Ordinal);
237Assert.Equal("Aspire skills bundle manifest is invalid.", exception.Message);
263Assert.Equal("Aspire skills bundle manifest contains an empty skill entry.", exception.Message);
296Assert.Equal("Aspire skills bundle skill 'aspire' contains an empty file entry.", exception.Message);
318Assert.Contains("description", exception.Message, StringComparison.OrdinalIgnoreCase);
319Assert.Contains("1024", exception.Message, StringComparison.Ordinal);
351Assert.Contains("duplicate skill", exception.Message, StringComparison.OrdinalIgnoreCase);
380Assert.Contains("must define a frontmatter name", exception.Message, StringComparison.Ordinal);
403Assert.Contains("must match its manifest and directory name", exception.Message, StringComparison.Ordinal);
451Assert.Contains("must be 1-64 characters", exception.Message, StringComparison.Ordinal);
474Assert.Contains("must contain SKILL.md", exception.Message);
497Assert.Contains("cannot exclude SKILL.md", exception.Message);
540Assert.Contains("is not safe", exception.Message);
594Assert.Contains("is not safe", exception.Message);
624Assert.Contains("is not safe", exception.Message);
714Assert.Contains("supported Aspire versions", exception.Message);
737Assert.Contains("supports Aspire CLI versions", exception.Message);
Mcp\ExecuteResourceCommandToolTests.cs (7)
48Assert.Contains("No Aspire AppHost", exception.Message);
49Assert.Contains("aspire start", exception.Message);
133Assert.Contains("must be a JSON object", exception.Message);
152Assert.Contains("must be a string, number, boolean, or null", exception.Message);
251Assert.Contains("cancelled", exception.Message);
291Assert.Contains("Missing required arguments", exception1.Message);
298Assert.Contains("Missing required arguments", exception2.Message);
Projects\ProjectLocatorTests.cs (13)
496Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
647Assert.Equal(ErrorStrings.AppHostsMayNotBeBuildable, ex.Message);
678Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
710Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
1375Assert.Equal(ErrorStrings.NoProjectFileFound, ex.Message);
1984Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
2055Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
2300Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
2364Assert.Equal(ErrorStrings.AppHostsMayNotBeBuildable, ex.Message);
2411Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
2539Assert.Equal(ErrorStrings.ProjectFileDoesntExist, ex.Message);
4046Assert.Skip($"Cannot create symbolic links in this environment: {ex.Message}");
4050Assert.Skip($"Symbolic link creation failed in this environment: {ex.Message}");
Projects\TypeScriptAppHostToolchainResolverTests.cs (3)
46Assert.Equal($"Yarn Classic is not supported for TypeScript AppHosts. Upgrade 'yarn@1.22.22' in {packageJsonPath} to Yarn 4 or later, or use npm, pnpm, or Bun.", exception.Message);
70Assert.Equal($"Yarn Classic is not supported for TypeScript AppHosts. Upgrade the Yarn lockfile at {yarnLockPath} to Yarn 4 or later, or use npm, pnpm, or Bun.", exception.Message);
86Assert.Equal($"Yarn Classic is not supported for TypeScript AppHosts. Upgrade the Yarn lockfile at {yarnLockPath} to Yarn 4 or later, or use npm, pnpm, or Bun.", exception.Message);
Aspire.Dashboard (16)
Aspire.Dashboard.Components.Tests (5)
Aspire.Dashboard.Tests (22)
Aspire.Deployment.EndToEnd.Tests (173)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (32)
Aspire.Hosting.Azure (16)
Aspire.Hosting.Azure.ContainerRegistry (2)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Kubernetes (2)
Aspire.Hosting.Azure.Kubernetes.Tests (13)
Aspire.Hosting.Azure.Tests (51)
AzureBicepProvisionerTests.cs (6)
146Assert.Contains("Azure principal parameter was not supplied", exception.Message);
456Assert.Contains("Azure__Location", exception.Message, StringComparison.Ordinal);
535Assert.Contains("Azure__Location", exception.Message, StringComparison.Ordinal);
1421Assert.Contains(ResourcesProvisioningState.Failed.ToString(), exception.Message);
1659Assert.Contains(resource.Name, exception.Message, StringComparison.Ordinal);
1684Assert.Contains(resource.Name, exception.Message, StringComparison.Ordinal);
AzureContainerAppsTests.cs (11)
860Assert.Equal("Automatic Key vault generation is not supported in this environment. Please create a key vault resource directly.", ex.Message);
1198Assert.Equal("The endpoint(s) 'foo' specify an unsupported transport. The supported transports are 'http', 'http2', and 'tcp'.", ex.Message);
1220Assert.Equal("Multiple external endpoints are not supported", ex.Message);
1240Assert.Equal("External non-HTTP(s) endpoints are not supported", ex.Message);
1261Assert.Equal("HTTP(s) and TCP endpoints cannot be mixed", ex.Message);
1814Assert.Contains("there are no 'AzureContainerAppEnvironmentResource' resources", ex.Message);
2014exception.Message);
2189exception.Message);
2218exception.Message);
2245Assert.Contains("'azd' resolve to 'cae-${resourceToken}'", exception.Message);
2246Assert.Contains("'cae' resolve to take('cae-${uniqueString(resourceGroup().id)}', 60)", exception.Message);
Aspire.Hosting.Blazor (2)
Aspire.Hosting.Blazor.Tests (1)
Aspire.Hosting.Browsers (6)
Aspire.Hosting.Browsers.Tests (17)
Aspire.Hosting.CodeGeneration.Rust.Tests (4)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (8)
Aspire.Hosting.Containers.Tests (4)
Aspire.Hosting.DevTunnels (5)
Aspire.Hosting.DevTunnels.Tests (4)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Docker.Tests (2)
Aspire.Hosting.Dotnet (1)
Aspire.Hosting.Dotnet.Tests (2)
Aspire.Hosting.EntityFrameworkCore (3)
Aspire.Hosting.EntityFrameworkCore.Tests (11)
Aspire.Hosting.Foundry (5)
Aspire.Hosting.Foundry.Tests (5)
Aspire.Hosting.GitHub.Models (1)
Aspire.Hosting.Java.Tests (46)
AddJavaAppPublishTests.cs (29)
159Assert.Contains("../agents/opentelemetry-javaagent.jar", exception.Message);
160Assert.Contains("outside the application directory", exception.Message);
209Assert.Contains("is a Windows path", exception.Message, StringComparison.Ordinal);
247Assert.Contains("there is no gradlew", ex.Message);
248Assert.Contains("gradle wrapper", ex.Message);
292Assert.Contains(jarPath, exception.Message);
293Assert.Contains("outside the directory the build runs in", exception.Message);
450exception.Message);
788exception.Message);
871Assert.Contains("there is no mvnw", ex.Message);
872Assert.Contains("mvn -N wrapper:wrapper", ex.Message);
894Assert.Contains("is outside the build context", ex.Message);
915Assert.Contains("is outside the build context", ex.Message);
938Assert.Contains("is outside the build context", ex.Message);
1023Assert.Contains("Windows batch script", ex.Message);
1050Assert.Contains($"{supportDirectory}/wrapper/{propertiesName}", ex.Message);
1617Assert.Contains(jarPath, exception.Message, StringComparison.Ordinal);
1618Assert.Contains("contains whitespace", exception.Message, StringComparison.Ordinal);
1634Assert.Contains("target/otel agents/javaagent.jar", exception.Message, StringComparison.Ordinal);
1635Assert.Contains("contains whitespace", exception.Message, StringComparison.Ordinal);
1752Assert.Contains("contains whitespace", ex.Message, StringComparison.Ordinal);
1901Assert.Contains("../shared/worker.jar", exception.Message, StringComparison.Ordinal);
1923Assert.Contains(jarPath, exception.Message, StringComparison.Ordinal);
1924Assert.Contains("outside the directory the build runs in", exception.Message, StringComparison.Ordinal);
1939Assert.Contains("outside the build context", exception.Message, StringComparison.Ordinal);
1954Assert.Contains("outside the build context", exception.Message, StringComparison.Ordinal);
2002Assert.Contains("its working directory was changed", exception.Message, StringComparison.Ordinal);
2003Assert.Contains(elsewhere.FullName, exception.Message, StringComparison.Ordinal);
2004Assert.Contains(sourceDir.FullName, exception.Message, StringComparison.Ordinal);
Aspire.Hosting.JavaScript.Tests (16)
AddJavaScriptAppTests.cs (16)
205Assert.Contains("runScriptName", exception.Message);
206Assert.Contains("WithRunScript", exception.Message);
207Assert.Contains("Dockerfile", exception.Message);
224Assert.Contains("runScriptName", exception.Message);
225Assert.Contains("WithRunScript", exception.Message);
226Assert.Contains("Dockerfile", exception.Message);
242Assert.Contains("runScriptName", exception.Message);
243Assert.Contains("WithRunScript", exception.Message);
244Assert.Contains("Dockerfile", exception.Message);
269Assert.Contains("runScriptName", exception.Message);
270Assert.Contains("WithRunScript", exception.Message);
271Assert.Contains("Dockerfile", exception.Message);
339Assert.Contains("run script 'dev'", exception.Message);
340Assert.Contains("with args [--port, 8080]", exception.Message);
341Assert.Contains("Dockerfile", exception.Message);
530exception.Message);
Aspire.Hosting.Kubernetes (3)
Aspire.Hosting.Kubernetes.Tests (31)
HelmVersionValidatorTests.cs (6)
58Assert.Contains(trimmed, ex.Message, StringComparison.Ordinal);
59Assert.Contains(HelmVersionValidator.MinimumHelmVersion.ToString(), ex.Message, StringComparison.Ordinal);
60Assert.Contains("https://helm.sh/docs/intro/install/", ex.Message, StringComparison.Ordinal);
70Assert.Contains("garbage banner", ex.Message, StringComparison.Ordinal);
71Assert.Contains(HelmVersionValidator.MinimumHelmVersion.ToString(), ex.Message, StringComparison.Ordinal);
86Assert.Contains("https://helm.sh/docs/intro/install/", ex.Message, StringComparison.Ordinal);
Aspire.Hosting.Maui.Tests (13)
Aspire.Hosting.OpenAI (1)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Radius (2)
Aspire.Hosting.Radius.Tests (105)
Publishing\ConfigureRadiusInfrastructureTests.cs (22)
328Assert.Contains("api", ex.Message);
329Assert.Contains("renamed", ex.Message);
379Assert.Contains("api", ex.Message);
380Assert.Contains("non-literal", ex.Message);
409Assert.Contains("http", ex.Message);
410Assert.Contains("5000", ex.Message);
411Assert.Contains("9999", ex.Message);
435Assert.Contains("http", ex.Message);
436Assert.Contains("removed", ex.Message);
465Assert.Contains("http", ex.Message);
466Assert.Contains("TCP", ex.Message);
467Assert.Contains("UDP", ex.Message);
496Assert.Contains("http", ex.Message);
497Assert.Contains("non-literal", ex.Message);
546Assert.Contains("api", ex.Message);
547Assert.Contains("removed or replaced", ex.Message);
577Assert.Contains($"{longName}-{longName}", ex.Message);
578Assert.Contains("63", ex.Message);
601Assert.Contains($"{longName}-{longName}", ex.Message);
602Assert.Contains("63", ex.Message);
632Assert.Contains("api", ex.Message);
633Assert.Contains("5000/TCP", ex.Message);
Secrets\SealedSecretApplyStepTests.cs (21)
281Assert.Contains("db-creds", ex.Message);
435Assert.Contains("ASPIRERADIUS058", ex.Message);
436Assert.Contains("no key could decrypt secret", ex.Message);
452Assert.Contains("ASPIRERADIUS058", ex.Message);
453Assert.Contains("--update-status=false", ex.Message);
454Assert.Contains("updateStatus: false", ex.Message);
455Assert.Contains("app/db-creds", ex.Message);
512Assert.Contains("ASPIRERADIUS058", ex.Message);
535Assert.Contains("ASPIRERADIUS058", ex.Message);
586Assert.Contains("ASPIRERADIUS058", ex.Message);
587Assert.Contains("app/db-creds", ex.Message);
588Assert.Contains("db-creds", ex.Message);
812Assert.Contains("ASPIRERADIUS066", ex.Message);
813Assert.Contains("apply", ex.Message);
844Assert.Contains("ASPIRERADIUS066", ex.Message);
845Assert.Contains("verify", ex.Message);
846Assert.Contains("db-creds", ex.Message);
847Assert.Contains("app/db-creds", ex.Message);
872Assert.Contains("ASPIRERADIUS059", ex.Message);
873Assert.Contains("~/.rad/config.yaml", ex.Message);
874Assert.Contains("ASPIRE_RADIUS_KUBE_CONTEXT", ex.Message);
Secrets\SealedSecretManifestTests.cs (30)
97Assert.Contains("ASPIRERADIUS044", ex.Message);
115Assert.Contains("ASPIRERADIUS044", ex.Message);
137Assert.Contains("ASPIRERADIUS044", ex.Message);
158Assert.Contains("ASPIRERADIUS044", ex.Message);
178Assert.Contains("ASPIRERADIUS044", ex.Message);
179Assert.Contains("plaintext", ex.Message);
194Assert.Contains("ASPIRERADIUS044", ex.Message);
209Assert.Contains("ASPIRERADIUS044", ex.Message);
229Assert.Contains("ASPIRERADIUS044", ex.Message);
230Assert.Contains("multiple YAML", ex.Message);
254Assert.Contains("ASPIRERADIUS044", ex.Message);
255Assert.Contains("multiple YAML", ex.Message);
384Assert.Contains("ASPIRERADIUS044", ex.Message);
407Assert.Contains("ASPIRERADIUS063", ex.Message);
430Assert.Contains("ASPIRERADIUS063", ex.Message);
451Assert.Contains("ASPIRERADIUS063", ex.Message);
476Assert.Contains("ASPIRERADIUS063", ex.Message);
498Assert.Contains("ASPIRERADIUS063", ex.Message);
519Assert.Contains("ASPIRERADIUS044", ex.Message);
543Assert.Contains("ASPIRERADIUS063", ex.Message);
564Assert.Contains("ASPIRERADIUS063", ex.Message);
654Assert.Contains("ASPIRERADIUS063", ex.Message);
676Assert.Contains("ASPIRERADIUS063", ex.Message);
698Assert.Contains("ASPIRERADIUS063", ex.Message);
720Assert.Contains("ASPIRERADIUS063", ex.Message);
779Assert.Contains("ASPIRERADIUS044", ex.Message);
780Assert.Contains("spec.encryptedData", ex.Message);
814Assert.Contains("ASPIRERADIUS044", ex.Message);
815Assert.Contains("spec.encryptedData", ex.Message);
855Assert.Contains("ASPIRERADIUS063", ex.Message);
Aspire.Hosting.RemoteHost (18)
Aspire.Hosting.RemoteHost.Tests (57)
CapabilityDispatcherTests.cs (39)
117Assert.Contains("Handler failed", ex.Message);
169Assert.Contains("A parameter value is required", ex.Message);
227Assert.Contains("The value is invalid", ex.Message);
283Assert.Contains("context", ex.Message);
525Assert.Contains("value", ex.Message);
883Assert.Contains("callback", ex.Message.ToLower());
930Assert.Contains("Async error", ex.Message);
1491Assert.Contains("only supports string-key dictionaries", ex.Message);
1755Assert.Contains("parameter 'context'", ex.Message);
1756Assert.Contains("TestResourceWithProperties", ex.Message);
1779Assert.Contains("Could not invoke 'withReference' on resource 'frontend'", ex.Message);
1780Assert.Contains("parameter 'source' expects a resource builder for a resource with a connection string", ex.Message);
1781Assert.Contains("a resource builder for a TestResourceWithProperties named 'backend'", ex.Message);
1782Assert.DoesNotContain("Aspire.Hosting.", ex.Message);
1802Assert.Contains("Could not invoke 'withEndpoint' on resource 'api'", ex.Message);
1803Assert.Contains("Multiple calls to withEndpoint can conflict.", ex.Message);
1804Assert.DoesNotContain("WithEndpoint", ex.Message);
1824Assert.Contains("Endpoint with name 'http' already exists on resource 'officiator'.", ex.Message);
1825Assert.Contains("Multiple calls to withEndpoint", ex.Message);
1826Assert.DoesNotContain("WithEndpoint", ex.Message);
1846Assert.Contains("expects a resource builder for a resource with endpoints", ex.Message);
1847Assert.Contains("got resource 'officiator'", ex.Message);
1867Assert.Contains("expects a resource builder for a resource with endpoints", ex.Message);
1868Assert.Contains("got a resource builder for a TestResourceWithProperties named 'backend'", ex.Message);
1894Assert.Contains("Could not invoke 'setColor' on resource 'frontend'", ex.Message);
1895Assert.Contains("parameter 'value' expects a string", ex.Message);
1896Assert.Contains("named 'backend'", ex.Message);
1949Assert.Equal("Could not invoke 'withEndpoint' on resource 'orders': withEndpoint failed. Try again.", capabilityException.Message);
1950Assert.DoesNotContain("WithEndpoint", capabilityException.Message);
1977capabilityException.Message);
1978Assert.DoesNotContain('\r', capabilityException.Message);
2005Assert.Contains("Could not invoke 'withReference' on resource 'frontend'", capabilityException.Message);
2006Assert.Contains("resource builder for a TestResourceWithProperties named 'backend'", capabilityException.Message);
2026Assert.Equal("Could not invoke 'createGlobal': createGlobal failed.", capabilityException.Message);
2027Assert.DoesNotContain("on resource", capabilityException.Message);
2057Assert.DoesNotContain("dotnet dev-certs", capabilityException.Message);
2058Assert.DoesNotContain("go.microsoft.com/fwlink", capabilityException.Message);
2059Assert.Contains("aspire certs trust", capabilityException.Message);
2060Assert.Contains("https://aspire.dev/docs/", capabilityException.Message);
Aspire.Hosting.Rust (1)
Aspire.Hosting.Rust.Tests (13)
Aspire.Hosting.Sdk.Tests (4)
Aspire.Hosting.Tasks (4)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (11)
Aspire.Hosting.Tests (212)
Dcp\DcpExecutorTests.cs (16)
468Assert.Contains("container tunnel container name", ex.Message);
490Assert.Contains("container tunnel container name", ex.Message);
512Assert.Contains("container tunnel container name", ex.Message);
762Assert.Contains("cannot be proxied when both TargetPort and Port are specified with the same value", exception.Message);
1448Assert.Contains(tc.ErrorMessageFragment, exception.Message);
3672Assert.Contains(tc.ErrorMessageFragment, exception.Message);
4145Assert.Equal($"Failed to delete '{dcpCtr.Metadata.Name}' successfully before restart.", ex.Message);
4148Assert.Equal(ex.Message, failedContext.ErrorMessage);
5151Assert.Equal("Resource 'project' uses multiple replicas and a persistent lifetime. These features do not work together.", exception.Message);
5169Assert.Equal("Resource 'worker' uses multiple replicas and a persistent lifetime. These features do not work together.", exception.Message);
5561Assert.Equal(expectedMessage, exception.Message);
5563Assert.Equal(innerMessage, innerException.Message);
8591Assert.Contains("Failed to apply launch configuration", exception.Message);
8592Assert.Contains("does not retry launch configuration failures using DCP process fallback", exception.Message);
8723Assert.Contains("Failed to apply launch configuration", exception.Message);
8724Assert.Contains("does not retry launch configuration failures using DCP process fallback", exception.Message);
EndpointReferenceTests.cs (14)
222Assert.Equal("The endpoint `http` is not allocated for the resource `test`.", ex.Message);
235Assert.Equal("The endpoint `http` is not allocated for the resource `test`.", ex.Message);
248Assert.Equal("The endpoint `http` is not allocated for the resource `test`.", ex.Message);
421Assert.Contains("`https`", ex.Message);
422Assert.Contains("`api-boston`", ex.Message);
423Assert.Contains("Available endpoints", ex.Message);
424Assert.Contains("`http`", ex.Message);
437Assert.Contains("`https`", ex.Message);
438Assert.Contains("`http`", ex.Message);
439Assert.Contains("`grpc`", ex.Message);
450Assert.Contains("`https`", ex.Message);
451Assert.Contains("`api`", ex.Message);
452Assert.Contains("no endpoints defined", ex.Message);
464Assert.Equal("custom message", ex.Message);
Pipelines\DistributedApplicationPipelineTests.cs (37)
327Assert.Contains("A step with the name 'step1' has already been added", ex.Message);
328Assert.Contains("step1", ex.Message);
342Assert.Contains("depends on unknown step", ex.Message);
343Assert.Contains("unknown-step", ex.Message);
357Assert.Contains("required by unknown step", ex.Message);
358Assert.Contains("unknown-step", ex.Message);
387Assert.Contains("Circular dependency", ex.Message);
388Assert.Contains("step1", ex.Message);
389Assert.Contains("step2", ex.Message);
408Assert.Contains("failing-step", ex.Message);
409Assert.Contains("failed", ex.Message);
411Assert.Equal(exceptionMessage, ex.InnerException.Message);
555Assert.Contains("Step 'step1' is required by unknown step 'unknown-step'", exception.Message);
576Assert.Contains("Step 'step2' is required by unknown step 'unknown-step'", exception.Message);
611Assert.Contains("A step with the name 'step1' has already been added to the pipeline", exception.Message);
637Assert.Contains("Duplicate step name", exception.Message);
638Assert.Contains("duplicate-step", exception.Message);
659Assert.Contains("failing-step", exception.Message);
699Assert.Contains("failing-dependency", ex.Message);
700Assert.Contains("failed", ex.Message);
738Assert.Contains("Circular dependency", ex.Message);
740Assert.True(ex.Message.Contains("stepA") || ex.Message.Contains("stepB") || ex.Message.Contains("stepC"),
896Assert.Contains("failing-step", ex.Message);
897Assert.Contains("failed", ex.Message);
1831Assert.Contains("Step 'non-existent-step' not found in pipeline", ex.Message);
1832Assert.Contains("Available steps:", ex.Message);
1833Assert.Contains("'step1'", ex.Message);
1834Assert.Contains("'step2'", ex.Message);
1835Assert.Contains("'step3'", ex.Message);
2145Assert.Contains("no container registry is available", exception.Message);
2146Assert.Contains("test-project", exception.Message);
2166Assert.Contains("no container registry is available", exception.Message);
2167Assert.Contains("test-project", exception.Message);
2194Assert.Contains("Destination set to Archive but OutputPath is not configured", exception.Message);
2195Assert.Contains("test-project", exception.Message);
Aspire.Hosting.TestUtilities (6)
Aspire.Keycloak.Authentication.Tests (4)
Aspire.Managed.Tests (4)
Aspire.Microsoft.Azure.Cosmos.Tests (5)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (4)
Aspire.MongoDB.EntityFrameworkCore.Tests (3)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.OpenAI.Tests (5)
Aspire.Oracle.EntityFrameworkCore.Tests (4)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (4)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v6.Tests (1)
Aspire.Templates.Tests (5)
Aspire.TerminalHost (1)
Aspire.TerminalHost.Tests (13)
Aspire.TestUtilities (1)
CatalogDb (1)
Client.ClientBase.IntegrationTests (1)
Client.ExpectedExceptions.IntegrationTests (13)
ExpectedExceptionTests.4.1.0.cs (10)
51Assert.True(exception.Message.Contains(nonExistentHost), string.Format("Expected exception message to contain: '{0}'\nThe exception message was: {1}", nonExistentHost, exception.Message));
114string exceptionMessage = ex.Message;
115string innerExceptionMessage = ex.InnerException?.Message;
184Assert.True(exception.Message.Contains(notFoundUrl), string.Format("Expected exception message to contain: '{0}'\nThe exception message was:{1}", notFoundUrl, exception.Message));
222Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format("Expected exception message to contain: '{0}'\nThe exception was: '{1}'", protocolExceptionUri, exception.Message));
408Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
455Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
CodeStyleConfigFileGenerator (2)
Contract.XmlSerializer.IntegrationTests (10)
Crossgen2Tasks (1)
csc (4)
dotnet (72)
dotnet-aot (20)
dotnet-dev-certs (15)
dotnet-format (2)
dotnet-getdocument (1)
dotnet-Microsoft.XmlSerializer.Generator (2)
dotnet-openapi (2)
dotnet-sourcelink (2)
dotnet-sql-cache (4)
dotnet-svcutil-lib (122)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (2)
553throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
571throw new XmlSchemaException(ResXml.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
370throw new XmlSchemaException(ResXml.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
676throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (4)
571SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema);
2028SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle);
2071SendValidationEvent(ResXml.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute);
2145SendValidationEvent(ResXml.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (6)
1307SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1505SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception);
1667SendValidationEvent(ResXml.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1882SendValidationEvent(ResXml.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1986SendValidationEvent(ResXml.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), stringValue, GetTypeName(decl), exception.Message }, exception);
2001SendValidationEvent(ResXml.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName, _context.Namespace), stringValue, GetTypeName(decl), exception.Message }, exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
240string.Format(SRServiceModel.SFxInvalidMessageBodyErrorSerializingParameter, part.Description.Namespace, part.Description.Name, sx.Message), sx));
436part.Description.Namespace, part.Description.Name, e.Message),
444part.Description.Namespace, part.Description.Name, e.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
149string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe));
154string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se));
214string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message),
220string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
400string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe));
405string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se));
442string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message),
448string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
dotnet-svcutil-lib.Tests (2)
dotnet-svcutil.xmlserializer (8)
dotnet-svcutil.xmlserializer.IntegrationTests (10)
dotnet-user-jwts (3)
dotnet-user-secrets (3)
dotnet-watch (4)
EventHubsConsumer (1)
GenerateDocumentationAndConfigFiles (16)
GetDocument.Insider (1)
ilasm (2)
ILAssembler (1)
ILCompiler.Compiler (4)
ILCompiler.ReadyToRun (2)
illink (2)
Infrastructure.Common (2)
Infrastructure.IntegrationTests (1)
Infrastructure.Tests (6)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (14)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Identity (5)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.JsonPatch (2)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Microsoft.AspNetCore.Mvc.Abstractions (4)
Microsoft.AspNetCore.Mvc.Core (10)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Microsoft.AspNetCore.Server.Kestrel.Core (39)
Internal\Http3\Http3Connection.cs (5)
178session.Value.Abort(new ConnectionAbortedException(ex.Message, ex.InnerException), errorCode);
182session.Value.Abort(new ConnectionAbortedException(ex.Message), errorCode);
456Log.Http3StreamAbort(CoreStrings.FormatUnidentifiedStream(ex.StreamId), Http3ErrorCode.StreamCreationError, new(ex.Message));
746Abort(new ConnectionAbortedException(connectionError.Message, connectionError), connectionError.ErrorCode, ConnectionEndReason.ClosedCriticalStream);
875Abort(new ConnectionAbortedException(ex.Message, ex), ex.ErrorCode, ex.Reason);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (13)
Internal\QuicStreamContext.cs (8)
282error = new ConnectionResetException(ex.Message, ex);
292error = new ConnectionResetException(ex.Message, ex);
297error = new ConnectionAbortedException(ex.Message, ex);
444shutdownReason = new ConnectionResetException(ex.Message, ex);
454shutdownReason = new ConnectionResetException(ex.Message, ex);
461shutdownReason = new ConnectionResetException(ex.Message, ex);
508QuicLog.StreamAbort(_log, this, resolvedErrorCode, abortReason.Message);
532QuicLog.StreamShutdownWrite(_log, this, _shutdownReason.Message);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Common (4)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Microsoft.AspNetCore.SignalR.Specification.Tests (7)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.Build (108)
Evaluation\Evaluator.cs (5)
381ex.Message);
1903ProjectErrorUtilities.ThrowInvalidProject(importElement.SdkLocation, "SDKResolverCriticalFailure", e.Message);
2162ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message);
2207ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message);
2425importFileUnescaped, ex.InnerException.Message);
Evaluation\Expander.Function.cs (4)
526ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message.Replace("\r\n", " "));
597ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.InnerException.Message.Replace("\r\n", " "));
608ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionStaticMethodSyntax", _expression, ex.Message.Replace("Microsoft.Build.Evaluation.IntrinsicFunctions.", "[MSBuild]::"));
614ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidFunctionPropertyExpression", partiallyEvaluated, ex.Message);
Evaluation\Expander.ItemExpander.Transforms.cs (10)
130ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message);
190ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message);
286ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message);
367ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message);
415ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
815ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
855ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
893ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
934ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", metadataName, ex.Message);
991ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "CannotEvaluateItemMetadata", match.Name, ex.Message);
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
281targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, exception.Message);
294ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, loadInfo.AssemblyLocation, e.Message);
478targetLoggingContext.LogError(new BuildEventFileInfo(taskProjectFile), "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, exception.Message);
498ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "TaskLoadFailure", taskName, _loadedType.Assembly.AssemblyLocation, e.Message);
Microsoft.Build.Framework (16)
Microsoft.Build.NuGetSdkResolver (4)
Microsoft.Build.Tasks.CodeAnalysis (11)
Microsoft.Build.Tasks.Core (135)
AssemblyDependency\ReferenceTable.cs (8)
522reference.AddError(new DependencyResolutionException(e.Message, e));
706reference.AddError(new BadImageReferenceException(e.Message, e));
928throw new InvalidParameterValueException("AssemblyFiles", referenceAssemblyFile.ItemSpec, e.Message);
1020_log?.LogErrorFromResources("ResolveAssemblyReference.ProblemFindingSatelliteAssemblies", reference.FullPath, e.Message);
1230reference.AddError(new DependencyResolutionException(e.Message, e));
1234reference.AddError(new DependencyResolutionException(e.Message, e));
1802reference.AddError(new DependencyResolutionException(e.Message, e));
2946_log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemReadingImplementationDll", dllPath, e.Message);
AssemblyDependency\ResolveAssemblyReference.cs (11)
1675throw new InvalidParameterValueException("CandidateAssemblyFiles", file, e.Message);
1877message = Log.FormatResourceString("ResolveAssemblyReference.FailedToResolveReference", itemError.Message);
1883message = Log.FormatResourceString("ResolveAssemblyReference.FailedToFindDependentFiles", itemError.Message);
1889message = Log.FormatResourceString("ResolveAssemblyReference.FailedWithException", itemError.Message);
2473Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblyTablesFile", filename, RedistList.RedistListFolder, e.Message);
2483Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblySubsetTablesFile", filename, SubsetListFinder.SubsetListFolder, e.Message);
2561Log.LogErrorWithCodeFromResources(null, e.FileName, e.Line, e.Column, 0, 0, "ResolveAssemblyReference.InvalidAppConfig", _appConfigFile.OriginalValue, e.Message);
2649Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2685Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message);
2861"ResolveAssemblyReference.InvalidParameter", e.ParamName, e.ActualValue, e.Message);
3008Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidProfileRedistLocation", filename, RedistList.RedistListFolder, e.Message);
BootstrapperUtil\BootstrapperBuilder.cs (8)
251_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.General", ex.Message));
379_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message));
384_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message));
394_results.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyError", setupSourceFile, strOutputExe, ex.Message));
1058Debug.Fail(ex.Message);
1485_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message));
1491_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message));
1503_results?.AddMessage(BuildMessage.CreateMessage(BuildMessageSeverity.Error, "GenerateBootstrapper.CopyPackageError", packageFileSource.Value, builder.Name, ex.Message));
Copy.cs (3)
988Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message);
993Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue, e.Message);
1084destinationFileState.Path.OriginalValue, retries, RetryDelayMilliseconds, e.Message,
Delete.cs (3)
159Log.LogWarningWithCodeFromResources("Delete.Retrying", filePath?.OriginalValue ?? file.ItemSpec, retries, RetryDelayMilliseconds, e.Message, lockedFileMessage);
168Log.LogWarningWithCodeFromResources("Delete.Error", filePath?.OriginalValue ?? file.ItemSpec, e.Message, lockedFileMessage);
172Log.LogErrorWithCodeFromResources("Delete.Error", filePath?.OriginalValue ?? file.ItemSpec, e.Message, lockedFileMessage);
FileIO\WriteLinesToFile.cs (4)
160Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, e.Message, lockedFileMessage);
196filePath.OriginalValue, attempt, maxAttempts, lastException.Message);
216Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, e.Message, lockedFileMessage);
258Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", filePath.OriginalValue, e.Message, lockedFileMessage);
GenerateResource.cs (11)
1558Log.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", item.ItemSpec, e.Message);
1717Log.LogErrorWithCodeFromResources("GenerateResource.CannotWriteSTRFile", StronglyTypedFileName, e.Message);
2697"GenerateResource.MessageTunnel", tfe.Message);
2714"General.InvalidResxFile", e.Message);
2725"General.InvalidResxFile", e.Message);
2810_stronglyTypedFilename, e.Message);
2833FileUtilities.GetFullPathNoThrow(currentOutputFile), io.Message);
2867FileUtilities.GetFullPathNoThrow(inFile), e.Message); // Input file is more useful to log
2878FileUtilities.GetFullPathNoThrow(currentOutputFile), e.Message);
2963_logger.LogWarningWithCodeFromResources("GenerateResource.DeleteCorruptOutputFailed", FileUtilities.GetFullPathNoThrow(filename), deleteException.Message);
3604logger.LogErrorWithCodeFromResources("GenerateResource.STRCodeDomProviderFailed", stronglyTypedLanguage, e.Message);
Touch.cs (5)
87Log.LogErrorWithCodeFromResources("Touch.TimeSyntaxIncorrect", e.Message);
193Log.LogErrorWithCodeFromResources("Touch.CannotCreateFile", file.OriginalValue, e.Message);
266Log.LogErrorWithCodeFromResources("Touch.CannotMakeFileWritable", file.OriginalValue, e.Message, lockedFileMessage);
282Log.LogErrorWithCodeFromResources("Touch.CannotTouch", file.OriginalValue, e.Message, lockedFileMessage);
297Log.LogErrorWithCodeFromResources("Touch.CannotRestoreAttributes", file.OriginalValue, e.Message);
Untar.cs (7)
191Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotOpenFile", sourceFile.FullName, e.Message);
201Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotOpenFile", sourceFile.FullName, e.Message);
226Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotCreateDestinationDirectory", destinationFolderPath, e.Message);
308Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotCreateDestinationDirectory", destinationPath.FullName, e.Message);
338Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message);
351Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotMakeFileWriteable", entryName, destinationPath.FullName, e.Message, lockedFileMessage);
373Log.LogErrorWithCodeFromResources("Untar.ErrorCouldNotExtractFile", entryName, destinationPath.FullName, e.Message);
Unzip.cs (5)
99Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", DestinationFolder.ItemSpec, e.Message);
159Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotOpenFile", sourceFile.ItemSpec, e.Message);
228Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message);
241Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage);
291Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message);
WriteCodeFragment.cs (4)
139Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotWriteOutput", itemSpec, ex.Message, lockedFileMessage);
176Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotCreateProvider", Language, e.Message);
578Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotConvertValue", rawValue, typeName, ex.Message);
608Log.LogMessageFromResources("WriteCodeFragment.CouldNotConvertToInferredType", parameterName, inferredType.Name, ex.Message);
Microsoft.Build.Tasks.Git (6)
Microsoft.Build.Utilities.Core (17)
Microsoft.CodeAnalysis (63)
Compilation\Compilation.cs (10)
2047diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2052diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2073diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, Location.None, ex.Message));
2128diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_BadWin32Resource, NoLocation.Singleton, ex.Message));
3353diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, ex.Message));
3363diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_CantReadResource, Location.None, e.Message, e.InnerException?.Message ?? ""));
3368diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
3590diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PdbWritingFailed, Location.None, e.Message));
3600diagnostics.Add(MessageProvider.CreateDiagnostic(MessageProvider.ERR_PermissionSetAttributeFileReadError, Location.None, e.FileName, e.PropertyName, e.Message));
Microsoft.CodeAnalysis.Analyzers (12)
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
Microsoft.CodeAnalysis.CodeStyle (13)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.Features (17)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
69Debug.Fail(ex.Message);
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
Microsoft.CodeAnalysis.Scripting (4)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (19)
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
MSBuild\MSBuildWorkspace.cs (7)
375Reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
392Reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
405Reporter.Report(new ProjectDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, projectChanges.ProjectId));
532Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, id));
560Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
564Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
568Reporter.Report(new DocumentDiagnostic(WorkspaceDiagnosticKind.Failure, exception.Message, documentId));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (2)
Microsoft.CSharp (1)
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Microsoft.Diagnostics.NETCore.Client (4)
Microsoft.DiaSymReader (3)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.Arcade.Sdk (4)
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.DotNet.Build.Tasks.VisualStudio (5)
Microsoft.DotNet.Cli.Telemetry (3)
Microsoft.DotNet.HotReload.Utils.Generator.Frontend (1)
Microsoft.DotNet.HotReload.Watch (26)
Process\ProcessRunner.cs (7)
84logger.Log(MessageDescriptor.ApplicationFailed, e.Message);
187logger.Log(MessageDescriptor.ErrorReadingProcessOutput, "stdout", state.ProcessId, e.Message);
202logger.Log(MessageDescriptor.ErrorReadingProcessOutput, "stderr", state.ProcessId, e.Message);
228logger.Log(MessageDescriptor.FailedToLaunchProcess, processSpec.Executable, argsDisplay, e.Message);
339logger.Log(MessageDescriptor.FailedToKillProcess, state.ProcessId, e.Message);
356logger.Log(MessageDescriptor.FailedToSendSignalToProcess, signalName, state.ProcessId, e.Message);
386error = ex.Message;
Microsoft.DotNet.HotReload.WebAssembly.Browser (5)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.VersionTools.Cli (2)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.AI.OllamaSharp.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI.Tests (8)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (34)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.DataIngestion (1)
Microsoft.Extensions.DataIngestion.Tests (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.DependencyInjection.AutoActivation.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes.Tests (9)
Microsoft.Extensions.DotNetDeltaApplier (9)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (3)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.ServiceDiscovery.Tests (4)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Tests (2)
Microsoft.Extensions.VectorData.ConformanceTests (6)
Microsoft.Gen.Logging.Generated.Tests (8)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.JSInterop (1)
Microsoft.JSInterop.WebAssembly (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls (3)
Microsoft.Maui.Controls.Build.Tasks (2)
XamlCTask.cs (2)
317 LoggingHelper.LogError("XamlC", null, xpe.HelpLink, xamlFilePath, xpe.XmlInfo.LineNumber, xpe.XmlInfo.LinePosition, 0, 0, xpe.Message);
321 LoggingHelper.LogError("XamlC", null, e.HelpLink, xamlFilePath, 0, 0, 0, 0, e.Message);
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (8)
Microsoft.ML.AutoML.Tests (3)
Microsoft.ML.Core (16)
Microsoft.ML.Core.Tests (7)
Microsoft.ML.CpuMath (1)
Microsoft.ML.Data (4)
Microsoft.ML.DataView (1)
Microsoft.ML.Ensemble (1)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.Maml (3)
MAML.cs (3)
169ch.Error(e.Sensitivity(), e.Message);
248writer.WriteLine("({0}) Unexpected exception: {1}, '{2}'", index, e.Message, e.GetType());
266ch.Error(e.Sensitivity(), "({0}) Unexpected exception: {1}, '{2}'", index, e.Message, e.GetType());
Microsoft.ML.Parquet (4)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.ResultProcessor (1)
Microsoft.ML.Samples (1)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (4)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.TestFramework (2)
Microsoft.ML.TestFrameworkCommon (2)
Microsoft.ML.Tests (25)
SvmLightTests.cs (11)
247Assert.Contains("Duplicate keys found in dataset", ex.InnerException.Message);
362Assert.Contains("Encountered 0 index while parsing a 1-based dataset", ex.InnerException.Message);
381Assert.Contains("Encountered non-parsable index '-1' while parsing dataset", ex.InnerException.Message);
400Assert.Contains("Encountered non-parsable index 'a' while parsing dataset", ex.InnerException.Message);
407Assert.Contains("No int parsable keys found during key transform inference", ex.Message);
444Assert.Contains("If the number of features is not specified, a dataset must be provided to infer it.", ex.Message);
446Assert.Contains("To use the text feature names option, a dataset must be provided", ex.Message);
513Assert.Contains("Column Label not found in data", ex.Message);
521Assert.Contains("Column Features not found in data", ex.Message);
529Assert.Contains("Column Group not found in data", ex.Message);
537Assert.Contains("Column Weight not found in data", ex.Message);
Microsoft.ML.Tokenizers (5)
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.NET.Build.Containers (12)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (5)
Microsoft.NET.Sdk.Publish.Tasks (14)
Microsoft.NET.Sdk.Razor.Tasks (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Microsoft.Private.Windows.Core (12)
Microsoft.SourceLink.AzureDevOpsServer.Git (2)
Microsoft.SourceLink.AzureRepos.Git (2)
Microsoft.SourceLink.Bitbucket.Git (2)
Microsoft.SourceLink.Common (1)
Microsoft.SourceLink.Gitea (2)
Microsoft.SourceLink.Gitee (2)
Microsoft.SourceLink.GitHub (2)
Microsoft.SourceLink.GitLab (2)
Microsoft.SourceLink.GitWeb (2)
Microsoft.TemplateEngine.Cli (10)
Microsoft.TemplateEngine.Core (3)
Microsoft.TemplateEngine.Edge (13)
TemplateConstraintManager.cs (4)
124return TemplateConstraintResult.CreateInitializationFailure(type, string.Format(LocalizableStrings.TemplateConstraintManager_Error_FailedToInitialize, type, exception?.Message));
134return TemplateConstraintResult.CreateEvaluationFailure(task.Result, string.Format(LocalizableStrings.TemplateConstraintManager_Error_FailedToEvaluate, type, args, e.Message));
199constraintResults.Add(TemplateConstraintResult.CreateInitializationFailure(constraint.Type, string.Format(LocalizableStrings.TemplateConstraintManager_Error_FailedToInitialize, constraint.Type, exception?.Message)));
210constraintResults.Add(TemplateConstraintResult.CreateEvaluationFailure(_templateConstrains[constraint.Type].Result, string.Format(LocalizableStrings.TemplateConstraintManager_Error_FailedToEvaluate, constraint.Type, constraint.Args, e.Message)));
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (8)
RunnableProjectGenerator.cs (6)
79settings.Host.Logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, configFile?.GetDisplayPath(), ex.Message);
84settings.Host.Logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, configFile?.GetDisplayPath(), ex.Message);
278logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, templateFileConfig.GetDisplayPath(), ex.Message);
283logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, templateFileConfig.GetDisplayPath(), ex.Message);
354logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, file.GetDisplayPath(), ex.Message);
359logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, file.GetDisplayPath(), ex.Message);
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CommunicationUtilities (7)
Microsoft.TestPlatform.CoreUtilities (4)
Microsoft.TestPlatform.CrossPlatEngine (6)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.TestPlatform.Filter.Source (1)
Microsoft.TestPlatform.PlatformAbstractions (1)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (3)
Microsoft.VisualBasic.Core (7)
Microsoft.VisualStudio.TestPlatform.Common (9)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Microsoft.Web.XmlTransform (1)
MSBuild (36)
XMake.cs (27)
1210Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ConfigurationFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
1228Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixNoErrorCode", e.ErrorCode, e.Message));
1234Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixWithErrorCode", e.Message));
1253Console.WriteLine($"MSBUILD : error {e.ErrorCode}: {e.Message}");
1266$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : "")}");
1279Console.WriteLine($"MSBUILD : error {pce?.ErrorCode ?? exppce?.ErrorCode}: {e.Message}");
1300$"MSBUILD : error {e.ErrorCode}: {e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}");
1308$"{e.Message}{(e.InnerException != null ? $" {e.InnerException.Message}" : string.Empty)}");
3143CommunicationsUtilities.Trace($"Invalid node packet version value '{parameters[parameters.Length - 1]}': {ex.Message}");
3148CommunicationsUtilities.Trace($"Node packet version value '{parameters[parameters.Length - 1]}' out of range: {ex.Message}");
3190CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3217CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3236CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3299CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3348ex.Message);
3353ex.Message);
3501CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3505CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
4179throw new LoggerException(e.Message, e);
4459InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]);
4467InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]);
4475InitializationException.Throw("XMake.LoggerCreationError", unquotedParameter, e, false, [loggerDescription.Name, (e == null) ? String.Empty : e.Message]);
4483Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OptionalLoggerCreationMessage", loggerDescription.Name, e.Message));
4567var message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidLogFileFormat", ex.Message);
MSBuild.Coordinator (1)
NuGet.Build.Tasks (1)
NuGet.Build.Tasks.Console (3)
NuGet.Build.Tasks.Pack (1)
NuGet.CommandLine.XPlat (10)
NuGet.Commands (9)
RestoreCommand\Utility\SpecValidationUtility.cs (1)
80ex.Message,
NuGet.Common (5)
NuGet.Configuration (3)
Settings\SettingsFile.cs (3)
226string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigInvalidOperation, ConfigFilePath, e.Message), e);
232string.Format(CultureInfo.CurrentCulture, Resources.ShowError_ConfigUnauthorizedAccess, ConfigFilePath, e.Message), e);
244string.Format(CultureInfo.CurrentCulture, Resources.Unknown_Config_Exception, ConfigFilePath, e.Message), e);
NuGet.PackageManagement (22)
NuGet.Packaging (15)
NuGet.ProjectModel (7)
NuGet.Protocol (14)
Pipelines.AppHost (1)
PresentationBuildTasks (15)
PresentationCore (4)
PresentationFramework (24)
PresentationUI (2)
ReachFramework (8)
RepoTasks (14)
Roslyn.Diagnostics.Analyzers (12)
rzc (6)
ScenarioTests.Common.Tests (1)
sdk-tasks (5)
Security.TransportSecurity.IntegrationTests (7)
SelectTests (3)
Shared (1)
Shared.Tests (79)
Throw\IntegerTests.cs (24)
115Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
128Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
141Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
154Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
167Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
180Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
287Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
300Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
313Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
326Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
339Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
352Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
Throw\LongTests.cs (24)
115Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
128Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
141Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
154Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
167Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
180Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
287Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
300Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
313Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
326Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
339Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
352Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
Throw\ThrowTest.cs (19)
21Assert.Contains(message, exception.Message, StringComparison.Ordinal);
32Assert.Contains(message, exception.Message, StringComparison.Ordinal);
151Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
167Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
183Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
191Assert.Equal(expectedMessage, exceptionImplicitArgumentName.Message);
199Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
207Assert.Equal(expectedMessage, exceptionImplicitArgumentName.Message);
283Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
296Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
395Assert.Contains(nameof(listButActuallyNull), exceptionImplicitArgumentName.Message);
435Assert.Equal(exceptionExplicitArgumentName.Message, exceptionImplicitArgumentName.Message);
SuperFileCheck (3)
System.Collections.Concurrent (1)
System.CommandLine (1)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (16)
System.ComponentModel.TypeConverter (1)
System.Configuration.ConfigurationManager (10)
System.Data.Common (8)
System.Data.Odbc (2)
System.Data.OleDb (4)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.EventLog (2)
System.DirectoryServices (9)
System.DirectoryServices.AccountManagement (27)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (5)
410GlobalDebug.WriteLineIf(GlobalDebug.Error, "ADStoreCtx", "Insert, Save Failed (attempting to delete) Exception {0} ", e.Message);
424GlobalDebug.WriteLineIf(GlobalDebug.Error, "ADStoreCtx", "Insert, Deletion Failed {0} ", deleteFail.Message);
1242throw new PrincipalOperationException(e.Message, e);
1247throw new PrincipalOperationException(e.Message, e);
2562e.Message);
System.DirectoryServices.Protocols (1)
System.Drawing.Primitives (1)
System.Formats.Asn1 (1)
System.IO.Pipelines (1)
System.IO.Ports (1)
System.Management (1)
System.Net.Http (15)
System.Net.Http.Json (1)
System.Net.Http.WinHttpHandler (1)
System.Net.HttpListener (10)
System.Net.Mail (1)
System.Net.NameResolution (2)
System.Net.Primitives (1)
System.Net.Requests (8)
System.Net.Security (5)
System.Net.Sockets (10)
System.Net.WebSockets (5)
System.Net.WebSockets.Client (3)
System.Private.CoreLib (34)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingMemberException.cs (1)
65return base.Message;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (1)
52string message = Message;
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (13)
System.Private.Xml (27)
System\Xml\Schema\DataTypeImplementation.cs (2)
535throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
556throw new XmlSchemaException(SR.Sch_InvalidValueDetailed, new string[] { s, GetTypeName(), exception.Message }, exception, null, 0, 0, null);
System\Xml\Schema\FacetChecker.cs (2)
371throw new XmlSchemaException(SR.Sch_PatternFacetInvalid, new string[] { e.Message }, e, _pattern_facet!.SourceUri, _pattern_facet.LineNumber, _pattern_facet.LinePosition, _pattern_facet);
673throw new XmlSchemaException(code, new string[] { ex.Message }, ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
System\Xml\Schema\Preprocessor.cs (4)
546SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { "version", schema.Version, tokenDt.TypeCodeString, exception.Message }, exception, schema);
1993SendValidationEvent(SR.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, particle);
2037SendValidationEvent(SR.Sch_InvalidAnyDetailed, new string[] { fe.Message }, fe, anyAttribute);
2114SendValidationEvent(SR.Sch_InvalidAttribute, new string[] { attributeName, fx.Message }, fx, xso);
System\Xml\Schema\XmlSchemaValidator.cs (6)
1276SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, exception.Message }, exception);
1476SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), TruncateValueForErrorMessage(stringValue), GetTypeName(decl), exception.Message }, exception);
1655SendValidationEvent(SR.Sch_InvalidValueDetailedAttribute, new string[] { "type", xsiType, s_dtQName.TypeCodeString, exception.Message }, exception);
1866SendValidationEvent(SR.Sch_CannotLoadSchema, new string[] { uri, e.Message }, e, XmlSeverityType.Warning);
1968SendValidationEvent(SR.Sch_AttributeValueDataTypeDetailed, new string[] { attdef.Name.ToString(), TruncateValueForErrorMessage(stringValue), GetTypeName(decl), exception.Message }, exception);
1983SendValidationEvent(SR.Sch_ElementValueDataTypeDetailed, new string[] { QNameString(_context.LocalName!, _context.Namespace!), TruncateValueForErrorMessage(stringValue), GetTypeName(decl), exception.Message }, exception);
System.Reflection.Metadata (4)
System.Resources.Extensions (1)
System.Runtime.InteropServices.JavaScript (4)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Exception.cs (1)
94ToJS(cpy.Message);
System.ServiceModel.Http (13)
System.ServiceModel.NetFramingBase (16)
System.ServiceModel.NetNamedPipe (5)
System.ServiceModel.Primitives (36)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (3)
296SRP.Format(SRP.SFxInvalidMessageBodyErrorSerializingParameter, part.Description.Namespace, part.Description.Name, sx.Message), sx));
538part.Description.Namespace, part.Description.Name, e.Message),
546part.Description.Namespace, part.Description.Name, e.Message),
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
156SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe));
161SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se));
225SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message),
231SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
511SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe));
516SRP.Format(SRP.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se));
562SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message),
568SRP.Format(SRP.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
System.ServiceModel.Primitives.Tests (25)
Channels\CommunicationObjectTest.cs (8)
322Assert.True(String.Equals(exceptionMessage, actualException.Message),
324exceptionMessage, actualException.Message));
349Assert.True(String.Equals(exceptionMessage, actualException.Message),
351exceptionMessage, actualException.Message));
376Assert.True(String.Equals(exceptionMessage, actualException.Message),
378exceptionMessage, actualException.Message));
407Assert.True(String.Equals(exceptionMessage, actualException.Message),
409exceptionMessage, actualException.Message));
Channels\CustomChannelTest.cs (12)
251Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
253expectedExceptionMessage, actualException.Message));
306Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
308expectedExceptionMessage, actualException.Message));
471Assert.True(String.Equals(caughtException.Message, thrownException.Message),
473thrownException.Message, caughtException.Message));
725Assert.True(string.Equals(thrownException.Message, caughtException.Message),
727thrownException.Message, caughtException.Message));
System.ServiceProcess.ServiceController (3)
System.Speech (5)
System.Text.Json (5)
System.Text.RegularExpressions (3)
System.Text.RegularExpressions.Generator (2)
System.Threading.Tasks.Dataflow (1)
System.Transactions.Local (1)
System.Windows.Forms (43)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (35)
System.Xaml (6)
TypeScriptApiCompat (1)
UIAutomationClientSideProviders (3)
UnitTests.Common (1)
vbc (4)
VBCSCompiler (17)
vstest.console (11)
vstest.console.arm64 (11)