240 references to LogWarning
aspire (65)
Agents\Playwright\PlaywrightCliInstaller.cs (6)
101logger.LogWarning("Failed to resolve {Package}@{Range} from npm registry. Is npm installed?", PackageName, VersionRange); 138logger.LogWarning( 164logger.LogWarning( 191logger.LogWarning("Failed to download {Package}@{Version}", PackageName, packageInfo.Version); 198logger.LogWarning( 216logger.LogWarning("Failed to install {Package}@{Version} globally", PackageName, packageInfo.Version);
Backchannel\AppHostCliBackchannel.cs (2)
245logger.LogWarning("Timed out waiting for backchannel reconnection"); 384logger.LogWarning("Timed out waiting for backchannel reconnection");
Backchannel\AppHostConnectionHelper.cs (1)
57logger.LogWarning("Selected AppHost at '{SelectedPath}' is no longer running, falling back to selection logic", selectedPath);
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
285logger.LogWarning("Could not extract hash from socket path: {SocketPath}", socketPath); 458logger.LogWarning("Failed to add connection for socket {SocketPath}", socketPath);
Certificates\CertificateGeneration\CertificateManager.cs (27)
1220_logger.LogWarning("An error has occurred while running the trust command: {ExitCode}.", exitCode); 1232_logger.LogWarning("An error has occurred while running the remove trust command: {ExitCode}.", exitCode); 1248_logger.LogWarning("An error has occurred while running the remove trust command: {ExitCode}.", exitCode); 1368_logger.LogWarning("The on-disk store directory was not found."); 1380_logger.LogWarning("The NSS database '{NssDb}' provided via {EnvironmentVariable} does not exist.", nssDb, environmentVariable); 1384_logger.LogWarning("The certificate is not trusted by .NET. This will likely affect System.Net.Http.HttpClient."); 1388_logger.LogWarning("The certificate is not trusted by OpenSSL. Ensure that the {EnvVarName} environment variable is set correctly.", envVarName); 1392_logger.LogWarning("The certificate is not trusted in the NSS database in '{Path}'. This will likely affect the {Browser} family of browsers.", path, browser); 1428_logger.LogWarning("Failed to trust the certificate in .NET: {ExceptionMessage}.", exceptionMessage); 1436_logger.LogWarning("Clients that validate certificate trust using OpenSSL will not trust the certificate."); 1444_logger.LogWarning("Failed to trust the certificate in the NSS database in '{Path}'. This will likely affect the {Browser} family of browsers.", path, browser); 1452_logger.LogWarning("Failed to untrust the certificate in .NET: {ExceptionMessage}.", exceptionMessage); 1456_logger.LogWarning("Failed to untrust the certificate in OpenSSL."); 1464_logger.LogWarning("Failed to remove the certificate from the NSS database in '{Path}'.", path); 1472_logger.LogWarning("The certificate is only partially trusted - some clients will not accept it."); 1476_logger.LogWarning("Failed to look up the certificate in the NSS database in '{Path}': {ExceptionMessage}.", path, exceptionMessage); 1480_logger.LogWarning("Failed to add the certificate to the NSS database in '{Path}': {ExceptionMessage}.", path, exceptionMessage); 1484_logger.LogWarning("Failed to remove the certificate from the NSS database in '{Path}': {ExceptionMessage}.", path, exceptionMessage); 1488_logger.LogWarning("Failed to find the Firefox profiles in directory '{FirefoxDirectory}': {Message}.", firefoxDirectory, message); 1496_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); 1500_logger.LogWarning("The {OpenSslCertDirectoryOverrideVariableName} environment variable is set but will not be consumed while checking trust.", openSslCertDirectoryOverrideVariableName); 1504_logger.LogWarning("The {OpenSslCommand} command is unavailable. It is required for updating certificate trust in OpenSSL.", openSslCommand); 1508_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); 1516_logger.LogWarning("Failed to delete certificate file '{CertPath}': {ExceptionMessage}.", certPath, exceptionMessage); 1532_logger.LogWarning("Directory '{DirectoryPath}' may be readable by other users.", directoryPath); 1548_logger.LogWarning("Failed to trust the certificate in the Windows certificate store via WSL."); 1552_logger.LogWarning("Failed to trust the certificate in the Windows certificate store via WSL: {ExceptionMessage}.", exceptionMessage);
Commands\AgentMcpCommand.cs (1)
241_logger.LogWarning("Unknown tool requested: {ToolName}", toolName);
Commands\AppHostLauncher.cs (1)
250logger.LogWarning("Child CLI process exited with code {ExitCode}", exitCode);
Commands\Sdk\SdkGenerateCommand.cs (1)
182_logger.LogWarning("Skipping file with invalid path: {FileName}", fileName);
Commands\UpdateCommand.cs (1)
428_logger.LogWarning("Update failed, restoring backup");
Configuration\AspireConfigFile.cs (2)
249logger?.LogWarning( 258logger?.LogWarning(
DotNet\DotNetCliExecution.cs (1)
133_logger.LogWarning("Stream forwarders for PID {ProcessId} did not complete within timeout after stream close. Continuing anyway.", _process.Id);
DotNet\DotNetCliRunner.cs (2)
391logger.LogWarning( 400logger.LogWarning(
Mcp\Docs\DocsIndexService.cs (1)
167_logger.LogWarning("Failed to fetch documentation");
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
65logger.LogWarning("No Aspire AppHost is currently running");
Mcp\Tools\ListConsoleLogsTool.cs (1)
58logger.LogWarning("No Aspire AppHost is currently running");
Mcp\Tools\ListResourcesTool.cs (1)
62logger.LogWarning("No Aspire AppHost is currently running");
Mcp\Tools\McpToolHelpers.cs (2)
17logger.LogWarning("No Aspire AppHost is currently running"); 24logger.LogWarning("Dashboard API is not available");
Npm\SigstoreNpmProvenanceChecker.cs (2)
192logger.LogWarning("Could not parse GitHub owner/repo from expected source repository: {ExpectedSourceRepository}", expectedSourceRepository); 229logger.LogWarning(
NuGet\BundleNuGetPackageCache.cs (1)
190_logger.LogWarning("NuGet search returned empty output");
Projects\PrebuiltAppHostServer.cs (2)
448_logger.LogWarning("Integration libs path is null - assemblies may not resolve correctly"); 519_logger.LogWarning("Project reference assembly names file not found at {Path}", filePath);
Projects\ProcessGuestLauncher.cs (1)
109_logger.LogWarning("{Language}({ProcessId}): Timed out waiting for output streams to drain after process exit", _language, process.Id);
Projects\ProjectLocator.cs (1)
110logger.LogWarning("The .NET SDK is not available. Marking .NET projects as unsupported.");
Projects\ProjectUpdater.cs (2)
212logger.LogWarning("Falling back to parsing for '{ProjectFile}'. Reason: {Message}", projectFile.FullName, ex.Message); 217logger.LogWarning("Update plan will be generated using fallback parsing; dependency accuracy may be reduced.");
Projects\RunningInstanceManager.cs (2)
55_logger.LogWarning("Failed to get AppHost information from running instance"); 75_logger.LogWarning("Failed to stop running instance within timeout");
Telemetry\UnixMachineInformationProvider.cs (1)
49_logger.LogWarning("Unable to persist deviceId.");
Aspire.Cli.Tests (1)
Interaction\SpectreConsoleLoggerProviderTests.cs (1)
54logger.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 (21)
Components\Interactions\InteractionsProvider.cs (2)
274Logger.LogWarning("Unexpected interaction kind: {Kind}", item.KindCase); 509Logger.LogWarning("Unexpected interaction kind: {Kind}", item.KindCase);
Components\Pages\ComponentTelemetryContext.cs (1)
100logger.LogWarning("Telemetry service for '{ComponentType}' is not initialized. Cannot post properties.", _componentId);
Components\Pages\ConsoleLogs.razor.cs (2)
558Logger.LogWarning("No resource selected for command execution."); 641Logger.LogWarning("Failed to add subscription for resource {ResourceName} - may already exist.", resourceName);
Components\Pages\Login.razor.cs (1)
104Logger.LogWarning("Unexpected result from validateToken: {Result}", result);
DashboardWebApplication.cs (4)
403_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"); 411_logger.LogWarning("MCP server is unsecured. Untrusted apps can access sensitive information."); 419_logger.LogWarning("Dashboard API is unsecured. Untrusted apps can access sensitive telemetry data."); 666logger.LogWarning(
Model\BrowserTimeProvider.cs (1)
37_logger.LogWarning("Couldn't find time zone '{TimeZone}'. Defaulting to UTC.", timeZone);
Model\IconResolver.cs (1)
65_logger.LogWarning("Icon '{IconName}' (variant: {IconVariant}, size: {IconSize}) could not be resolved.", key.IconName, key.IconVariant, key.DesiredIconSize);
Model\Otlp\ResourcesSelectHelpers.cs (1)
67logger.LogWarning(
Model\TelemetryImportService.cs (3)
112_logger.LogWarning("Empty JSON file: {FileName}", fileName); 129_logger.LogWarning("Could not deserialize telemetry data from file: {FileName}", fileName); 158_logger.LogWarning("No telemetry data found in file: {FileName}", fileName);
Otlp\Storage\TelemetryRepository.Watchers.cs (2)
235_logger.LogWarning("Span watcher channel is full, dropping span {SpanId}. Consumer may be slow.", span.SpanId); 278_logger.LogWarning("Log watcher channel is full, dropping log {LogId}. Consumer may be slow.", log.InternalId);
ServiceClient\DashboardClient.cs (1)
460_logger.LogWarning("Server does not support interactions.");
ServiceClient\Partials.cs (1)
175logger.LogWarning("Duplicate property '{PropertyName}' found in resource '{ResourceName}'.", propertyViewModel.Name, Name);
Telemetry\DashboardTelemetrySender.cs (1)
67_logger.LogWarning("Unset context property in request {Name}.", context.Name);
Aspire.Hosting (33)
ApplicationModel\CommandsConfigurationExtensions.cs (2)
335mainLogger.LogWarning(BuildLogPrefix + "Rebuild was cancelled."); 372targetLogger.LogWarning(BuildLogPrefix + "{Content}", line.Content);
ApplicationModel\Docker\ContainerFilesExtensions.cs (2)
37logger?.LogWarning("Cannot get container image name for source resource {SourceName}, skipping", source.Name); 95logger?.LogWarning("Cannot get container image name for source resource {SourceName}, skipping", source.Name);
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 (6)
376logger.LogWarning("Application model not found."); 390logger.LogWarning("Dashboard MCP endpoint not found or not allocated."); 397logger.LogWarning("Dashboard MCP endpoint URL is not allocated."); 407logger.LogWarning("Dashboard MCP API key is not available."); 667logger.LogWarning("Resource '{ResourceName}' not found. No logs will be returned.", resourceName); 856logger.LogWarning("IHostApplicationLifetime not found, cannot stop AppHost");
Backchannel\DashboardUrlsHelper.cs (1)
53logger.LogWarning("Dashboard options not found.");
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
103logger.LogWarning(MessageStrings.PersistentContainerWithoutUserSecrets, resource.Name);
Dashboard\DashboardServiceHost.cs (1)
195_logger.LogWarning("Unexpectedly long wait for resource service URI ({Elapsed}).", elapsed);
Dcp\DcpDependencyCheck.cs (2)
248logger.LogWarning("Container runtime '{Runtime}' could not be found. See https://aka.ms/dotnet/aspire/containers for more details on supported container runtimes.", containerRuntime); 267logger.LogWarning(logMessage, containerRuntime);
Dcp\DcpExecutor.cs (2)
907_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); 1308resourceLogger.LogWarning("Host endpoint '{EndpointName}' on resource '{HostResource}' is referenced by a container resource, but the endpoint is using a network protocol '{Protocol}' other than TCP. Only TCP is supported for container-to-host references.",
Dcp\DcpHost.cs (2)
163_logger.LogWarning("No trusted Aspire development certificate was found. See https://aka.ms/aspire/devcerts for more information."); 169_logger.LogWarning("The most recent development certificate isn't fully trusted. See https://aka.ms/aspire/devcerts for more information.");
Dcp\ResourceLogSource.cs (1)
69logger.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)
131logger.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);
DistributedApplicationLifecycle.cs (1)
49logger.LogWarning(localOverrideError);
Orchestrator\ParameterProcessor.cs (1)
170.LogWarning("Parameter resource {ResourceName} could not be initialized. Waiting for user input.", parameterResource.Name);
Pipelines\Internal\FileDeploymentStateManager.cs (2)
93logger.LogWarning("Cannot save deployment state: AppHostSha is not configured"); 116logger.LogWarning(
Pipelines\PipelineActivityReporter.cs (1)
413_logger.LogWarning("Unable to match answer with name '{InputName}' to an input.", responseAnswer.Name);
ProjectResourceBuilderExtensions.cs (1)
450logger.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));
ResourceBuilderExtensions.cs (2)
1510context.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); 1558context.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);
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
253_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.DevTunnels (1)
DevTunnelLoginManager.cs (1)
49_logger.LogWarning($"Invalid {PreferredAuthProviderKey} value '{{PreferredProvider}}', defaulting to {{SelectedProvider}}", preferredProvider, selectedProvider);
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
194logger.LogWarning("Environment variable '{Key}' for resource '{Name}' has unknown value of type '{type}' and will be skipped.", key, resource.Name, value.GetType().FullName);
Aspire.Hosting.RemoteHost (5)
Ats\CapabilityDispatcher.cs (1)
109_logger.LogWarning("{Message} at {Location}", diagnostic.Message, diagnostic.Location);
AtsContextFactory.cs (1)
44logger.LogWarning("[ATS] {Message} at {Location}", diagnostic.Message, diagnostic.Location);
OrphanDetector.cs (1)
55_logger.LogWarning("Parent process {ParentPid} is no longer running, shutting down...", pid);
RemoteAppHostService.cs (2)
82_logger.LogWarning(" invokeCapability({CapabilityId}) CapabilityException: {Code} - {Message}", capabilityId, ex.Error.Code, ex.Error.Message); 85_logger.LogWarning(" Details: param={Parameter}, expected={Expected}, actual={Actual}", ex.Error.Details.Parameter, ex.Error.Details.Expected, ex.Error.Details.Actual);
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)
1359logger.LogWarning($"Warning message");
BasketService (1)
BasketService.cs (1)
66_logger.LogWarning("RabbitMQ is unavailable. Ensure you have configured it in AppHosts's config / user secrets under 'ConnectionStrings:messaging'.");
dotnet-format (11)
Analyzers\AnalyzerFormatter.cs (1)
226logger.LogWarning(Resources.Unable_to_fix_0_No_associated_code_fix_found, diagnosticId);
Analyzers\AnalyzerRunner.cs (1)
44logger.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)
199logger.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)
77logger.LogWarning(Resources.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings); 91logger.LogWarning(diagnostic.Message);
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
115logger.LogWarning(Resources.Warning_ProjectAbbreviationDeprecated);
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.Server.Kestrel.Core (1)
Internal\AddressBinder.cs (1)
221context.Logger.LogWarning(CoreStrings.OverridingWithKestrelOptions, string.Join(", ", _originalAddresses));
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
41logger.LogWarning($"msbuild: {args.Diagnostic}");
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (2)
71_logger?.LogWarning($"An installation of Mono MSBuild could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors."); 85_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)
71logger.LogWarning("Project '{ProjectPath}' has multiple instances targeting {TargetFramework}.", projectPath, targetFramework);
Build\ProjectGraphFactory.cs (1)
106logger.LogWarning(e.Message);
FileWatcher\FileWatcher.cs (1)
158logger.LogWarning("The file watcher observing '{WatchedDirectory}' encountered an error: {Message}", watcher.WatchedDirectory, error.Message);
HotReload\CompilationHandler.cs (2)
291logger.LogWarning(rudeEditMessage); 804Logger.LogWarning("[{ProjectName}] Failed to regenerate scoped CSS bundle.", failedInstance.GetDisplayName());
Process\LaunchSettingsProfile.cs (3)
36logger.LogWarning(message); 70logger.LogWarning("Unable to find launch profile with name '{ProfileName}'. Falling back to default profile.", launchProfileName); 78logger.LogWarning("Note: Launch profile names are case-sensitive. Did you mean '{ProfileName}'?", caseInsensitiveNamedProfile);
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
198Logger.LogWarning("Further changes won't be applied to this process.");
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (4)
146logger.LogWarning("Failed to parse '{FilePath}': ContentRoots path not fully qualified: {Root}", filePath, root); 174logger.LogWarning("Failed to parse '{FilePath}': Asset has no URL", filePath); 187logger.LogWarning("Failed to parse '{FilePath}': Missing Asset", filePath); 205logger.LogWarning("Failed to parse '{FilePath}': Invalid value of ContentRootIndex: {Value}", filePath, index);
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (2)
130logger.LogWarning("WebSocket connection rejected: missing subprotocol (shared secret)"); 142logger.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)
52logger.LogWarning("Hello world!"); 94logger.LogWarning("Hello world!"); 133logger.LogWarning("Hello world!"); 165logger.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 (13)
Logging\ExtendedLoggerTests.cs (13)
148logger.LogWarning("MSG0"); 935logger.LogWarning("MSG0"); 967logger.LogWarning("MSG0"); 1008logger.LogWarning("MSG0"); 1009logger.LogWarning("MSG1"); 1010logger.LogWarning("MSG2"); 1011logger.LogWarning("MSG3"); 1012logger.LogWarning("MSG4"); 1013logger.LogWarning("MSG5"); 1014logger.LogWarning("MSG6"); 1015logger.LogWarning("MSG7"); 1016logger.LogWarning("MSG8"); 1017logger.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)
ContainerBuilder.cs (1)
127logger.LogWarning(Resource.GetString(nameof(s)));
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)
192logger.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.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
227_environmentSettings.Host.Logger.LogWarning(LocalizableStrings.BlobStoreSourceFileProvider_Warning_LocalCacheWillBeUsed);