445 references to LogWarning
aspire (106)
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (2)
91logger.LogWarning("Could not parse GitHub owner/repo from expected source repository: {ExpectedSourceRepository}", expectedSourceRepository); 111logger.LogWarning("Sigstore verification failed for GitHub artifact {ArtifactPath}: {FailureReason}", artifactPath, result?.FailureReason);
Agents\Playwright\PlaywrightCliInstaller.cs (4)
186logger.LogWarning( 203logger.LogWarning("Failed to download {PackageSpecifier}.", NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version)); 228logger.LogWarning( 248logger.LogWarning("Failed to install {PackageSpecifier} globally.", NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version));
Backchannel\AppHostCliBackchannel.cs (2)
290logger.LogWarning("Timed out waiting for backchannel reconnection"); 472logger.LogWarning("Timed out waiting for backchannel reconnection");
Backchannel\AppHostConnectionHelper.cs (2)
70logger.LogWarning("The explicitly selected AppHost is unavailable: {AppHostPath}", selectedPath); 115logger.LogWarning("Multiple running AppHost instances match the selected path: {AppHostPath}", selectedPath);
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
650logger.LogWarning("Failed to add connection for socket {SocketPath}", socketPath);
Certificates\CertificateGeneration\CertificateManager.cs (27)
1222_logger.LogWarning("An error has occurred while running the trust command: {ExitCode}.", exitCode); 1234_logger.LogWarning("An error has occurred while running the remove trust command: {ExitCode}.", exitCode); 1250_logger.LogWarning("An error has occurred while running the remove trust command: {ExitCode}.", exitCode); 1370_logger.LogWarning("The on-disk store directory was not found."); 1382_logger.LogWarning("The NSS database '{NssDb}' provided via {Source} does not exist.", nssDb, source); 1386_logger.LogWarning("The certificate is not trusted by .NET. This will likely affect System.Net.Http.HttpClient."); 1390_logger.LogWarning("The certificate is not trusted by OpenSSL. Ensure that the {EnvVarName} environment variable is set correctly.", envVarName); 1394_logger.LogWarning("The certificate is not trusted in the NSS database in '{Path}'. This will likely affect the {Browser} family of browsers.", path, browser); 1430_logger.LogWarning("Failed to trust the certificate in .NET: {ExceptionMessage}.", exceptionMessage); 1438_logger.LogWarning("Clients that validate certificate trust using OpenSSL will not trust the certificate."); 1446_logger.LogWarning("Failed to trust the certificate in the NSS database in '{Path}'. This will likely affect the {Browser} family of browsers.", path, browser); 1454_logger.LogWarning("Failed to untrust the certificate in .NET: {ExceptionMessage}.", exceptionMessage); 1458_logger.LogWarning("Failed to untrust the certificate in OpenSSL."); 1466_logger.LogWarning("Failed to remove the certificate from the NSS database in '{Path}'.", path); 1474_logger.LogWarning("The certificate is only partially trusted - some clients will not accept it."); 1478_logger.LogWarning("Failed to look up the certificate in the NSS database in '{Path}': {ExceptionMessage}.", path, exceptionMessage); 1482_logger.LogWarning("Failed to add the certificate to the NSS database in '{Path}': {ExceptionMessage}.", path, exceptionMessage); 1486_logger.LogWarning("Failed to remove the certificate from the NSS database in '{Path}': {ExceptionMessage}.", path, exceptionMessage); 1490_logger.LogWarning("Failed to find the Firefox profiles in directory '{FirefoxDirectory}': {Message}.", firefoxDirectory, message); 1498_logger.LogWarning("Failed to trust the certificate in the NSS database in '{Path}'. This will likely affect the {Browser} family of browsers. This likely indicates that the database already contains an entry for the certificate under a different name. Please remove it and try again.", path, browser); 1502_logger.LogWarning("The {OpenSslCertDirectoryOverrideVariableName} environment variable is set but will not be consumed while checking trust.", openSslCertDirectoryOverrideVariableName); 1506_logger.LogWarning("The {OpenSslCommand} command is unavailable. It is required for updating certificate trust in OpenSSL.", openSslCommand); 1510_logger.LogWarning("The {CertUtilCommand} command is unavailable. It is required for querying and updating NSS databases, which are chiefly used to trust certificates in browsers.", certUtilCommand); 1518_logger.LogWarning("Failed to delete certificate file '{CertPath}': {ExceptionMessage}.", certPath, exceptionMessage); 1534_logger.LogWarning("Directory '{DirectoryPath}' may be readable by other users.", directoryPath); 1550_logger.LogWarning("Failed to trust the certificate in the Windows certificate store via WSL."); 1554_logger.LogWarning("Failed to trust the certificate in the Windows certificate store via WSL: {ExceptionMessage}.", exceptionMessage);
Commands\AgentMcpCommand.cs (1)
388_logger.LogWarning("Unknown tool requested: {ToolName}", toolName);
Commands\AgentTelemetryCommand.cs (1)
198_logger.LogWarning("Agent telemetry persistence did not complete before the flush timeout.");
Commands\AppHostLauncher.cs (1)
744logger.LogWarning("Child CLI process exited with code {ExitCode}", exitCode);
Commands\BaseCommand.cs (1)
168services.LoggerFactory.CreateLogger<BaseCommand>().LogWarning("Termination signal forced process exit.");
Commands\DcpWorkloadCleanupService.cs (3)
30logger.LogWarning("Could not find DCP in the Aspire layout."); 37logger.LogWarning("Could not find DCP executable at '{DcpPath}'.", dcpPath); 62logger.LogWarning("DCP cleanup exited with code {ExitCode}.", exitCode);
Commands\InstallationInfoOutput.cs (1)
50logger.LogWarning("Aspire CLI installation discovery timed out after {TimeoutSeconds} seconds.", timeout.TotalSeconds);
Commands\Sdk\SdkGenerateCommand.cs (1)
178_logger.LogWarning("Skipping file with invalid path: {FileName}", fileName);
Commands\UpdateCommand.cs (1)
909_logger.LogWarning("Update failed, restoring backup");
Configuration\AspireConfigFile.cs (2)
314logger?.LogWarning( 323logger?.LogWarning(
ConsoleCancellationManager.cs (2)
305_logger.LogWarning("Second termination signal received, expiring graceful shutdown window."); 354_logger.LogWarning("Handler did not complete within {Timeout}s after graceful expiration, forcing termination.", _finalDrainBudget.TotalSeconds);
Documentation\ApiDocs\ApiDocsIndexService.cs (2)
377_logger.LogWarning("Failed to refresh Aspire API sitemap. Using cached index with {Count} items.", cachedItems.Length); 381_logger.LogWarning("Failed to fetch Aspire API sitemap");
Documentation\Docs\DocsIndexService.cs (2)
181_logger.LogWarning( 188_logger.LogWarning("Failed to fetch documentation");
DotNet\DotNetCliRunner.cs (2)
823logger.LogWarning( 832logger.LogWarning(
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
97logger.LogWarning("No Aspire AppHost is currently running");
Mcp\Tools\ListConsoleLogsTool.cs (1)
70logger.LogWarning("No Aspire AppHost is currently running");
Mcp\Tools\ListResourcesTool.cs (2)
152logger.LogWarning("No Aspire AppHost is currently running"); 158logger.LogWarning("The selected AppHost connection does not have a project path");
Mcp\Tools\McpToolHelpers.cs (2)
60logger.LogWarning("No Aspire AppHost is currently running"); 67logger.LogWarning("Dashboard API is not available");
Mcp\Tools\WaitForResourcesTool.cs (2)
111logger.LogWarning("No Aspire AppHost is currently running"); 117logger.LogWarning("The selected AppHost connection does not have a project path");
Npm\SigstoreNpmProvenanceChecker.cs (2)
255_logger.LogWarning("Could not parse GitHub owner/repo from expected source repository: {ExpectedSourceRepository}", expectedSourceRepository); 272_logger.LogWarning(
Packaging\PackagingService.cs (3)
388_logger.LogWarning( 411_logger.LogWarning("Refusing to synthesize 'staging' package channel: {Reason}", unavailableReason); 438_logger.LogWarning(
Processes\LauncherLivenessMonitor.cs (1)
56logger.LogWarning(
Processes\ProcessTreeGracefulShutdownService.cs (3)
137logger.LogWarning("Process {Pid} did not stop gracefully within timeout. Forcing process to terminate.", process.Pid); 300logger.LogWarning("Could not find DCP executable in the Aspire layout."); 340logger.LogWarning("DCP stop-process-tree exited with code {ExitCode}.", exitCode);
Program.cs (1)
1179logger.LogWarning("Failed to resolve CLI channel: {Error}", channelError);
Projects\GuestAppHostProject.cs (1)
1040StandardErrorCallback = line => _logger.LogWarning("[npm install: {Name}] {Line}", name, line)
Projects\IntegrationClosureBuilder.cs (2)
186logger?.LogWarning("{Message}", message); 240logger?.LogWarning("Project reference assembly names file not found at {Path}", path);
Projects\PrebuiltAppHostServer.cs (1)
1440_logger.LogWarning(
Projects\ProjectLocator.cs (9)
374logger.LogWarning("The .NET SDK is not available. Marking .NET projects as unsupported."); 585logger.LogWarning("Ignoring AppHost path '{AppHostPath}' from settings because no project handler can process it.", settingsAppHost.FullName); 651logger.LogWarning("Ignoring AppHost path '{AppHostPath}' from settings because no project handler can process it.", settingsAppHost.FullName); 664logger.LogWarning("Ignoring AppHost path '{AppHostPath}' from settings because it is not supported in the current environment{MessageSuffix}.", settingsAppHost.FullName, messageSuffix); 672logger.LogWarning("AppHost path '{AppHostPath}' from settings could not be evaluated by MSBuild and may not be buildable{MessageSuffix}.", settingsAppHost.FullName, messageSuffix); 677logger.LogWarning("Ignoring AppHost path '{AppHostPath}' from settings because it is no longer a valid AppHost project{MessageSuffix}.", settingsAppHost.FullName, messageSuffix); 823logger.LogWarning("Ignoring AppHost settings in '{ConfigFilePath}' because the configuration root is not a JSON object.", configFilePath); 836logger.LogWarning("Ignoring configured AppHost path in '{ConfigFilePath}' ('{FieldName}') because it is not a JSON string.", configFilePath, fieldName); 868logger.LogWarning("Ignoring configured AppHost path in '{ConfigFilePath}' ('{FieldName}') because it is empty or contains invalid characters.", configFilePath, fieldName);
Projects\ProjectUpdater.cs (3)
353logger.LogWarning("Falling back to parsing for '{ProjectFile}'. Reason: {Message}", projectFile.FullName, ex.Message); 358logger.LogWarning("Update plan will be generated using fallback parsing; dependency accuracy may be reduced."); 405logger.LogWarning(UpdateCommandStrings.PackageNotFoundInChannelWarningFormat, packageId, context.Channel.Name);
Projects\RunningInstanceManager.cs (3)
60_logger.LogWarning("Failed to get AppHost information from running instance"); 77_logger.LogWarning("Failed to stop running instance within timeout"); 103_logger.LogWarning("Failed to get AppHost information from running instance");
Scaffolding\PackageJsonMerger.cs (1)
357logger.LogWarning(
Scaffolding\ScaffoldingService.cs (2)
185_logger.LogWarning( 668logger?.LogWarning(
src\Shared\ChildProcess.cs (2)
588_logger.LogWarning("{FileName}({ProcessId}) did not stop within {Timeout}; terminating its process scope.", 662_logger.LogWarning("{FileName}({ProcessId}) stdout/stderr did not drain within idle timeout {Timeout} after exit",
src\Shared\ProcessSignaler.cs (1)
191logger.LogWarning("Could not gracefully stop Aspire application host process {Pid}; the error code from signal send operation was {ErrorCode}", pid, errno);
src\Shared\ProcessSupervisor.cs (1)
176logger.LogWarning("Owner process {OwnerPid} exited; terminating its supervised process scope.", parentId);
src\Shared\Telemetry\UnixMachineInformationProvider.cs (1)
52_logger.LogWarning("Unable to persist deviceId.");
Telemetry\TelemetryManager.cs (1)
445_logger.LogWarning("Timed out shutting down CLI reported telemetry.");
Utils\EnvironmentChecker\EnvironmentChecker.cs (2)
88_logger.LogWarning( 102_logger.LogWarning(
Aspire.Cli.Tests (1)
Interaction\SpectreConsoleLoggerProviderTests.cs (1)
56logger.LogWarning("Test warning message");
Aspire.Confluent.Kafka (4)
AspireKafkaConsumerExtensions.cs (2)
218logger.LogWarning("LogHandler is already set. Skipping... No logs will be written."); 242logger.LogWarning("StatisticsHandler is already set. Skipping... No metrics will be exposed.");
AspireKafkaProducerExtensions.cs (2)
218logger.LogWarning("LogHandler is already set. Skipping... No logs will be written."); 243logger.LogWarning("StatisticsHandler is already set. Skipping... No metrics will be exposed.");
Aspire.Dashboard (32)
Components\Controls\TerminalWindowButton.razor.cs (1)
216Logger.LogWarning("The browser failed to open or focus a terminal window.");
Components\Interactions\InteractionsProvider.cs (2)
260Logger.LogWarning("Unexpected interaction kind: {Kind}", item.KindCase); 453Logger.LogWarning("Unexpected interaction kind: {Kind}", item.KindCase);
Components\Pages\ComponentTelemetryContext.cs (1)
101logger.LogWarning("Telemetry service for '{ComponentType}' is not initialized. Cannot post properties.", _componentId);
Components\Pages\ConsoleLogs.razor.cs (2)
628Logger.LogWarning("No resource selected for command execution."); 711Logger.LogWarning("Failed to add subscription for resource {ResourceName} - may already exist.", resourceName);
Components\Pages\Login.razor.cs (1)
107Logger.LogWarning("Unexpected result from validateToken: {Result}", result);
Components\Pages\Terminals.razor.cs (1)
274Logger.LogWarning("No terminal resource selected for command execution.");
Components\Pages\TerminalWindow.razor.cs (1)
131Logger.LogWarning("Could not resolve terminal resource {ResourceName}.", resourceName);
DashboardWebApplication.cs (4)
511_logger.LogWarning("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030"); 521_logger.LogWarning("Dashboard API is unsecured. Untrusted apps can access sensitive telemetry data."); 610_logger.LogWarning("Rejecting Blazor WebSocket upgrade with disallowed Origin '{Origin}'.", originLogValue); 791logger.LogWarning(
Model\BrowserTimeProvider.cs (1)
38_logger.LogWarning("Couldn't find time zone '{TimeZone}'. Defaulting to UTC.", timeZone);
Model\IconResolver.cs (1)
73_logger.LogWarning("Icon '{IconName}' (variant: {IconVariant}, size: {IconSize}) could not be resolved.", key.IconName, key.IconVariant, key.DesiredIconSize);
Model\Otlp\ResourcesSelectHelpers.cs (1)
82logger.LogWarning(
Model\TelemetryImportService.cs (3)
122_logger.LogWarning("Empty JSON file: {FileName}", fileName); 139_logger.LogWarning("Could not deserialize telemetry data from file: {FileName}", fileName); 168_logger.LogWarning("No telemetry data found in file: {FileName}", fileName);
Otlp\Model\OtlpHelpers.cs (1)
103context.Logger.LogWarning("Ignoring metric exemplar with timestamp {TimeUnixNano} above the signed Unix nanosecond limit.", exemplar.TimeUnixNano);
ServiceClient\DashboardClient.cs (2)
750_logger.LogWarning("Server does not support interactions."); 1245_logger.LogWarning("Server does not support terminals.");
ServiceClient\DashboardDataSource.cs (2)
88_logger.LogWarning("Failed to switch to dashboard run '{RunId}' because it is no longer available.", runId); 116_logger.LogWarning("Failed to switch to dashboard run '{RunId}' because it is no longer available.", selectedRun.RunId);
ServiceClient\Partials.cs (1)
194logger.LogWarning("Duplicate property '{PropertyName}' found in resource '{ResourceName}'.", propertyViewModel.Name, Name);
src\Shared\ChildProcess.cs (2)
588_logger.LogWarning("{FileName}({ProcessId}) did not stop within {Timeout}; terminating its process scope.", 662_logger.LogWarning("{FileName}({ProcessId}) stdout/stderr did not drain within idle timeout {Timeout} after exit",
src\Shared\ProcessSignaler.cs (1)
191logger.LogWarning("Could not gracefully stop Aspire application host process {Pid}; the error code from signal send operation was {ErrorCode}", pid, errno);
src\Shared\ProcessSupervisor.cs (1)
176logger.LogWarning("Owner process {OwnerPid} exited; terminating its supervised process scope.", parentId);
src\Shared\Telemetry\UnixMachineInformationProvider.cs (1)
52_logger.LogWarning("Unable to persist deviceId.");
Telemetry\DashboardTelemetryManager.cs (1)
146_logger.LogWarning("Timed out flushing dashboard product telemetry.");
Terminal\TerminalWebSocketProxy.cs (1)
191logger.LogWarning(
Aspire.Dashboard.Tests (2)
Telemetry\DashboardTelemetryManagerTests.cs (2)
63factory.CreateLogger("Microsoft.AspNetCore").LogWarning("Still logging locally"); 299logger.LogWarning("Still logging locally");
Aspire.Hosting (51)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
455logger.LogWarning(BuildLogPrefix + "{Message}", message); 476targetLogger.LogWarning(BuildLogPrefix + "{Content}", line.Content);
ApplicationModel\Docker\ContainerFilesExtensions.cs (2)
36logger?.LogWarning("Cannot get container image name for source resource {SourceName}, skipping", source.Name); 94logger?.LogWarning("Cannot get container image name for source resource {SourceName}, skipping", source.Name);
ApplicationModel\LogFacade.cs (1)
46_loggerAccessor().LogWarning(message);
ApplicationModel\RequiredCommandValidator.cs (2)
71_logger.LogWarning("Resource '{ResourceName}' may fail to start: {Message}", resource.Name, state.ErrorMessage); 118_logger.LogWarning("{Message}", string.Format(CultureInfo.CurrentCulture, MessageStrings.ResourceMayFailToStart, resource.Name, message));
Ats\LoggingExports.cs (1)
43logger.LogWarning("{Message}", message);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
1630logger.LogWarning("Resource '{ResourceName}' not found. No logs will be returned.", resourceName); 1897logger.LogWarning("IHostApplicationLifetime not found, cannot stop AppHost");
Backchannel\DashboardUrlsHelper.cs (1)
81logger.LogWarning("Dashboard options not found.");
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
101logger.LogWarning(MessageStrings.PersistentContainerWithoutUserSecrets, resource.Name);
Dashboard\DashboardServiceHost.cs (1)
255_logger.LogWarning("Unexpectedly long wait for resource service URI ({Elapsed}).", elapsed);
Dcp\ContainerCreator.cs (1)
288logger.LogWarning(
Dcp\ContainerNetworkEndpointProvisioner.cs (1)
251_loggerService.GetLogger(hostResource.Resource).LogWarning(
Dcp\DcpDependencyCheck.cs (2)
243logger.LogWarning("{Message}", detailedMessage); 259logger.LogWarning("{Message}", AppendContainerRuntimeCheckError(logMessage, error));
Dcp\DcpExecutor.cs (3)
474_distributedApplicationLogger.LogWarning("Unable to allocate a network port for service '{ServiceName}'; service may be unreachable and its clients may not work properly.", sar.Metadata.Name); 679_logger.LogWarning("Encountered the same service-endpoint combination more than once for {EndpointName} on resource {ResourceName} when creating default endpoint services. This should never happen.", endpoint.Name, sp.ModelResource.Name); 859_logger.LogWarning("Failed to persist public port {Port} for proxyless endpoint '{EndpointName}' on persistent resource '{ResourceName}'. Enable user secrets, set a fixed public port, or configure the endpoint to use a proxy to avoid recreating the persistent resource each run.", publicPort, endpoint.Name, resource.Name);
Dcp\DcpHost.cs (4)
156_logger.LogWarning("No trusted Aspire development certificate was found. See https://aka.ms/aspire/devcerts for more information."); 162_logger.LogWarning("The most recent development certificate isn't fully trusted. See https://aka.ms/aspire/devcerts for more information."); 224_logger.LogWarning("Failed to read the developer certificate thumbprint. DCP will use its default certificate."); 248_logger.LogWarning("Failed to cache the developer certificate files. DCP will use its default certificate.");
Dcp\ExecutableCreator.cs (1)
400logger.LogWarning(
Dcp\ResourceLogSource.cs (1)
94logger.LogWarning("Failed to write log entry to channel. Logs for {Kind} {Name} may be incomplete", resource.Kind, resource.Metadata.Name);
Devcontainers\DevcontainerSettingsWriter.cs (1)
265logger.LogWarning("Race condition detected when creating Devcontainer settings file: {Path}", path);
DeveloperCertificateService.cs (1)
84logger.LogWarning("Failed to load developer certificates from the CurrentUser/My certificate store. Automatic trust of development certificates will not be available. Reason: {Message}", ex.Message);
DistributedApplication.cs (1)
639logger.LogWarning("{EventName} is obsolete and is no longer raised by the DCP executor. Use {ResourceEventName} to observe per-resource endpoint allocation.", nameof(AfterEndpointsAllocatedEvent), nameof(ResourceEndpointsAllocatedEvent));
DistributedApplicationLifecycle.cs (1)
59logger.LogWarning(localOverrideError);
Lifecycle\TerminalHostEventingSubscriber.cs (2)
73_logger.LogWarning( 81_logger.LogWarning(
Lifecycle\TerminalHostOrphanCleanupService.cs (7)
151_logger.LogWarning( 182logger?.LogWarning( 288logger.LogWarning( 302logger.LogWarning( 326logger.LogWarning( 358logger.LogWarning( 412logger.LogWarning(
Orchestrator\ParameterProcessor.cs (1)
227.LogWarning("Parameter resource {ResourceName} could not be initialized. Waiting for user input.", parameterResource.Name);
Pipelines\Internal\FileDeploymentStateManager.cs (1)
321logger.LogWarning("Cannot save deployment state: AppHostSha is not configured");
Pipelines\PipelineActivityReporter.cs (1)
428_logger.LogWarning("Unable to match answer with name '{InputName}' to an input.", responseAnswer.Name);
ProjectResourceBuilderExtensions.cs (1)
592logger.LogWarning("Certificate trust scope is set to '{Scope}', but the feature is not supported for .NET projects on Windows. No certificate trust customization will be applied. Set the certificate trust scope to 'None' to disable this warning.", Enum.GetName(ctx.Scope));
Publishing\ContainerRuntimeResolver.cs (2)
87_logger.LogWarning("Container runtime '{RuntimeName}' is installed but not running. {Error}", detected.Name, detected.Error); 91_logger.LogWarning("No container runtime detected, defaulting to '{DefaultRuntime}'. Install Docker or Podman to use container features.", KnownContainerRuntimes.Docker);
ResourceBuilderExtensions.cs (4)
2516context.Logger.LogWarning("Could not execute callback to customize endpoint URL as no endpoint with name '{EndpointName}' could be found on resource '{ResourceName}'.", endpointName, builder.Resource.Name); 2562context.Logger.LogWarning("Could not execute callback to add an endpoint URL as no endpoint with name '{EndpointName}' could be found on resource '{ResourceName}'.", endpointName, builder.Resource.Name); 2604context.Logger.LogWarning("Could not execute callback to customize endpoint URL as no URL for endpoint '{EndpointName}' could be found on resource '{ResourceName}'.", endpoint.EndpointName, builder.Resource.Name); 2616context.Logger.LogWarning("Could not execute callback to add an endpoint URL as no endpoint with name '{EndpointName}' could be found on resource '{ResourceName}'.", endpoint.EndpointName, endpoint.Resource.Name);
src\Shared\ProcessSignaler.cs (1)
191logger.LogWarning("Could not gracefully stop Aspire application host process {Pid}; the error code from signal send operation was {ErrorCode}", pid, errno);
VersionChecking\VersionCheckService.cs (1)
176_logger.LogWarning("Could not ignore the version update notification to {Version} because user secrets are not configured correctly. See https://aka.ms/aspire/user-secrets for more information.", latestVersion);
Aspire.Hosting.Azure (3)
AzureProvisioningController.cs (2)
2211_logger.LogWarning("Azure drift detected for resources: {ResourceNames}.", string.Join(", ", driftedResources)); 3944resourceLogger.LogWarning("Cached Azure deployment state for {resourceName} points to a missing Azure resource. Reprovisioning.", resource.AzureResource.Name);
Provisioning\Provisioners\BicepProvisioner.cs (1)
1306resourceLogger.LogWarning("Failed to cancel Azure deployment {DeploymentName}: {Message}", deploymentName, ex.Message);
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
259_containerAppEnvironmentContext.Logger.LogWarning("More than 5 additional ports are not supported. See https://learn.microsoft.com/azure/container-apps/ingress-overview#tcp for more details.");
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
527context.Logger.LogWarning(
Aspire.Hosting.Azure.Sandboxes (1)
Internal\Adc\AzureDevComputeClient.cs (1)
338logger.LogWarning(
Aspire.Hosting.Blazor (2)
BlazorGatewayExtensions.cs (1)
406context.Logger.LogWarning(
BlazorHostedExtensions.cs (1)
237context.Logger.LogWarning(
Aspire.Hosting.Browsers (3)
BrowserConnectionDiagnosticsLogger.cs (2)
21_resourceLogger.LogWarning("[{SessionId}] Tracked browser debug connection lost: {Reason}. Attempting to reconnect.", _sessionId, DescribeConnectionProblem(exception)); 26_resourceLogger.LogWarning("[{SessionId}] Reconnect attempt {Attempt} failed: {Reason}", _sessionId, attempt, DescribeConnectionProblem(exception));
BrowserLogsEventLogger.cs (1)
250_resourceLogger.LogWarning("{Message}", sessionMessage);
Aspire.Hosting.Browsers.Tests (3)
src\Aspire.Hosting.Browsers\BrowserConnectionDiagnosticsLogger.cs (2)
21_resourceLogger.LogWarning("[{SessionId}] Tracked browser debug connection lost: {Reason}. Attempting to reconnect.", _sessionId, DescribeConnectionProblem(exception)); 26_resourceLogger.LogWarning("[{SessionId}] Reconnect attempt {Attempt} failed: {Reason}", _sessionId, attempt, DescribeConnectionProblem(exception));
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (1)
250_resourceLogger.LogWarning("{Message}", sessionMessage);
Aspire.Hosting.DevTunnels (4)
DevTunnelCliClient.cs (1)
347logger?.LogWarning("Failed to inspect {Resource} (attempt {Attempt} of {MaxAttempts}); retrying.", description, attempt, _maxCliAttempts);
DevTunnelLoginManager.cs (1)
48_logger.LogWarning($"Invalid {PreferredAuthProviderKey} value '{{PreferredProvider}}', defaulting to {{SelectedProvider}}", preferredProvider, selectedProvider);
DevTunnelMonitor.cs (2)
418_logger.LogWarning(DiagnosticPrefix + "The tunnel log stream ended. Health checks will continue reconciling tunnel status."); 571_logger.LogWarning(DiagnosticPrefix + "Some devtunnel output was not recognized, or a complete readiness message has not arrived. Health checks will reconcile tunnel status, but readiness still requires connection evidence from this local host. If status is incorrect, report an Aspire issue with the devtunnel version and relevant console output, after removing sensitive information.");
Aspire.Hosting.EntityFrameworkCore (4)
EFCoreOperationExecutor.cs (1)
453_logger.LogWarning(
EFResourceBuilderExtensions.cs (3)
968logger.LogWarning("EF Core {Operation} command was cancelled.", operationDisplayName); 1027logger.LogWarning("Migration '{MigrationName}' was added successfully. The target project needs to be recompiled before the migration can be applied.", migrationName); 1069logger.LogWarning("The last migration was removed successfully. The target project needs to be recompiled.");
Aspire.Hosting.Foundry (6)
HostedAgent\AzureHostedAgentResource.cs (3)
246context.Logger.LogWarning("Hosted agent '{Name}' version '{Version}' did not return an instance identity. The agent may not be able to access Foundry project storage.", Name, version.Version); 253context.Logger.LogWarning("Could not resolve the Microsoft Foundry resource ID for hosted agent '{Name}'. The agent identity '{PrincipalId}' may need the Foundry User role assigned manually.", Name, principalId); 359logger.LogWarning("Environment variable '{Key}' for resource '{Name}' has unknown value of type '{type}' and will be skipped.", key, target.Name, value.GetType().FullName);
PromptAgent\AzurePromptAgentResource.cs (1)
351var version = await DeployAsync(Project, context, message => logger.LogWarning("{Message}", message), cancellationToken).ConfigureAwait(false);
Toolbox\FoundryToolboxResource.cs (2)
80message => stepContext.Logger.LogWarning("{Message}", message), 352message => logger.LogWarning("{Message}", message),
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
2113resourceLogger.LogWarning("Could not find a node_modules directory in or above '{AppDirectory}' for resource '{ResourceName}'. Automatic HTTPS configuration won't be available. Ensure packages are installed before starting the app.", appDirectory, resource.Name);
Aspire.Hosting.Kubernetes (13)
CertManagerExtensions.cs (2)
547context.Logger.LogWarning( 643logger.LogWarning(
KubernetesEnvironmentResource.cs (11)
733logger.LogWarning( 908logger.LogWarning("Ingress '{IngressName}' produced no valid rules or default backend. Skipping.", ingressResource.Name); 936logger.LogWarning( 945logger.LogWarning( 974logger.LogWarning( 1282logger.LogWarning( 1291logger.LogWarning( 1501context.Logger.LogWarning( 1552context.Logger.LogWarning( 1657context.Logger.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode); 2294context.Logger.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode);
Aspire.Hosting.Maui (1)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
174logger.LogWarning("No build info annotation found for resource '{ResourceName}'. Startup cannot proceed.", resource.Name);
Aspire.Hosting.Radius (21)
Publishing\BicepPostProcessor.cs (1)
416logger.LogWarning(
Publishing\RadCredentialRegisterStep.cs (2)
288logger.LogWarning("rad (stderr): {Error}", redacted); 309logger.LogWarning("Cancellation requested — terminating rad credential register process.");
Publishing\RadiusDeploymentPipelineStep.cs (2)
589logger.LogWarning("rad (stderr): {Error}", e.Data); 606logger.LogWarning("Cancellation requested — terminating rad deploy process for environment '{EnvironmentName}'", _environment.Name);
Publishing\RadiusInfrastructureBuilder.cs (13)
1870_logger.LogWarning( 1989_logger.LogWarning( 2246_logger.LogWarning( 2328_logger.LogWarning( 2538_logger.LogWarning( 2614_logger.LogWarning( 2626_logger.LogWarning( 2959_logger.LogWarning( 2993_logger.LogWarning( 3705_logger.LogWarning( 4891_logger.LogWarning( 4900_logger.LogWarning( 5518_logger.LogWarning(
Publishing\SealedSecretApplyStep.cs (2)
789logger?.LogWarning("kubectl (stderr): {Error}", e.Data); 829logger?.LogWarning("Cancellation requested — terminating kubectl process.");
ResourceMapping\ResourceTypeMapper.cs (1)
170_logger.LogWarning(
Aspire.Hosting.RemoteHost (15)
AssemblyLoader.cs (1)
388logger.LogWarning(
Ats\CapabilityDispatcher.cs (1)
140_logger.LogWarning("{Message} at {Location}", diagnostic.Message, diagnostic.Location);
Ats\ExternalCapabilityRegistry.cs (1)
195_logger.LogWarning(
AtsContextFactory.cs (1)
74logger.LogWarning("[ATS] {Message} at {Location}", diagnostic.Message, diagnostic.Location);
CodeGeneration\CodeGeneratorResolver.cs (1)
138_logger.LogWarning(
Language\IntegrationHostProcessLauncher.cs (1)
63StandardErrorCallback = line => logger.LogWarning("IntegrationHost[{Name}]: {Line}", descriptor.PackageName, line)
Language\LanguageSupportResolver.cs (1)
123_logger.LogWarning(
OrphanDetector.cs (1)
87_logger.LogWarning("Parent process {ParentPid} is no longer running, shutting down...", pid);
RemoteAppHostService.cs (3)
69_logger.LogWarning("Rejected unauthenticated AppHost RPC client."); 140_logger.LogWarning(" invokeCapability({CapabilityId}) CapabilityException: {Code} - {Message}", capabilityId, ex.Error.Code, ex.Error.Message); 143_logger.LogWarning(" Details: param={Parameter}, expected={Expected}, actual={Actual}", ex.Error.Details.Parameter, ex.Error.Details.Expected, ex.Error.Details.Actual);
src\Shared\ChildProcess.cs (2)
588_logger.LogWarning("{FileName}({ProcessId}) did not stop within {Timeout}; terminating its process scope.", 662_logger.LogWarning("{FileName}({ProcessId}) stdout/stderr did not drain within idle timeout {Timeout} after exit",
src\Shared\ProcessSignaler.cs (1)
191logger.LogWarning("Could not gracefully stop Aspire application host process {Pid}; the error code from signal send operation was {ErrorCode}", pid, errno);
src\Shared\ProcessSupervisor.cs (1)
176logger.LogWarning("Owner process {OwnerPid} exited; terminating its supervised process scope.", parentId);
Aspire.Hosting.Testing.Tests (1)
ResourceLoggerForwarderServiceTests.cs (1)
118resourceLogger.LogWarning("Test warning message");
Aspire.Hosting.Tests (2)
Backchannel\BackchannelLoggerProviderTests.cs (1)
17logger.LogWarning("Message 2");
Pipelines\DistributedApplicationPipelineTests.cs (1)
1402logger.LogWarning($"Warning message");
Aspire.TerminalHost (1)
TerminalHostControlListener.cs (1)
164_logger.LogWarning(
BasketService (1)
BasketService.cs (1)
65_logger.LogWarning("RabbitMQ is unavailable. Ensure you have configured it in AppHosts's config / user secrets under 'ConnectionStrings:messaging'.");
blazor-devserver (1)
Server\Startup.cs (1)
33logger.LogWarning("Microsoft.AspNetCore.Components.WebAssembly.DevServer is deprecated and will be removed in a future release. Use Microsoft.AspNetCore.Components.Gateway instead.");
dotnet-format (11)
Analyzers\AnalyzerFormatter.cs (1)
226logger.LogWarning(Resources.Unable_to_fix_0_No_associated_code_fix_found, diagnosticId);
Analyzers\AnalyzerRunner.cs (1)
50logger.LogWarning(Resources.Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting, project.Name);
Analyzers\SolutionCodeFixApplier.cs (4)
27logger.LogWarning(Resources.Unable_to_fix_0_Code_fix_1_doesnt_support_Fix_All_in_Solution, diagnosticId, codeFix.GetType().Name); 73logger.LogWarning(Resources.Unable_to_fix_0_Code_fix_1_didnt_return_a_Fix_All_action, diagnosticId, codeFix.GetType().Name); 81logger.LogWarning(Resources.Unable_to_fix_0_Code_fix_1_returned_an_unexpected_operation, diagnosticId, codeFix.GetType().Name); 89logger.LogWarning(Resources.Failed_to_apply_code_fix_0_for_1_2, codeFix.GetType().Name, diagnosticId, ex.Message);
CodeFormatter.cs (1)
202logger.LogWarning(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, project.FilePath);
Formatters\OrganizeImportsFormatter.cs (1)
58logger.LogWarning(Resources.Unable_to_organize_imports_for_0_The_document_is_too_complex, Path.GetFileName(document.FilePath));
Logging\ILoggerExtensions.cs (1)
32logger.LogWarning(formattedMessage);
Workspaces\MSBuildWorkspaceLoader.cs (2)
79logger.LogWarning(Resources.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings); 93logger.LogWarning(diagnostic.Message);
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
116logger.LogWarning(Resources.Warning_ProjectAbbreviationDeprecated);
Microsoft.AspNetCore.Authentication.Negotiate (3)
Internal\LdapAdapter.cs (3)
101logger.LogWarning($"More than one response received for query: {filter} with distinguished name: {distinguishedName}"); 143logger.LogWarning($"No response received for query: {filter} with distinguished name: {distinguishedName}"); 243logger.LogWarning("LDAP account SID '{LdapSid}' for query '{User}' does not match the Kerberos-authenticated principal SID '{IdentitySid}'. ", ldapSid, user, identitySid);
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
186logger.LogWarning($"The assembly {assemblyName} was specified multiple times. Hosting startup assemblies should only be specified once.");
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
120_logger.LogWarning("User account locked out.");
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
120_logger.LogWarning("User account locked out.");
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (4)
125_globalLogger.LogWarning($"Test name {testName} is too long. Please shorten test name."); 137_globalLogger.LogWarning($"To prevent long paths test name was shortened to {testName}."); 144_globalLogger.LogWarning($"Output log file {testOutputFile} already exists. Please try to keep log file names unique."); 152_globalLogger.LogWarning($"To resolve log file collision, the enumerated file {testOutputFile} will be used.");
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.FeatureCollection.cs (1)
462_logger.LogWarning(CoreStrings.MaxRequestLimitWarning);
Core\IISHttpServer.cs (1)
89_logger.LogWarning(CoreStrings.MaxRequestLimitWarning);
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Common\ProcessLoggingExtensions.cs (1)
25logger.LogWarning($"{prefix} stderr: {{line}}", dataArgs.Data);
Common\RetryHelper.cs (3)
35logger.LogWarning("Retry count {retryCount}..", retry + 1); 41logger.LogWarning("Retrying a service unavailable error."); 58logger.LogWarning("Failed to complete the request : {0}.", exception.Message);
Deployers\ApplicationDeployer.cs (4)
88Logger.LogWarning( 125Logger.LogWarning("Unable to terminate the host process with process Id '{processId}", hostProcess.Id); 134Logger.LogWarning("Host process already exited or never started successfully."); 158Logger.LogWarning("User cleanup code failed with exception : {exception}", exception.Message);
Deployers\NginxDeployer.cs (1)
182Logger.LogWarning("Unable to find nginx PID file: {pidFile}", pidFile);
PublishedApplication.cs (1)
24e => _logger.LogWarning($"Failed to delete directory : {e.Message}"),
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\AddressBinder.cs (1)
221context.Logger.LogWarning(CoreStrings.OverridingWithKestrelOptions, string.Join(", ", _originalAddresses));
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
251_logger.LogWarning($"The SPA process shutdown script '{stopProcess?.Id}' failed to start. The SPA proxy might" + 311_logger.LogWarning($"The SPA process shutdown script '{stopProcess?.Id}' failed to start. The SPA proxy might" +
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
41logger.LogWarning($"msbuild: {args.Diagnostic}");
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
77_logger?.LogWarning($"An installation of Mono MSBuild could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors."); 91_logger?.LogWarning($"An installation of Visual Studio or the Build Tools for Visual Studio could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors.");
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (1)
1434_logger?.LogWarning($"Failed to retrieve runtime process info, fallback to current process information, pid={_runtimeProcessId}, cookie={_runtimeInstanceId}.");
Microsoft.DotNet.HotReload.Watch (17)
Browser\BrowserLauncher.cs (1)
103logger.LogWarning("Unable to launch the browser. Url '{Url}'.", launchUrl);
Build\LoadedProjectGraph.cs (1)
75logger.LogWarning("Project '{ProjectPath}' has multiple instances targeting {TargetFramework}.", projectPath, targetFramework);
Build\ProjectGraphFactory.cs (1)
107logger.LogWarning(e.Message);
FileWatcher\FileWatcher.cs (1)
158logger.LogWarning("The file watcher observing '{WatchedDirectory}' encountered an error: {Message}", watcher.WatchedDirectory, error.Message);
HotReload\ProjectUpdatesBuilder.StaticWebAssets.cs (1)
78Logger.LogWarning("[{ProjectName}] Failed to regenerate scoped CSS bundle.", failedInstance.GetDisplayName());
HotReload\RunningProjectsManager.cs (1)
217logger.LogWarning(rudeEditMessage);
Process\LaunchSettingsProfile.cs (3)
41logger.LogWarning(message); 75logger.LogWarning("Unable to find launch profile with name '{ProfileName}'. Falling back to default profile.", launchProfileName); 83logger.LogWarning("Note: Launch profile names are case-sensitive. Did you mean '{ProfileName}'?", caseInsensitiveNamedProfile);
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
228Logger.LogWarning("Further changes won't be applied to this process.");
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (4)
171logger.LogWarning("Failed to parse '{FilePath}': ContentRoots path not fully qualified: {Root}", filePath, root); 199logger.LogWarning("Failed to parse '{FilePath}': Asset has no URL", filePath); 212logger.LogWarning("Failed to parse '{FilePath}': Missing Asset", filePath); 230logger.LogWarning("Failed to parse '{FilePath}': Invalid value of ContentRootIndex: {Value}", filePath, index);
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (2)
138logger.LogWarning("WebSocket connection rejected: missing subprotocol (shared secret)"); 150logger.LogWarning("WebSocket connection rejected: invalid shared secret - {Message}", ex.Message);
UI\BuildOutput.cs (1)
32logger.LogWarning(line);
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\TelemetryConstants.cs (1)
156logger.LogWarning("Could not determine sentinel file path.");
Microsoft.Extensions.Diagnostics.Testing.Tests (5)
Logging\FakeLogCollectorTests.cs (4)
63logger.LogWarning("Hello world!"); 105logger.LogWarning("Hello world!"); 144logger.LogWarning("Hello world!"); 176logger.LogWarning("Hello world!");
Logging\FakeLoggerTests.cs (1)
211logger.LogWarning("M3");
Microsoft.Extensions.Hosting.Testing.Tests (1)
HostingFakesExtensionsTests.cs (1)
322logger.LogWarning(message);
Microsoft.Extensions.Telemetry.Tests (28)
Buffering\GlobalBufferIncludeScopesTests.cs (6)
30logger.LogWarning("buffered {Number}", 1); 68logger.LogWarning("buffered"); 87logger.LogWarning("buffered"); 109logger.LogWarning("buffered"); 134logger.LogWarning("buffered"); 137logger.LogWarning("too big to be buffered");
Buffering\GlobalBufferTests.cs (5)
34logger.LogWarning("Hello {Name}", "World"); 66logger.LogWarning("Hello {Name}", "World"); 88logger.LogWarning("Hello {Name}", "World"); 119logger.LogWarning("Without exception"); 155logger.LogWarning("Record {Index}", i);
Logging\ExtendedLoggerFactoryTests.cs (2)
92logger1.LogWarning("MSG0"); 93logger2.LogWarning("MSG1");
Logging\ExtendedLoggerTests.cs (15)
63logger.LogWarning("MSG0"); 148logger.LogWarning("MSG0"); 185logger.LogWarning("MSG0"); 940logger.LogWarning("MSG0"); 972logger.LogWarning("MSG0"); 1013logger.LogWarning("MSG0"); 1014logger.LogWarning("MSG1"); 1015logger.LogWarning("MSG2"); 1016logger.LogWarning("MSG3"); 1017logger.LogWarning("MSG4"); 1018logger.LogWarning("MSG5"); 1019logger.LogWarning("MSG6"); 1020logger.LogWarning("MSG7"); 1021logger.LogWarning("MSG8"); 1022logger.LogWarning("MSG9");
Microsoft.Maui (1)
Hosting\Dispatching\AppHostBuilderExtensions.cs (1)
65 services.CreateLogger<Dispatcher>()?.LogWarning("Replaced an existing DispatcherProvider with one from the service provider.");
Microsoft.Maui.Controls (34)
BindableObject.cs (7)
89 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 103 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 298 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the a OneWay Binding \"{targetProperty.PropertyName}\" because it is readonly."); 493 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 521 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot set the BindableProperty \"{property.PropertyName}\" because it is readonly."); 562 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot convert {value} to type '{property.ReturnType}'"); 568 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Value is an invalid value for {property.PropertyName}");
BindablePropertyConverter.cs (2)
84 Application.Current?.FindMauiContext()?.CreateLogger<BindablePropertyConverter>()?.LogWarning("Can't resolve properties with xml namespace prefix."); 90 Application.Current?.FindMauiContext()?.CreateLogger<BindablePropertyConverter>()?.LogWarning($"Can't resolve {value}. Accepted syntax is Type.PropertyName.");
BindingBase.cs (2)
157 Application.Current?.FindMauiContext()?.CreateLogger<BindingBase>()?.LogWarning("FormatException"); 172 Application.Current?.FindMauiContext()?.CreateLogger<BindingBase>()?.LogWarning("FormatException");
Element\Element.cs (3)
300 .LogWarning($"The ParentOverride on {this} has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui"); 355 .LogWarning($"The RealParent on {this} has been Garbage Collected. This should never happen. Please log a bug: https://github.com/dotnet/maui"); 409 Application.Current?.FindMauiContext()?.CreateLogger<Element>()?.LogWarning($"{this} is already a child of {element}. Remove {this} from {element} before adding to {value}.");
Interactivity\EventTrigger.cs (1)
85 Application.Current?.FindMauiContext()?.CreateLogger<EventTrigger>()?.LogWarning("Cannot attach EventTrigger to {Type}.{Event}. Check if the handler exists and if the signature is right.", bindable.GetType(), Event);
ListView\ListView.cs (2)
638 Application.Current?.FindMauiContext()?.CreateLogger<ListView>()?.LogWarning("GroupHeaderTemplate and GroupDisplayBinding cannot be set at the same time, setting GroupHeaderTemplate to null"); 648 Application.Current?.FindMauiContext()?.CreateLogger<ListView>()?.LogWarning("GroupHeaderTemplate and GroupDisplayBinding cannot be set at the same time, setting GroupDisplayBinding to null");
MergedStyle.cs (1)
49 Application.Current?.FindMauiContext()?.CreateLogger<Style>()?.LogWarning("Style TargetType {FullName} is not compatible with element target type {TargetType}", value.TargetType.FullName, TargetType);
NavigationPage\NavigationPage.cs (1)
878 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning("RemovePage called for CurrentPage object. This can result in undesired behavior, consider calling PopAsync instead.");
NavigationPage\NavigationPage.Legacy.cs (1)
241 Application.Current?.FindMauiContext()?.CreateLogger<NavigationPage>()?.LogWarning("RemovePage called for CurrentPage object. This can result in undesired behavior, consider calling PopAsync instead.");
RadioButton\RadioButton.cs (1)
632 Application.Current?.FindMauiContext()?.CreateLogger<RadioButton>()?.LogWarning("Warning - {RuntimePlatform} does not support View as the {PropertyName} property of RadioButton; the return value of the ToString() method will be displayed instead.", DeviceInfo.Platform, ContentProperty.PropertyName);
Shell\ShellSection.cs (1)
503 Application.Current?.FindMauiContext()?.CreateLogger<ShellSection>()?.LogWarning("Failed to Create Content For: {route}", route);
StreamWrapper.cs (1)
99 .LogWarning("Could not retrieve {Uri}, status code {StatusCode}", uri, response.StatusCode);
SwipeView\SwipeItems.cs (1)
165 ?.LogWarning($"{e} is already part of {e.Parent}. Remove from {e.Parent} to avoid inconsistent behavior.");
TypeConversionHelper.cs (1)
173 Application.Current?.FindMauiContext()?.CreateLogger(nameof(TypeConversionHelper))?.LogWarning(
Visuals\VisualMarker.cs (2)
32 logger?.LogWarning("Material needs to be registered on {RuntimePlatform} by calling FormsMaterial.Init() after the Microsoft.Maui.Controls.Forms.Init method call.", DeviceInfo.Platform); 34 logger?.LogWarning("Material is currently not support on {RuntimePlatform}.", DeviceInfo.Platform);
Visuals\VisualTypeConverter.cs (5)
86 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Cannot scan assembly {assembly} for Visual types.", assembly.FullName); 90 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to load a dependent assembly for {assembly}. It cannot be scanned for Visual types.", assembly.FullName); 94 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to load a dependent assembly for {assembly}. Types cannot be loaded.", assembly.FullName); 146 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning("Unable to register {visualType} please add a public default constructor", visualType.ToString()); 165 Application.Current?.FindMauiContext()?.CreateLogger<IVisual>()?.LogWarning(
Xaml\Diagnostics\BindingDiagnostics.cs (2)
18 Application.Current?.FindMauiContext()?.CreateLogger<BindingDiagnostics>()?.LogWarning(message, messageArgs); 24 Application.Current?.FindMauiContext()?.CreateLogger<BindingDiagnostics>()?.LogWarning(message, messageArgs);
Microsoft.NET.Build.Containers (1)
LocalDaemons\ContainerRuntimeOperations.cs (1)
129_logger.LogWarning(
Microsoft.TemplateEngine.Cli (2)
Commands\create\InstantiateCommand.cs (2)
142environmentSettings.Host.Logger.LogWarning(LocalizableStrings.InstantiateCommand_Warning_FailedToGetTemplatePackageForTemplateGroup, templateGroup.GroupIdentity); 335environmentSettings.Host.Logger.LogWarning(LocalizableStrings.InstantiateCommand_Warning_FailedToGetTemplatePackageForTemplate, template.Identity);
Microsoft.TemplateEngine.Edge (10)
Constraints\WorkloadConstraintFactory.cs (1)
116logger.LogWarning(string.Format(
Installers\NuGet\NuGetLogger.cs (1)
86_baseLogger.LogWarning(data);
Settings\TemplateCache.cs (1)
277logger.LogWarning(string.Format(
Settings\TemplatePackageManager.cs (2)
362_logger.LogWarning(LocalizableStrings.TemplatePackageManager_Error_FailedToScan, allTemplatePackages[index].MountPointUri, ex.Message); 380_logger.LogWarning(LocalizableStrings.TemplatePackageManager_Error_FailedToStoreCache, ex.Message);
Template\ParameterSetBuilder.cs (1)
261logger.LogWarning(LocalizableStrings.ConditionEvaluation_Warning_CyclicDependency, cycle.Select(p => p.ParameterDefinition.Name).ToCsvString());
TemplateConstraintManager.cs (1)
71_logger.LogWarning(LocalizableStrings.TemplateConstraintManager_Error_FailedToInitialize, constraint.Type, constraint.Task.Exception.Message);
ValidationUtils.cs (3)
33logger.LogWarning(LocalizableStrings.Validation_InvalidTemplateLoc, invalidLoc.Locale, templateDisplayName); 60logger.LogWarning(LocalizableStrings.Validation_InvalidTemplateLoc, template.Localization!.Locale, templateDisplayName); 117IValidationEntry.SeverityLevel.Warning => (s) => logger.LogWarning(s),
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (22)
BindSymbolEvaluator.cs (5)
55_logger.LogWarning(LocalizableStrings.BindSymbolEvaluator_Warning_DefaultValueConversionFailure, bindSymbol.Name, bindSymbol.DefaultValue, bindSymbol.DataType); 94_logger.LogWarning(LocalizableStrings.BindSymbolEvaluator_Warning_EvaluationError, currentSymbol.Name); 110_logger.LogWarning(LocalizableStrings.BindSymbolEvaluator_Warning_EvaluationError, currentSymbol.Name); 125_logger.LogWarning( 219_logger.LogWarning(LocalizableStrings.BindSymbolEvaluator_Warning_ValueAvailableFromMultipleSources, configuredBinding, sourcesList, prefixesList);
ConfigModel\SymbolModelConverter.cs (1)
30logger?.LogWarning(ex.Message);
ConfigModel\TemplateConfigModel.cs (2)
184logger1?.LogWarning(LocalizableStrings.SimpleConfigModel_Error_Constraints_InvalidSyntax, nameof(Constraints).ToLowerInvariant()); 191logger1?.LogWarning(LocalizableStrings.SimpleConfigModel_Error_Constraints_MissingType, obj.ToJsonString(), nameof(TemplateConstraintInfo.Type).ToLowerInvariant());
DirectoryBasedTemplate.cs (1)
148Logger.LogWarning(LocalizableStrings.LocalizationModelDeserializer_Error_UnknownLocale, localeStr);
GlobalRunSpec.cs (1)
168host.Logger.LogWarning($"Operation type = [{opType}] from configuration is unknown.");
MacroProcessor.cs (2)
36environmentSettings.Host.Logger.LogWarning( 61environmentSettings.Host.Logger.LogWarning(LocalizableStrings.MacroProcessor_Warning_UnknownMacro, config.VariableName, config.Type);
Macros\GeneratePortNumberConfig.cs (3)
75logger.LogWarning(LocalizableStrings.GeneratePortNumberConfig_Warning_InvalidLowBound, low, LowPortDefault); 81logger.LogWarning(LocalizableStrings.GeneratePortNumberConfig_Warning_InvalidHighBound, high, HighPortDefault); 87logger.LogWarning(LocalizableStrings.GeneratePortNumberConfig_Warning_InvalidLowHighBound, low, high, LowPortDefault, HighPortDefault);
RunnableProjectConfig.cs (5)
72Logger.LogWarning(LocalizableStrings.LocalizationModelDeserializer_Error_FailedToParse, localeConfigFile.GetDisplayPath()); 308EngineEnvironmentSettings.Host.Logger.LogWarning(LocalizableStrings.RunnableProjectConfig_OperationSetup_UnknownForm, p.Name, formName); 366EngineEnvironmentSettings.Host.Logger.LogWarning(LocalizableStrings.RunnableProjectConfig_OperationSetup_UnknownForm, derivedSymbol.Name, derivedSymbol.ValueTransform); 396EngineEnvironmentSettings.Host.Logger.LogWarning(LocalizableStrings.RunnableProjectConfig_OperationSetup_UnknownForm, baseValueSymbol.Name, formName); 493EngineEnvironmentSettings.Host.Logger.LogWarning(
ScannedTemplateInfo.cs (2)
75Logger.LogWarning(LocalizableStrings.LocalizationModelDeserializer_Error_FailedToParse, locFile.GetDisplayPath()); 85Logger.LogWarning(LocalizableStrings.LocalizationModelDeserializer_Error_FailedToParse, locFile.GetDisplayPath());
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
227_environmentSettings.Host.Logger.LogWarning(LocalizableStrings.BlobStoreSourceFileProvider_Warning_LocalCacheWillBeUsed);