86 references to ResourceUtilities
Microsoft.Build.CommandLine.UnitTests (3)
XMake_Tests.cs (3)
795results.ShouldNotContain(ResourceUtilities.GetResourceString("BuildFailedWithPropertiesItemsOrTargetResultsRequested")); 2019exception.Message.ShouldBe(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("AmbiguousProjectDirectoryError", projectDirectory)); 2661ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage",
MSBuild (83)
CommandLineSwitches.cs (2)
890sb.Append($"\n{ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ResponseFileSwitchFromLocation", contents, path)}"); 892CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
CommandLineSwitchException.cs (3)
75return base.Message + Environment.NewLine + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidSwitchIndicator", commandLineArg); 126ResourceUtilities.VerifyResourceStringExists(messageResourceName); 150string errorMessage = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(messageResourceName, messageArgs);
ErrorUtilities.cs (18)
59throw new InternalErrorException(ResourceUtilities.FormatString(message, args)); 69throw new InternalErrorException(ResourceUtilities.FormatString(message, args), innerException); 251throw new InvalidOperationException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args)); 259ResourceUtilities.VerifyResourceStringExists(resourceName); 271ResourceUtilities.VerifyResourceStringExists(resourceName); 286ResourceUtilities.VerifyResourceStringExists(resourceName); 301ResourceUtilities.VerifyResourceStringExists(resourceName); 316ResourceUtilities.VerifyResourceStringExists(resourceName); 356throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 408ResourceUtilities.VerifyResourceStringExists(resourceName); 420ResourceUtilities.VerifyResourceStringExists(resourceName); 433ResourceUtilities.VerifyResourceStringExists(resourceName); 446ResourceUtilities.VerifyResourceStringExists(resourceName); 459ResourceUtilities.VerifyResourceStringExists(resourceName); 532throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 574ResourceUtilities.VerifyResourceStringExists(resourceName); 585throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null); 623ResourceUtilities.GetResourceString("Shared.CollectionCopyToFailureProvidedArrayIsTooSmall"),
InitializationException.cs (4)
80return base.Message + Environment.NewLine + ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidSwitchIndicator", invalidSwitch); 129ResourceUtilities.VerifyResourceStringExists(messageResourceName); 154errorMessage = ResourceUtilities.FormatString(errorMessage, (e == null) ? String.Empty : e.Message); 171errorMessage = ResourceUtilities.FormatString(errorMessage, args);
OutOfProcTaskAppDomainWrapperBase.cs (1)
396ResourceUtilities.FormatString(AssemblyResources.GetString(message), messageArgs),
OutOfProcTaskHostNode.cs (2)
1211ResourceUtilities.FormatString(AssemblyResources.GetString(messageResource), messageArgs), 1235ResourceUtilities.FormatString(AssemblyResources.GetString(messageResource), messageArgs),
TempFileUtilities.cs (1)
199throw new IOException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
TerminalLogger\NodesFrame.cs (2)
47string durationString = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 118string durationString = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("DurationDisplay", _nodes[i].nodeStatus.Stopwatch.ElapsedSeconds);
TerminalLogger\TerminalLogger.cs (21)
339string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword(out errorCode, out helpKeyword, "InvalidVerbosity", parameterValue); 427string summaryAndTotalText = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestSummary_BannerAndTotal", total); 428string failedText = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestSummary_Failed", failed); 429string passedText = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestSummary_Succeeded", passed); 430string skippedText = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestSummary_Skipped", skipped); 431string durationText = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestSummary_Duration", testDuration); 442Terminal.WriteLine(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("RestoreCompleteWithMessage", 448Terminal.WriteLine(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("BuildFinished", 569Terminal.WriteLine(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("RestoreCompleteWithMessage", 575Terminal.WriteLine(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("RestoreComplete", 598Terminal.Write(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestProjectFinished_NoTF", 606Terminal.Write(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("TestProjectFinished_WithTF", 618Terminal.Write(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ProjectFinished_NoTF", 626Terminal.Write(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ProjectFinished_WithTF", 670Terminal.WriteLine(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("ProjectFinished_OutputPath", 1066(true, true) => ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("BuildResult_FailedWithErrorsAndWarnings", countErrors, countWarnings), 1067(true, _) => ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("BuildResult_FailedWithErrors", countErrors), 1068(false, true) => ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("BuildResult_FailedWithWarnings", countWarnings), 1069_ => ResourceUtilities.GetResourceString("BuildResult_Failed"), 1075return AnsiCodes.Colorize(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("BuildResult_SucceededWithWarnings", countWarnings), TerminalColor.Yellow); 1079return AnsiCodes.Colorize(ResourceUtilities.GetResourceString("BuildResult_Succeeded"), TerminalColor.Green);
XMake.cs (29)
214Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidConfigurationFile", builder.ToString())); 804Console.WriteLine(ResourceUtilities.GetResourceString("PossiblyOmittedMaxCPUSwitch")); 958Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ConfigurationFailurePrefixNoErrorCode", e.ErrorCode, e.Message)); 976Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixNoErrorCode", e.ErrorCode, e.Message)); 982Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixWithErrorCode", e.Message)); 1119Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildFailedWithPropertiesItemsOrTargetResultsRequested")); 1306InitializationException.Throw(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ProjectUpgradeNeededToVcxProj", projectFile), null); 1430Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Preprocess); 1451Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Targets); 1545ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1726var message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("TargetsCouldNotBePrinted", ex); 1737ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1742ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1747ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1752ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1757ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1768ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1770ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1780ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1782ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 1791ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword( 2842new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedRedirected"), MessageImportance.Low)); 2850new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedNotSupported"), MessageImportance.Low)); 2857new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedDisabled"), MessageImportance.Low)); 4416Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OptionalLoggerCreationMessage", loggerDescription.Name, e.Message)); 4490var message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidLogFileFormat", ex.Message); 4544string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword( 4548message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidToolsVersionError", message); 4577Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion, NativeMethods.FrameworkName));