111 references to GetResourceString
Microsoft.Build (86)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
329string nodeFailedToLaunchError = ResourceUtilities.GetResourceString("TaskHostNodeFailedToLaunchErrorCodeNet35NotInstalled");
BackEnd\Components\Logging\LoggingContext.cs (1)
150ResourceUtilities.GetResourceString(messageResourceName),
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (7)
43LogCommentFromText(buildEventContext, importance, ResourceUtilities.GetResourceString(messageResourceName), messageArgs); 351message = ResourceUtilities.GetResourceString("BuildStarted"); 378message = ResourceUtilities.GetResourceString(success ? "BuildFinishedQuestionSuccess" : "BuildFinishedQuestionFailure"); 382message = ResourceUtilities.GetResourceString(success ? "BuildFinishedSuccess" : "BuildFinishedFailure"); 397string message = ResourceUtilities.GetResourceString("AbortingBuild"); 430new ProjectEvaluationStartedEventArgs(ResourceUtilities.GetResourceString("EvaluationStarted"), 461new ProjectEvaluationFinishedEventArgs(ResourceUtilities.GetResourceString("EvaluationFinished"), projectFile)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (6)
36internal static string ItemGroupIncludeLogMessagePrefix = ResourceUtilities.GetResourceString("ItemGroupIncludeLogMessagePrefix"); 37internal static string ItemGroupRemoveLogMessage = ResourceUtilities.GetResourceString("ItemGroupRemoveLogMessage"); 38internal static string OutputItemParameterMessagePrefix = ResourceUtilities.GetResourceString("OutputItemParameterMessagePrefix"); 39internal static string OutputPropertyLogMessagePrefix = ResourceUtilities.GetResourceString("OutputPropertyLogMessagePrefix"); 40internal static string TaskParameterPrefix = ResourceUtilities.GetResourceString("TaskParameterPrefix"); 147sb.Append(ResourceUtilities.GetResourceString("LogTaskInputs.Truncated"));
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
249if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable))
BackEnd\Components\SdkResolution\SdkResolverException.cs (1)
23: base(string.Format(ResourceUtilities.GetResourceString(resourceName), args), innerException)
BackEnd\Shared\BuildAbortedException.cs (1)
32: base(ResourceUtilities.GetResourceString("BuildAborted"))
BuildCheck\Checks\DoubleWritesCheck.cs (2)
27ResourceUtilities.GetResourceString("BuildCheck_BC0102_Title")!, 28ResourceUtilities.GetResourceString("BuildCheck_BC0102_MessageFmt")!,
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (3)
16ResourceUtilities.GetResourceString("BuildCheck_BC0103_Title")!, 17ResourceUtilities.GetResourceString("BuildCheck_BC0103_MessageFmt")!, 100private string GetFormattedMessage(string envVariableName, string envVariableValue) => _isVerboseEnvVarOutput ? string.Format(ResourceUtilities.GetResourceString("BuildCheck_BC0103_MessageAddendum")!, envVariableName, envVariableValue) : $"'{envVariableName}'";
BuildCheck\Checks\PropertiesUsageCheck.cs (6)
20ResourceUtilities.GetResourceString("BuildCheck_BC0201_Title")!, 21ResourceUtilities.GetResourceString("BuildCheck_BC0201_MessageFmt")!, 25ResourceUtilities.GetResourceString("BuildCheck_BC0202_Title")!, 26ResourceUtilities.GetResourceString("BuildCheck_BC0202_MessageFmt")!, 30ResourceUtilities.GetResourceString("BuildCheck_BC0203_Title")!, 31ResourceUtilities.GetResourceString("BuildCheck_BC0203_MessageFmt")!,
BuildCheck\Checks\SharedOutputPathCheck.cs (2)
20ResourceUtilities.GetResourceString("BuildCheck_BC0101_Title")!, 21ResourceUtilities.GetResourceString("BuildCheck_BC0101_MessageFmt")!,
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
46DispatchAsCommentFromText(_eventContext, importance, ResourceUtilities.GetResourceString(messageResourceName), messageArgs);
Construction\Solution\SolutionProjectGenerator.cs (1)
1042string message = ResourceUtilities.GetResourceString("MetaprojectGenerated");
ErrorUtilities.cs (1)
623ResourceUtilities.GetResourceString("Shared.CollectionCopyToFailureProvidedArrayIsTooSmall"),
Evaluation\Conditionals\Scanner.cs (1)
48s_endOfInput = ResourceUtilities.GetResourceString("EndOfInputTokenName");
Evaluation\Evaluator.cs (8)
1661private static readonly string CouldNotResolveSdk = ResourceUtilities.GetResourceString("CouldNotResolveSdk"); 1662private static readonly string ProjectImported = ResourceUtilities.GetResourceString("ProjectImported"); 1663private static readonly string ProjectImportSkippedEmptyFile = ResourceUtilities.GetResourceString("ProjectImportSkippedEmptyFile"); 1664private static readonly string ProjectImportSkippedExpressionEvaluatedToEmpty = ResourceUtilities.GetResourceString("ProjectImportSkippedExpressionEvaluatedToEmpty"); 1665private static readonly string ProjectImportSkippedFalseCondition = ResourceUtilities.GetResourceString("ProjectImportSkippedFalseCondition"); 1666private static readonly string ProjectImportSkippedInvalidFile = ResourceUtilities.GetResourceString("ProjectImportSkippedInvalidFile"); 1667private static readonly string ProjectImportSkippedMissingFile = ResourceUtilities.GetResourceString("ProjectImportSkippedMissingFile"); 1668private static readonly string ProjectImportSkippedNoMatches = ResourceUtilities.GetResourceString("ProjectImportSkippedNoMatches");
Graph\GraphBuilder.cs (3)
483ResourceUtilities.GetResourceString("CircularDependencyInProjectGraph"), 508ResourceUtilities.GetResourceString("CircularDependencyInProjectGraph"), 537throw new InvalidOperationException(ResourceUtilities.GetResourceString("NullReferenceFromProjectInstanceFactory"));
Graph\ProjectInterpretation.cs (2)
115ResourceUtilities.GetResourceString( 442ResourceUtilities.GetResourceString("General.InvalidPropertyError"),
Logging\BaseConsoleLogger.cs (3)
513WriteLinePretty(currentIndentLevel, ResourceUtilities.GetResourceString("EnvironmentHeader")); 534WriteLinePretty(currentIndentLevel, ResourceUtilities.GetResourceString("PropertyListHeader")); 561WriteLinePretty(currentIndentLevel, ResourceUtilities.GetResourceString("ItemListHeader"));
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (4)
69public int FileFormatVersion => _fileFormatVersion ?? throw new InvalidOperationException(ResourceUtilities.GetResourceString("Binlog_Source_VersionUninitialized")); 70public int MinimumReaderVersion => _minimumReaderVersion ?? throw new InvalidOperationException(ResourceUtilities.GetResourceString("Binlog_Source_VersionUninitialized")); 254ResourceUtilities.GetResourceString("Binlog_Source_MultiSubscribeError")); 275ResourceUtilities.GetResourceString("Binlog_Source_MissingSubscribeError"));
Logging\BinaryLogger\BuildEventArgsReader.cs (5)
201ResourceUtilities.GetResourceString("Binlog_MissingRecoverableErrorSubscribeError")); 251? " " + ResourceUtilities.GetResourceString("Binlog_ReaderSkippingRecord") 264? " " + ResourceUtilities.GetResourceString("Binlog_ReaderSkippingRecord") 666ResourceUtilities.GetResourceString("EvaluationStarted"), 682ResourceUtilities.GetResourceString("EvaluationFinished"),
Logging\BinaryLogger\Postprocessing\SubStream.cs (1)
29throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_MustBeReadable"));
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (5)
30throw new InvalidOperationException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_MustBeReadable")); 45throw new InvalidOperationException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_MustBeReadable")); 156throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_SeekNonOrigin")); 166throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_SetLengthUnsupported")); 171throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_WriteUnsupported"));
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
277onError(ResourceUtilities.GetResourceString("Binlog_ImportFileSizeError"));
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
75string message = ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidFileLoggerFile", string.Empty, ResourceUtilities.GetResourceString("logfilePathNullOrEmpty"));
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
758WriteMessageAligned(ResourceUtilities.GetResourceString("PropertyListHeader"), true); 776WriteMessageAligned(ResourceUtilities.GetResourceString("EnvironmentHeader"), true); 891WriteMessageAligned(ResourceUtilities.GetResourceString("TargetOutputItemsHeader"), false);
Logging\ProfilerLogger.cs (1)
298Console.WriteLine(ResourceUtilities.GetResourceString("WritingProfilerReportDone"));
Logging\SerialConsoleLogger.cs (1)
391WriteLinePretty(ResourceUtilities.GetResourceString("TargetOutputItemsHeader"));
LogMessagePacketBase.cs (2)
1378ResourceUtilities.GetResourceString("EvaluationStarted"), projectFile); 1392ResourceUtilities.GetResourceString("EvaluationFinished"), projectFile);
ResourceUtilities.cs (10)
167return ExtractMessageCode(true /* msbuildCodeOnly */, FormatString(GetResourceString(resourceName), args), out code); 184return ExtractMessageCode(true, GetResourceString(resourceName), out code); 198return ExtractMessageCode(true, FormatString(GetResourceString(resourceName), arg1), out code); 213return ExtractMessageCode(true, FormatString(GetResourceString(resourceName), arg1, arg2), out code); 229return ExtractMessageCode(true, FormatString(GetResourceString(resourceName), arg1, arg2, arg3), out code); 310=> FormatString(GetResourceString(resourceName), args); 321=> GetResourceString(resourceName); 331=> FormatString(GetResourceString(resourceName), arg1); 342=> FormatString(GetResourceString(resourceName), arg1, arg2); 354=> FormatString(GetResourceString(resourceName), arg1, arg2, arg3);
Utilities\SimpleVersion.cs (1)
190return new FormatException(ResourceUtilities.GetResourceString(nameof(InvalidVersionFormat)));
Microsoft.Build.Engine.UnitTests (25)
BackEnd\BuildManager_Logging_Tests.cs (1)
132string.Format(ResourceUtilities.GetResourceString("DeprecatedEventSerialization"),
BackEnd\LoggingServicesLogMethod_Tests.cs (8)
705string message = ResourceUtilities.GetResourceString("BuildFinishedSuccess"); 767string message = ResourceUtilities.GetResourceString("BuildFinishedSuccess"); 770service.LogCommentFromText(s_buildEventContext, messageImportance, ResourceUtilities.GetResourceString("BuildFinishedSuccess")); 775service.LogCommentFromText(s_buildEventContext, MessageImportance.Normal, ResourceUtilities.GetResourceString("BuildFinishedSuccess")); 1014string message = onlyLogCriticalEvents ? string.Empty : ResourceUtilities.GetResourceString("BuildStarted"); 1036BuildFinishedEventArgs buildEvent = new BuildFinishedEventArgs(ResourceUtilities.GetResourceString("BuildFinishedSuccess"), null /* no help keyword */, true, service.ProcessedBuildEvent.Timestamp); 1041buildEvent = new BuildFinishedEventArgs(ResourceUtilities.GetResourceString("BuildFinishedFailure"), null /* no help keyword */, false, service.ProcessedBuildEvent.Timestamp); 1061ResourceUtilities.GetResourceString("AbortingBuild"),
BackEnd\MSBuild_Tests.cs (2)
836logger.AssertLogContains(string.Format(ResourceUtilities.GetResourceString("ItemReferencingSelfInTarget"), "iin1", "Filename")); 837logger.AssertLogContains(string.Format(ResourceUtilities.GetResourceString("ItemReferencingSelfInTarget"), "iin1", "Extension"));
BackEnd\NodePackets_Tests.cs (2)
130ResourceUtilities.GetResourceString("EvaluationStarted"), 144ResourceUtilities.GetResourceString("EvaluationFinished"),
BackEnd\Scheduler_Tests.cs (1)
721StringReader reader = new StringReader(ResourceUtilities.GetResourceString("BuildHierarchyHeader"));
BuildEventArgsDataEnumeration.cs (3)
24ResourceUtilities.GetResourceString("EvaluationFinished"), 51ResourceUtilities.GetResourceString("EvaluationFinished"), 89ResourceUtilities.GetResourceString("EvaluationFinished"),
BuildEventArgsSerialization_Tests.cs (3)
747ResourceUtilities.GetResourceString("EvaluationStarted"), 764ResourceUtilities.GetResourceString("EvaluationFinished"), 787ResourceUtilities.GetResourceString("EvaluationFinished"),
ConsoleLogger_Tests.cs (2)
2255actualLog.ShouldContain(ResourceUtilities.GetResourceString("DeferredMessages")); 2269actualLog.ShouldContain(ResourceUtilities.GetResourceString("DeferredMessages"));
Evaluation\Expander_Tests.cs (1)
3224string expectedMessage = ResourceUtilities.GetResourceString("InvalidVersionFormat");
ProjectCache\ProjectCacheTests.cs (2)
796mockLogger.FullLog.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithDefaultTargets"), node.ProjectInstance.FullPath)); 800mockLogger.FullLog.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithTargetNames"), node.ProjectInstance.FullPath, targets));