78 references to Resources
dotnet-format (71)
Analyzers\AnalyzerFormatter.cs (9)
15Resources.Code_Style, 23Resources.Analyzer_Reference, 86logger.LogTrace(Resources.Running_0_analysis, _name); 89logger.LogTrace(Resources.Determining_diagnostics); 100logger.LogTrace(Resources.Complete_in_0_ms, projectDiagnosticsMS); 105logger.LogTrace(Resources.Fixing_diagnostics); 111logger.LogTrace(Resources.Complete_in_0_ms, fixDiagnosticsMS); 114logger.LogTrace(Resources.Analysis_complete_in_0ms_, analysisStopwatch.ElapsedMilliseconds); 225logger.LogWarning(Resources.Unable_to_fix_0_No_associated_code_fix_found, diagnosticId);
Analyzers\AnalyzerRunner.cs (2)
43logger.LogWarning(Resources.Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting, project.Name); 66logger.LogDebug(Resources.Running_0_analyzers_on_1, analyzers.Length, project.Name);
Analyzers\SolutionCodeFixApplier.cs (4)
26logger.LogWarning(Resources.Unable_to_fix_0_Code_fix_1_doesnt_support_Fix_All_in_Solution, diagnosticId, codeFix.GetType().Name); 72logger.LogWarning(Resources.Unable_to_fix_0_Code_fix_1_didnt_return_a_Fix_All_action, diagnosticId, codeFix.GetType().Name); 80logger.LogWarning(Resources.Unable_to_fix_0_Code_fix_1_returned_an_unexpected_operation, diagnosticId, codeFix.GetType().Name); 88logger.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); 53logger.LogDebug(Resources.Project_0_is_using_configuration_from_1, project.Name, configDocument.FilePath); 59logger.LogTrace(Resources.Complete_in_0_ms, loadWorkspaceMS); 64logger.LogTrace(Resources.Determining_formattable_files); 70logger.LogTrace(Resources.Complete_in_0_ms, determineFilesMS); 72logger.LogTrace(Resources.Running_formatters); 79logger.LogTrace(Resources.Complete_in_0_ms, formatterRanMS); 90logger.LogInformation(Resources.Formatted_code_file_0, documentWithError!.FilePath); 97logger.LogError(Resources.Failed_to_save_formatting_changes); 106logger.LogDebug(Resources.Formatted_0_of_1_files, documentIdsWithErrors.Length, fileCount); 108logger.LogInformation(Resources.Format_complete_in_0_ms, workspaceStopwatch.ElapsedMilliseconds); 191logger.LogDebug(Resources.Skipping_referenced_project_0, project.Name); 198logger.LogWarning(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, project.FilePath);
Commands\FormatAnalyzersCommand.cs (1)
17var command = new Command("analyzers", Resources.Run_3rd_party_analyzers__and_apply_fixes)
Commands\FormatCommandCommon.cs (16)
22public static readonly Argument<string> SlnOrProjectArgument = new Argument<string>(Resources.SolutionOrProjectArgumentName) 24Description = Resources.SolutionOrProjectArgumentDescription, 30Description = Resources.Whether_to_treat_the_workspace_argument_as_a_simple_folder_of_files, 34Description = Resources.Doesnt_execute_an_implicit_restore_before_formatting, 38Description = Resources.Verify_no_formatting_changes_would_be_performed_Terminates_with_a_non_zero_exit_code_if_any_files_would_have_been_formatted, 44Description = Resources.A_space_separated_list_of_diagnostic_ids_to_use_as_a_filter_when_fixing_code_style_or_3rd_party_issues, 50Description = Resources.A_space_separated_list_of_diagnostic_ids_to_ignore_when_fixing_code_style_or_3rd_party_issues, 54Description = Resources.The_severity_of_diagnostics_to_fix_Allowed_values_are_info_warn_and_error, 60Description = Resources.A_list_of_relative_file_or_folder_paths_to_include_in_formatting_All_files_are_formatted_if_empty, 66Description = Resources.A_list_of_relative_file_or_folder_paths_to_exclude_from_formatting, 70Description = Resources.Format_files_generated_by_the_SDK, 74Description = Resources.Set_the_verbosity_level_Allowed_values_are_quiet_minimal_normal_detailed_and_diagnostic, 80Description = Resources.Log_all_project_or_solution_load_information_to_a_binary_log_file, 86Description = Resources.Accepts_a_file_path_which_if_provided_will_produce_a_json_report_in_the_given_directory, 102logger.LogDebug(Resources.The_dotnet_runtime_version_is_0, runtimeVersion); 233logger.LogCritical(Resources.Standard_input_used_multiple_times);
Commands\FormatStyleCommand.cs (1)
17var command = new Command("style", Resources.Run_code_style_analyzers_and_apply_fixes)
Commands\FormatWhitespaceCommand.cs (3)
17var command = new Command("whitespace", Resources.Run_whitespace_formatting) 34symbolResult.AddError(Resources.Cannot_specify_the_folder_option_with_no_restore); 44symbolResult.AddError(Resources.Cannot_specify_the_folder_option_when_writing_a_binary_log);
Commands\RootFormatCommand.cs (1)
17var formatCommand = new RootCommand(Resources.Formats_code_to_match_editorconfig_settings)
Formatters\CharsetFormatter.cs (1)
13protected override string FormatWarningDescription => Resources.Fix_file_encoding;
Formatters\DocumentFormatter.cs (3)
196? string.Format(Resources.Delete_0_characters, change.Span.Length) 198? string.Format(Resources.Insert_0, textChange) 199: string.Format(Resources.Replace_0_characters_with_1, change.Span.Length, textChange);
Formatters\EndOfLineFormatter.cs (1)
13protected override string FormatWarningDescription => Resources.Fix_end_of_line_marker;
Formatters\FinalNewlineFormatter.cs (1)
12protected override string FormatWarningDescription => Resources.Fix_final_newline;
Formatters\OrganizeImportsFormatter.cs (2)
16protected override string FormatWarningDescription => Resources.Fix_imports_ordering; 57logger.LogWarning(Resources.Unable_to_organize_imports_for_0_The_document_is_too_complex, Path.GetFileName(document.FilePath));
Formatters\WhitespaceFormatter.cs (1)
16protected override string FormatWarningDescription => Resources.Fix_whitespace_formatting;
Microsoft.CodeAnalysis.Tools.Resources.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(Resources)));
ReportWriter.cs (1)
20logger.LogInformation(Resources.Writing_formatting_report_to_0, reportFilePath);
Workspaces\MSBuildWorkspaceFinder.cs (7)
34var foundSolution = FindMatchingFile(searchDirectory, FindSolutionFiles, Resources.Multiple_MSBuild_solution_files_found_in_0_Specify_which_to_use_with_the_workspace_argument); 35var foundProject = FindMatchingFile(searchDirectory, FindProjectFiles, Resources.Multiple_MSBuild_project_files_found_in_0_Specify_which_to_use_with_the_workspace_argument); 39throw 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)); 52throw 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)); 67throw new FileNotFoundException(string.Format(Resources.The_file_0_does_not_appear_to_be_a_valid_project_or_solution_file, Path.GetFileName(workspacePath))); 73? Resources.The_solution_file_0_does_not_exist 74: Resources.The_project_file_0_does_not_exist;
Workspaces\MSBuildWorkspaceLoader.cs (2)
54logger.LogError(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, solutionOrProjectPath); 70logger.LogWarning(Resources.Warnings_were_encountered_while_loading_the_workspace_Set_the_verbosity_option_to_the_diagnostic_level_to_log_warnings);
dotnet-format.UnitTests (7)
CodeFormatterTests.cs (3)
180var pattern = string.Format(Resources.Could_not_format_0_Format_currently_supports_only_CSharp_and_Visual_Basic_projects, "(.*)"); 247var pattern = string.Format(Resources.Formatted_code_file_0, @"(.*)"); 337var pattern = string.Format(Resources.Formatted_code_file_0, @"(.*)");
MSBuild\MSBuildWorkspaceFinderTests.cs (4)
25Resources.Could_not_find_a_MSBuild_project_or_solution_file_in_0_Specify_which_to_use_with_the_workspace_argument, 38Resources.Multiple_MSBuild_project_files_found_in_0_Specify_which_to_use_with_the_workspace_argument, 51Resources.Multiple_MSBuild_solution_files_found_in_0_Specify_which_to_use_with_the_workspace_argument, 64Resources.Both_a_MSBuild_project_file_and_solution_file_found_in_0_Specify_which_to_use_with_the_workspace_argument,