73 references to Resources
dotnet-format (73)
Analyzers\AnalyzerFormatter.cs (9)
16Resources.Code_Style, 24Resources.Analyzer_Reference, 87logger.LogTrace(Resources.Running_0_analysis, _name); 90logger.LogTrace(Resources.Determining_diagnostics); 101logger.LogTrace(Resources.Complete_in_0_ms, projectDiagnosticsMS); 106logger.LogTrace(Resources.Fixing_diagnostics); 112logger.LogTrace(Resources.Complete_in_0_ms, fixDiagnosticsMS); 115logger.LogTrace(Resources.Analysis_complete_in_0ms_, analysisStopwatch.ElapsedMilliseconds); 226logger.LogWarning(Resources.Unable_to_fix_0_No_associated_code_fix_found, diagnosticId);
Analyzers\AnalyzerRunner.cs (2)
50logger.LogWarning(Resources.Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting, project.Name); 67logger.LogDebug(Resources.Running_0_analyzers_on_1, analyzers.Length, 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 (14)
32logger.LogInformation(string.Format(Resources.Formatting_code_files_in_workspace_0, formatOptions.WorkspaceFilePath)); 34logger.LogTrace(Resources.Loading_workspace); 55logger.LogDebug(Resources.Project_0_is_using_configuration_from_1, project.Name, configDocument.FilePath); 61logger.LogTrace(Resources.Complete_in_0_ms, loadWorkspaceMS); 65logger.LogTrace(Resources.Determining_formattable_files); 71logger.LogTrace(Resources.Complete_in_0_ms, determineFilesMS); 73logger.LogTrace(Resources.Running_formatters); 80logger.LogTrace(Resources.Complete_in_0_ms, formatterRanMS); 91logger.LogInformation(Resources.Formatted_code_file_0, documentWithError!.FilePath); 98logger.LogError(Resources.Failed_to_save_formatting_changes); 107logger.LogDebug(Resources.Formatted_0_of_1_files, documentIdsWithErrors.Length, fileCount); 109logger.LogInformation(Resources.Format_complete_in_0_ms, workspaceStopwatch.ElapsedMilliseconds); 195logger.LogDebug(Resources.Skipping_referenced_project_0, project.Name); 202logger.LogWarning(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, project.FilePath);
Commands\FormatAnalyzersCommand.cs (1)
18var command = new Command("analyzers", Resources.Run_3rd_party_analyzers__and_apply_fixes)
Commands\FormatCommandCommon.cs (17)
23public static readonly Argument<string> SlnOrProjectArgument = new Argument<string>(Resources.SolutionOrProjectOrFileArgumentName) 25Description = Resources.SolutionOrProjectOrFileArgumentDescription, 31Description = Resources.Whether_to_treat_the_workspace_argument_as_a_simple_folder_of_files, 35Description = Resources.Doesnt_execute_an_implicit_restore_before_formatting, 40Description = Resources.The_target_framework_to_use_when_loading_the_workspace, 44Description = Resources.Verify_no_formatting_changes_would_be_performed_Terminates_with_a_non_zero_exit_code_if_any_files_would_have_been_formatted, 50Description = Resources.A_space_separated_list_of_diagnostic_ids_to_use_as_a_filter_when_fixing_code_style_or_3rd_party_issues, 56Description = Resources.A_space_separated_list_of_diagnostic_ids_to_ignore_when_fixing_code_style_or_3rd_party_issues, 60Description = Resources.The_severity_of_diagnostics_to_fix_Allowed_values_are_info_warn_and_error, 66Description = Resources.A_list_of_relative_file_or_folder_paths_to_include_in_formatting_All_files_are_formatted_if_empty, 72Description = Resources.A_list_of_relative_file_or_folder_paths_to_exclude_from_formatting, 76Description = Resources.Format_files_generated_by_the_SDK, 80Description = Resources.Set_the_verbosity_level_Allowed_values_are_quiet_minimal_normal_detailed_and_diagnostic, 86Description = Resources.Log_all_project_or_solution_load_information_to_a_binary_log_file, 92Description = Resources.Accepts_a_file_path_which_if_provided_will_produce_a_json_report_in_the_given_directory, 108logger.LogDebug(Resources.The_dotnet_runtime_version_is_0, runtimeVersion); 245logger.LogCritical(Resources.Standard_input_used_multiple_times);
Commands\FormatStyleCommand.cs (1)
18var command = new Command("style", Resources.Run_code_style_analyzers_and_apply_fixes)
Commands\FormatWhitespaceCommand.cs (4)
18var command = new Command("whitespace", Resources.Run_whitespace_formatting) 36symbolResult.AddError(Resources.Cannot_specify_the_folder_option_with_no_restore); 46symbolResult.AddError(Resources.Cannot_specify_the_folder_option_when_writing_a_binary_log); 56symbolResult.AddError(Resources.Cannot_specify_the_folder_option_with_framework);
Commands\RootFormatCommand.cs (1)
18var formatCommand = new RootCommand(Resources.Formats_code_to_match_editorconfig_settings)
Formatters\CharsetFormatter.cs (1)
14protected override string FormatWarningDescription => Resources.Fix_file_encoding;
Formatters\DocumentFormatter.cs (3)
197? string.Format(Resources.Delete_0_characters, change.Span.Length) 199? string.Format(Resources.Insert_0, textChange) 200: string.Format(Resources.Replace_0_characters_with_1, change.Span.Length, textChange);
Formatters\EndOfLineFormatter.cs (1)
14protected override string FormatWarningDescription => Resources.Fix_end_of_line_marker;
Formatters\FinalNewlineFormatter.cs (1)
13protected override string FormatWarningDescription => Resources.Fix_final_newline;
Formatters\OrganizeImportsFormatter.cs (2)
17protected override string FormatWarningDescription => Resources.Fix_imports_ordering; 58logger.LogWarning(Resources.Unable_to_organize_imports_for_0_The_document_is_too_complex, Path.GetFileName(document.FilePath));
Formatters\WhitespaceFormatter.cs (1)
17protected override string FormatWarningDescription => Resources.Fix_whitespace_formatting;
ReportWriter.cs (1)
21logger.LogInformation(Resources.Writing_formatting_report_to_0, reportFilePath);
src\sdk\artifacts\obj\dotnet-format\Release\net11.0\Microsoft.CodeAnalysis.Tools.Resources.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(Resources)));
Workspaces\MSBuildWorkspaceFinder.cs (7)
37var foundSolution = FindMatchingFile(searchDirectory, FindSolutionFiles, Resources.Multiple_MSBuild_solution_files_found_in_0_Specify_which_to_use_with_the_workspace_argument); 38var foundProject = FindMatchingFile(searchDirectory, FindProjectFiles, Resources.Multiple_MSBuild_project_files_found_in_0_Specify_which_to_use_with_the_workspace_argument); 42throw new FileNotFoundException(string.Format(Resources.Both_a_MSBuild_project_file_and_solution_file_found_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory)); 55throw new FileNotFoundException(string.Format(Resources.Could_not_find_a_MSBuild_project_or_solution_file_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory)); 72throw new FileNotFoundException(string.Format(Resources.The_file_0_does_not_appear_to_be_a_valid_project_solution_file_or_file_based_app, Path.GetFileName(workspacePath))); 78? Resources.The_solution_file_0_does_not_exist 79: Resources.The_project_file_0_does_not_exist;
Workspaces\MSBuildWorkspaceLoader.cs (2)
63logger.LogError(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath); 79logger.LogWarning(Resources.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings);