256 references to LogError
aspire (77)
Backchannel\ExtensionBackchannel.cs (1)
191_logger.LogError(
Backchannel\ResourceWaitService.cs (1)
125logger.LogError(
Bundles\BundleService.cs (5)
267logger.LogError("Failed to flip bundle links to {VersionDir}.", activeVersionDir); 275logger.LogError("Post-flip layout validation failed; attempting rollback."); 278logger.LogError("Rollback of bundle links failed; layout is in an inconsistent state."); 343logger.LogError("Extracted bundle at {Path} failed verification; renaming to {BadPath}.", tempDir, badPath); 382logger.LogError("Post-rename validation failed for {Path}; renaming to {BadPath}.", activeVersionDir, badPath);
Certificates\CertificateGeneration\CertificateManager.cs (22)
1130_logger.LogError("An error occurred while listing the certificates: {Error}", e); 1162_logger.LogError("An error has occurred generating the certificate: {Error}.", e); 1174_logger.LogError("An error has occurred saving the certificate: {Error}.", e); 1190_logger.LogError("An error has occurred while exporting the certificate: {Error}.", error); 1198_logger.LogError("An error has occurred while writing the certificate to disk: {Error}.", error); 1210_logger.LogError("An error has occurred while trusting the certificate: {Error}.", error); 1262_logger.LogError("An error has occurred while removing the certificate from the user store: {Error}.", error); 1298_logger.LogError("An error has occurred while correcting the certificate state: {Error}.", error); 1310_logger.LogError("An error has occurred while importing the certificate to the keychain: {ExitCode}, {Output}", exitCode, output); 1318_logger.LogError("An error has occurred while writing the certificate to disk: {Error}.", error); 1322_logger.LogError("The file '{CertificatePath}' does not exist.", certificatePath); 1326_logger.LogError("One or more HTTPS certificates exist '{CertificateDescription}'.", certificateDescription); 1338_logger.LogError("An error has occurred while loading the certificate from disk: {Error}.", error); 1342_logger.LogError("The provided certificate '{Description}' is not a valid ASP.NET Core HTTPS development certificate.", description); 1358_logger.LogError("An error has occurred while saving certificate '{CertificateThumbprint}' in the user profile folder: {ErrorMessage}.", certificateThumbprint, errorMessage); 1362_logger.LogError("An error has occurred while removing certificate '{CertificateThumbprint}' from the user profile folder: {ErrorMessage}.", certificateThumbprint, errorMessage); 1366_logger.LogError("The file '{Path}' is not a valid certificate.", path); 1414_logger.LogError("Unable to compute the hash of certificate {CertificatePath}. OpenSSL trust is likely in an inconsistent state.", certificatePath); 1418_logger.LogError("Unable to compute the certificate hash: {CertificatePath}. OpenSSL trust is likely in an inconsistent state. {ExceptionMessage}", certificatePath, exceptionMessage); 1422_logger.LogError("Unable to update certificate '{FullName}' in the OpenSSL trusted certificate hash collection - {MaxHashCollisions} certificates have the hash {Hash}.", fullName, maxHashCollisions, hash); 1426_logger.LogError("Unable to update the OpenSSL trusted certificate hash collection: {ExceptionMessage}. Manually rehashing may help. See https://aka.ms/dev-certs-trust for more information.", exceptionMessage); 1522_logger.LogError("Unable to export the certificate since '{CertPath}' already exists. Please remove it.", certPath);
Commands\AgentMcpCommand.cs (1)
172_logger.LogError(
Commands\TelemetryLogsCommand.cs (1)
159_logger.LogError("Failed to fetch logs from Dashboard API");
Commands\TelemetrySpansCommand.cs (1)
154_logger.LogError("Failed to fetch spans from Dashboard API");
Commands\TelemetryTracesCommand.cs (1)
110_logger.LogError("Failed to fetch traces from Dashboard API");
DotNet\DotNetCliRunner.cs (14)
565logger.LogError("Timed out waiting for AppHost backchannel after {Timeout} seconds", connectionTimeout.TotalSeconds); 809logger.LogError( 1049logger.LogError( 1067logger.LogError("Failed to read stdout from the process. This should never happen."); 1078logger.LogError("Failed to parse template version from stdout."); 1299logger.LogError("Failed to add package {PackageName} with version {PackageVersion} to project {ProjectFilePath}. See debug logs for more details.", packageName, packageVersion, projectFilePath.FullName); 1328logger.LogError("Failed to add project {ProjectFilePath} to solution {SolutionFilePath}. See debug logs for more details.", projectFile.FullName, solutionFile.FullName); 1355logger.LogError("Failed to get NuGet config paths. Exit code was: {ExitCode}.", exitCode); 1543logger.LogError( 1557logger.LogError("Failed to read stdout from the process. This should never happen."); 1575logger.LogError($"Failed to read JSON returned by the package search. {ex.Message}"); 1615logger.LogError("Failed to get NuGet config paths. Exit code was: {ExitCode}.", exitCode); 1657logger.LogError("Failed to list solution projects. Exit code was: {ExitCode}.", exitCode); 1711logger.LogError("Failed to add project reference from {ProjectFile} to {ReferencedProject}. See debug logs for more details.", projectFile.FullName, referencedProject.FullName);
Mcp\Tools\ListConsoleLogsTool.cs (1)
147logger.LogError("Error retrieving console logs for resource '{ResourceName}'", resourceName);
Mcp\Tools\ListResourcesTool.cs (1)
255logger.LogError(
Mcp\Tools\ListStructuredLogsTool.cs (1)
138logger.LogError("Failed to fetch structured logs from Dashboard API");
Mcp\Tools\ListTracesTool.cs (1)
138logger.LogError("Failed to fetch traces from Dashboard API");
Mcp\Tools\ListTraceStructuredLogsTool.cs (1)
128logger.LogError("Failed to fetch structured logs for trace from Dashboard API");
Mcp\Tools\WaitForResourcesTool.cs (2)
101logger.LogError( 130logger.LogError(
NuGet\BundleNuGetPackageCache.cs (2)
164logger.LogError("NuGet search failed"); 165logger.LogError("NuGet search stderr: {Error}", ex.Output);
NuGet\BundleNuGetService.cs (4)
120_logger.LogError("Package restore failed"); 121_logger.LogError("Package restore stderr: {Error}", ex.Output); 138_logger.LogError("Manifest creation failed"); 139_logger.LogError("Manifest creation stderr: {Error}", ex.Output);
Profiling\ProfileCaptureService.cs (2)
327_logger.LogError("No profiling traces were exported for session {SessionId}", _options.SessionId); 333_logger.LogError("No exported spans matched profiling session {SessionId}", _options.SessionId);
Program.cs (1)
876logger.LogError("Locale override failed: {ErrorMessage}", errorMessage);
Projects\AppHostServerSession.cs (1)
329_logger.LogError("AppHost server startup output:\n{Output}", string.Join(Environment.NewLine, outputLines.Select(line => line.Line)));
Projects\GuestAppHostProject.cs (7)
846_logger.LogError("{Language} apphost exited with code {ExitCode}", DisplayName, guestExitCode); 987_logger.LogError( 1000_logger.LogError( 1067_logger.LogError( 1077_logger.LogError("`npm install` for integration host '{Name}' failed with exit code {ExitCode} (cwd: {Directory}).", name, exitCode, hostDir); 1528_logger.LogError("{Language} apphost exited with code {ExitCode}", DisplayName, guestExitCode); 1677_logger.LogError("Timed out waiting for AppHost server to start after {Timeout} seconds", connectionTimeout.TotalSeconds);
Projects\PrebuiltAppHostServer.cs (1)
853_logger.LogError("Integration project build failed. Output:\n{BuildOutput}", outputLines);
Projects\ProcessGuestLauncher.cs (1)
60_logger.LogError("Command '{Command}' not found in PATH", command);
Projects\ProjectLocator.cs (3)
953logger.LogError("No AppHost project files found in directory {Directory}", directory.FullName); 981logger.LogError("Multiple AppHost project files found in directory {Directory}, throwing exception", directory.FullName); 1011logger.LogError("Project file {ProjectFile} does not exist.", projectFile.FullName);
src\Shared\ChildProcess.cs (1)
319_logger.LogError("Supervisor for {FileName}({ProcessId}) exited without reporting command completion.", FileName, _processId);
Aspire.Cli.Tests (3)
Telemetry\ReportedLogExportTests.cs (3)
169factory.CreateLogger(AspireCliTelemetry.EventLogCategoryName + ".Other").LogError("Wrong event category"); 205ordinaryLogger.LogError("Still logging locally"); 209ordinaryLogger.LogError("Still logging after telemetry disposal");
Aspire.Dashboard (4)
Components\Controls\UserProfile.razor.cs (1)
71Logger.LogError("Dashboard:Frontend:AuthMode is configured for OpenIDConnect, but there is no authenticated user.");
DashboardWebApplication.cs (2)
671logger.LogError("Failed to start the dashboard due to {Count} configuration error(s).", validationFailures.Count); 674logger.LogError("{ErrorMessage}", message);
src\Shared\ChildProcess.cs (1)
319_logger.LogError("Supervisor for {FileName}({ProcessId}) exited without reporting command completion.", FileName, _processId);
Aspire.Dashboard.Tests (1)
Telemetry\DashboardTelemetryServiceTests.cs (1)
182loggerFactory.CreateLogger("Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost").LogError("Framework error");
Aspire.Hosting (22)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
360mainLogger.LogError(BuildLogPrefix + "Build failed with exit code {ExitCode}.", exitCode); 461logger.LogError(BuildLogPrefix + "{Message}", message);
ApplicationModel\LogFacade.cs (1)
57_loggerAccessor().LogError(message);
ApplicationModel\ResourceNotificationService.cs (6)
254_logger.LogError("Stopped waiting for resource '{ResourceName}' to become healthy because it does not exist in the application model.", resourceName); 277_logger.LogError("Stopped waiting for resource '{ResourceName}' to become healthy because it failed to start.", resourceName); 366resourceLogger.LogError( 375resourceLogger.LogError( 432resourceLogger.LogError( 443resourceLogger.LogError(
Ats\LoggingExports.cs (1)
52logger.LogError("{Message}", message);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
891logger.LogError("AppHost path not found in configuration.");
Dcp\ContainerNetworkEndpointProvisioner.cs (1)
468_logger.LogError(
ExternalServiceBuilderExtensions.cs (1)
155e.Logger.LogError("The value for URL parameter '{ParameterName}' is invalid: {Error}", resource.UrlParameter?.Name, message);
Lifecycle\TerminalHostFailureDiagnosticService.cs (2)
125resourceLogger.LogError( 138resourceLogger.LogError(
Publishing\ContainerRuntimeBase.cs (4)
361_logger.LogError("{RuntimeName} login to {RegistryServer} failed with exit code {ExitCode}.", Name, registryServer, processResult.ExitCode); 407_logger.LogError(errorLogTemplate, errorArgs); 539_logger.LogError(errorLogTemplate, errorArgs); 600_logger.LogError("{RuntimeName} {OperationName} for {ImageName} failed with exit code {ExitCode}.", Name, operationName, imageName, processResult.ExitCode);
Publishing\ResourceContainerImageManager.cs (3)
328logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container images.", containerRuntime.Name); 394logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container image.", containerRuntime.Name); 547logger.LogError("Container runtime '{ContainerRuntimeName}' is not running or is unhealthy. Cannot build container image.", containerRuntime.Name);
Aspire.Hosting.Azure (3)
Provisioning\Internal\BicepCompiler.cs (1)
83_logger.LogError("Bicep compilation for {BicepFilePath} failed with exit code {ExitCode}.", bicepFilePath, exitCode);
Provisioning\Provisioners\BicepProvisioner.cs (2)
781resourceLogger.LogError("Azure deployment of {Name} to {DeploymentTarget} completed with provisioning state {ProvisioningState}.", resource.Name, deploymentTargetName, provisioningState); 1253resourceLogger.LogError("Azure provisioning failed: {Message}{Details}", failureDetails.ErrorMessage, CreateFailureLogDetails(failureDetails));
Aspire.Hosting.Azure.EntraId (6)
EntraIdResourceExtensions.cs (6)
83logger.LogError("The app registration is not fully configured. Call AsExistingApplication with the registration's tenant ID and client ID."); 96logger.LogError("The instance '{Instance}' is not valid. {Reason}", resource.Instance, instanceError); 102logger.LogError("The sign-in audience '{SignInAudience}' is not a valid {EnumType} value.", resource.SignInAudience, nameof(EntraIdSignInAudience)); 116logger.LogError("Client credential {Index} is not valid. {Reason}", i, ex.Message); 193logger.LogError("The {Setting} '{Value}' is not valid. {Reason}", setting, value, error); 213logger.LogError("Parameter '{ParameterName}' does not contain a valid {Setting}. {Reason}", parameter.Name, setting, parameterError);
Aspire.Hosting.Browsers (5)
BrowserConnectionDiagnosticsLogger.cs (3)
16_resourceLogger.LogError("[{SessionId}] {Stage} failed: {Reason}", _sessionId, stage, DescribeConnectionProblem(exception)); 31_resourceLogger.LogError("[{SessionId}] Unable to reconnect tracked browser debug connection. Closing the tracked browser session. Last error: {Reason}", _sessionId, DescribeConnectionProblem(exception)); 36_resourceLogger.LogError("[{SessionId}] Tracked browser host ended before the tracked page session completed: {Reason}", _sessionId, DescribeConnectionProblem(exception));
BrowserHostRegistry.cs (1)
183_logger.LogError("Tracked browser host '{BrowserExecutable}' for user data directory '{UserDataDirectory}' had an invalid reference count '{ReferenceCount}' during release.", identity.ExecutablePath, identity.UserDataRootPath, entry.ReferenceCount);
BrowserLogsEventLogger.cs (1)
247_resourceLogger.LogError("{Message}", sessionMessage);
Aspire.Hosting.Browsers.Tests (5)
src\Aspire.Hosting.Browsers\BrowserConnectionDiagnosticsLogger.cs (3)
16_resourceLogger.LogError("[{SessionId}] {Stage} failed: {Reason}", _sessionId, stage, DescribeConnectionProblem(exception)); 31_resourceLogger.LogError("[{SessionId}] Unable to reconnect tracked browser debug connection. Closing the tracked browser session. Last error: {Reason}", _sessionId, DescribeConnectionProblem(exception)); 36_resourceLogger.LogError("[{SessionId}] Tracked browser host ended before the tracked page session completed: {Reason}", _sessionId, DescribeConnectionProblem(exception));
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
183_logger.LogError("Tracked browser host '{BrowserExecutable}' for user data directory '{UserDataDirectory}' had an invalid reference count '{ReferenceCount}' during release.", identity.ExecutablePath, identity.UserDataRootPath, entry.ReferenceCount);
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (1)
247_resourceLogger.LogError("{Message}", sessionMessage);
Aspire.Hosting.DevTunnels (4)
DevTunnelCliClient.cs (4)
184logger?.LogError("Failed to create dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", tunnelId, attempts, _maxCliAttempts, exitCode, error); 292logger?.LogError("Failed to create port '{PortNumber}' for dev tunnel '{TunnelId}' (attempt {Attempt} of {MaxAttempts}). Exit code {ExitCode}: {Error}", portNumber, tunnelId, attempts, _maxCliAttempts, exitCode, error); 548logger?.LogError("CLI call returned non-zero exit code '{ExitCode}'. stderr output:\n{Error}", exitCode, error); 563logger?.LogError("CLI call returned empty output with exit code '{ExitCode}'.", exitCode);
Aspire.Hosting.EntityFrameworkCore (5)
EFMigrationResourceBuilderExtensions.cs (1)
68logger.LogError(
EFResourceBuilderExtensions.cs (4)
905logger.LogError("EF Core {Operation} command failed: {Error}", operationDisplayName, result.ErrorMessage); 1033logger.LogError("Add Migration command failed: {Error}", result.ErrorMessage); 1075logger.LogError("Remove Migration command failed: {Error}", result.ErrorMessage); 1114logger.LogError("Get Database Status command failed: {Error}", result.ErrorMessage);
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
355logger.LogError("Failed to stop Android resource '{ResourceName}' after its launch handoff timed out. Holding the build lock until the launch terminates, a replacement start takes over, or the application stops.", resource.Name);
Aspire.Hosting.MongoDB (1)
MongoDBSingleMemberReplicaSet.cs (1)
74evt.Logger.LogError("{Message}", annotation.InitializationError);
Aspire.Hosting.Radius (5)
Publishing\RadCredentialRegisterStep.cs (2)
92logger.LogError("The 'rad' CLI was not found on PATH. Install it from {InstallUrl}", RadiusDeploymentPipelineStep.RadInstallUrl); 326logger.LogError("{Message}", msg);
Publishing\RadiusDeploymentPipelineStep.cs (3)
514logger.LogError("The 'rad' CLI was not found on PATH. Install it from {InstallUrl}", RadInstallUrl); 526logger.LogError("Bicep file not found at {BicepPath}. Ensure the publish step completed successfully.", bicepPath); 631logger.LogError("rad deploy failed for environment '{EnvironmentName}': {ErrorMessage}", _environment.Name, errorMessage);
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
183logger.LogError($"Cannot configure an encrypted certificate for redis resource '{redis.Name}'"); 436logger.LogError($"Cannot configure an encrypted certificate for redis insight resource '{resource.Name}'");
Aspire.Hosting.RemoteHost (3)
Ats\CapabilityDispatcher.cs (1)
132_logger.LogError("{Message} at {Location}", diagnostic.Message, diagnostic.Location);
AtsContextFactory.cs (1)
66logger.LogError("[ATS] {Message} at {Location}", diagnostic.Message, diagnostic.Location);
src\Shared\ChildProcess.cs (1)
319_logger.LogError("Supervisor for {FileName}({ProcessId}) exited without reporting command completion.", FileName, _processId);
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
119resourceLogger.LogError("Test error message");
Aspire.Hosting.Tests (6)
Backchannel\BackchannelLoggerProviderTests.cs (1)
18logger.LogError("Message 3");
ResourceLoggerServiceTests.cs (5)
33logger.LogError("Hello, error!"); 73logger.LogError("Hello, error!"); 114logger.LogError("Hello, error!"); 235logger.LogError("Hello, error!"); 285logger.LogError("Hello, error!");
Aspire.TerminalHost (2)
DcpUpstreamAdapter.cs (1)
373_logger.LogError(
TerminalHostApp.cs (1)
159_logger.LogError("Replica recycle loop completed unexpectedly without cancellation; exiting non-zero.");
AzureSearch.ApiService (1)
Program.cs (1)
152logger.LogError("Failed to import the index data from {file}", hotelsJson);
dotnet-format (4)
CodeFormatter.cs (1)
98logger.LogError(Resources.Failed_to_save_formatting_changes);
Logging\ILoggerExtensions.cs (1)
28logger.LogError(formattedMessage);
Workspaces\MSBuildWorkspaceLoader.cs (2)
63logger.LogError(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath); 89logger.LogError(diagnostic.Message);
dotnet-watch (14)
CommandLine\CommandLineOptions.cs (2)
197logger.LogError(e.Message); 379logger.LogError(error.Message);
Program.cs (10)
126logger.LogError(Resources.The_specified_path_0_is_invalid_1, options.FilePath, e.Message); 146logger.LogError(Resources.Could_not_find_msbuild_project_file_in_0, projectPath); 195logger.LogError(Resources.The_specified_path_0_is_invalid_1, projectPath, e.Message); 209logger.LogError(Resources.The_specified_path_0_is_invalid_1, projectPath, e.Message); 215logger.LogError(Resources.Error_MultipleProjectsFound, projectPath); 223logger.LogError(Resources.Could_not_find_msbuild_project_file_in_0, projectPath); 238logger.LogError(Resources.Error_ProjectPath_NotFound, projectPath); 263logger.LogError("--list does not support file-based programs"); 285logger.LogError("File-based programs are only supported when Hot Reload is enabled"); 302logger.LogError("An unexpected error occurred: {Exception}", e.ToString());
Watch\DotNetWatcher.cs (1)
34context.Logger.LogError("Failed to find a list of files to watch");
Watch\MsBuildFileSetFactory.cs (1)
79logger.LogError("Error(s) finding watch items project file '{FileName}'.", Path.GetFileName(rootProjectFile));
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
304Logger.LogError("AccessToken request failed with a status code of " + response.StatusCode); 329Logger.LogError("Email request failed with a status code of " + response.StatusCode);
Microsoft.AspNetCore.Identity (2)
SignInManager.cs (2)
206Logger.LogError("RefreshSignInAsync prevented because the user is not currently authenticated. Use SignInAsync instead for initial sign in."); 214Logger.LogError("RefreshSignInAsync prevented because currently authenticated user has a different UserId. Use SignInAsync instead to change users.");
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
108_logger.LogError("'MS-ASPNETCORE-TOKEN' does not match the expected pairing token, request rejected.");
Microsoft.AspNetCore.Server.IntegrationTesting (4)
ApplicationPublisher.cs (2)
95logger.LogError(message); 102logger.LogError(message);
Deployers\SelfHostDeployer.cs (2)
181Logger.LogError("Error occurred while starting the process. Exception: {exception}", ex.ToString()); 186Logger.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, HostProcess.Id, HostProcess.ExitCode);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\KestrelServerImpl.cs (1)
212Trace.LogError(CoreStrings.DynamicPortOnMultipleTransportsNotSupported);
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
153_logger.LogError($"Couldn't start the SPA development server with command '{_options.LaunchCommand}'."); 160_logger.LogError($"Unable to connect to the SPA development server at '{_options.ServerUrl}'.");
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
101logger.LogError(StripAnsiColors(line));
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
587_logger.LogError("The BuildHost process is not responding. Process output:{newLine}{processLog}", Environment.NewLine, processLog); 589_logger.LogError("The BuildHost process exited with {errorCode}. Process output:{newLine}{processLog}", _process.ExitCode, Environment.NewLine, processLog);
Microsoft.DotNet.HotReload.Watch (28)
Aspire\AspireServiceFactory.cs (1)
194_logger.LogError("Unexpected error reading output of session '{SessionId}': {Exception}", sessionId, e);
Browser\BrowserLauncher.cs (1)
31logger.LogError("Test requires browser to launch");
Build\EvaluationResult.cs (2)
78logger.LogError("Failed to restore project '{Path}'.", failedInstance.FullPath); 109logger.LogError("Failed to build project '{Path}'.", failedInstance.FullPath);
Build\LoadedProjectGraph.cs (3)
41logger.LogError("Project '{ProjectPath}' not found in the project graph.", projectPath); 60logger.LogError("Project '{ProjectPath}' targets multiple frameworks. Specify which framework to run using '--framework'.", projectPath); 85logger.LogError("Project '{ProjectPath}' doesn't have a target for {TargetFramework}.", projectPath, targetFramework);
Build\ProjectGraphFactory.cs (3)
103logger.LogError(e.Message); 124logger.LogError("The project file could not be loaded. Could not find a part of the path '{Path}'.", projectPath); 138logger.LogError("{Path}({Line}): {Message}", path, line, message);
HotReload\HotReloadDotNetWatcher.cs (1)
1084_context.BuildLogger.LogError("Project '{Path}' does not specify a target framework.", rootProject.FullPath);
HotReload\RunningProjectsManager.cs (4)
203logger.LogError("Failed to launch '{ProjectPath}'. Process {PID} exited during initialization.", projectPath, launchResult.ProcessId); 238logger.LogError("Failed to handle runtime rude edit: {Exception}", e.ToString()); 299logger.LogError("Failed to relaunch: {Exception}", e.ToString()); 386logger.LogError("Failed to apply managedCodeUpdates: {Exception}", e.ToString());
Process\LaunchSettingsProfile.cs (1)
37logger.LogError(message);
Process\RunningProject.cs (1)
95ClientLogger.LogError("Failed to apply updates to process {Process}: {Exception}", process.Id, e.ToString());
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (5)
61Logger.LogError("Expected initialization response, got: {ResponseType}", r.Type); 90Logger.LogError("Failed to read capabilities: {Message}", e.Message); 126Logger.LogError("Unexpected response received from the agent: {ResponseType}", r.Type); 135Logger.LogError("Failed to read response: {Exception}", e.ToString()); 332Logger.LogError("Failed to send {RequestType}: {Message}", nameof(RequestType.InitialUpdatesCompleted), e.Message);
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (1)
208clients.First().Logger.LogError("Failed to read file {FilePath}: {Message}", asset.FilePath, e.Message);
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (3)
125logger.LogError("Failed to read '{FilePath}': {Message}", path, e.Message); 150logger.LogError("Failed to parse '{FilePath}': {Message}", filePath, e.Message); 156logger.LogError("Failed to parse '{FilePath}'", filePath);
UI\BuildOutput.cs (2)
22logger.LogError(line); 28logger.LogError(line);
Microsoft.Extensions.Diagnostics.Testing.Tests (13)
Logging\FakeLogCollectorTests.cs (4)
66logger.LogError("Hello world!"); 108logger.LogError("Hello world!"); 147logger.LogError("Hello world!"); 179logger.LogError("Hello world!");
Logging\FakeLoggerExtensionsTests.cs (5)
27logger.LogError("M1"); 43logger.LogError("M1"); 47logger.LogError("M2"); 71logger.LogError("M1"); 75logger.LogError("M2");
Logging\FakeLoggerTests.cs (4)
28logger.LogError("World"); 212logger.LogError("M4"); 307logger.LogError(IgnoredMessage); 308logger.LogError(NotIgnoredMessage2);
Microsoft.Extensions.Telemetry.PerformanceTests (2)
ExtendedLoggerBench.cs (2)
122logger.LogError( 138logger.LogError(@"Range [{start}..{end}], options {options}, guid {guid}",
Microsoft.NET.Build.Containers (4)
LocalDaemons\ContainerRuntime.cs (1)
110_logger.LogError($"Cannot find {GetCommandsForCurrentPlatform()} executable.");
LocalDaemons\ContainerRuntimes.cs (1)
89Logger.LogError($"The daemon server reported errors: {messages}");
LocalDaemons\DockerCli.cs (2)
146_logger.LogError($"Cannot find {Commands} executable."); 170_logger.LogError($"The daemon server reported errors: {messages}");
Microsoft.TemplateEngine.Edge (9)
Installers\NuGet\NuGetInstaller.cs (4)
407_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FailedToReadPackage, installRequest.PackageIdentifier)); 414_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation)); 415_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FileAlreadyExists, targetPackageLocation)); 425_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation), null, 0);
Installers\NuGet\NuGetLogger.cs (1)
60_baseLogger.LogError(data);
Settings\TemplatePackageManager.cs (1)
110_logger.LogError(LocalizableStrings.TemplatePackageManager_Error_FailedToGetTemplatePackages, source.Key.Factory.DisplayName, ex.Message);
ValidationUtils.cs (3)
29logger.LogError(LocalizableStrings.Validation_InvalidTemplate, templateDisplayName); 56logger.LogError(LocalizableStrings.Validation_InvalidTemplate, templateDisplayName); 118IValidationEntry.SeverityLevel.Error => (s) => logger.LogError(s),
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (10)
DirectoryBasedTemplate.cs (1)
118Logger.LogError("Failed to validate template: {ex}", ex.Message);
RunnableProjectGenerator.cs (9)
79settings.Host.Logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, configFile?.GetDisplayPath(), ex.Message); 84settings.Host.Logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, configFile?.GetDisplayPath(), ex.Message); 89settings.Host.Logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, configFile?.GetDisplayPath(), ex); 277logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, templateFileConfig.GetDisplayPath(), ex.Message); 282logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, templateFileConfig.GetDisplayPath(), ex.Message); 287logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, templateFileConfig.GetDisplayPath(), ex); 352logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, file.GetDisplayPath(), ex.Message); 357logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, file.GetDisplayPath(), ex.Message); 362logger.LogError(LocalizableStrings.Authoring_TemplateNotInstalled_Message, file.GetDisplayPath(), ex);