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