1 override of FormatResourceString
Microsoft.Build.Tasks.Core (1)
TaskLoggingHelperExtension.cs (1)
91public override string FormatResourceString(string resourceName, params object[] args)
45 references to FormatResourceString
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (11)
MapSourceRootTests.cs (11)
268"ERROR : " + string.Format(task.Log.FormatResourceString( 270"ERROR : " + string.Format(task.Log.FormatResourceString( 329"WARNING : " + string.Format(task.Log.FormatResourceString( 331"WARNING : " + string.Format(task.Log.FormatResourceString( 333"WARNING : " + string.Format(task.Log.FormatResourceString( 335"WARNING : " + string.Format(task.Log.FormatResourceString( 337"WARNING : " + string.Format(task.Log.FormatResourceString( 339"WARNING : " + string.Format(task.Log.FormatResourceString( 377AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 406AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 440AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString(
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\ResolveAssemblyReference.cs (5)
1696message = Log.FormatResourceString("ResolveAssemblyReference.FailedToResolveReference", itemError.Message); 1702message = Log.FormatResourceString("ResolveAssemblyReference.FailedToFindDependentFiles", itemError.Message); 1708message = Log.FormatResourceString("ResolveAssemblyReference.FailedWithException", itemError.Message); 2010string message = Log.FormatResourceString("ResolveAssemblyReference.ConflictHigherVersionChosen", reference.ConflictVictorName); 2017string message = Log.FormatResourceString("ResolveAssemblyReference.ConflictPrimaryChosen", reference.ConflictVictorName, fusionName);
Copy.cs (1)
327errorMessage = Log.FormatResourceString("Copy.NonWindowsLinkErrorMessage", "symlink()", errorMessage);
ErrorFromResources.cs (1)
53string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, Log.FormatResourceString(Resource, Arguments), out string errorCode);
GenerateResource.cs (7)
3611throw new TextFileException(_logger.FormatResourceString("GenerateResource.UnexpectedInfBracket", "[" + skip), fileName, sr.LineNumber - 1, 1); 3623throw new TextFileException(_logger.FormatResourceString("GenerateResource.NoEqualsInLine", name), fileName, sr.LineNumber, sr.LinePosition); 3635throw new TextFileException(_logger.FormatResourceString("GenerateResource.NoNameInLine"), fileName, sr.LineNumber, sr.LinePosition); 3690throw new TextFileException(_logger.FormatResourceString("GenerateResource.InvalidEscape", name.ToString(), (char)ch), fileName, sr.LineNumber, sr.LinePosition); 3703throw new TextFileException(_logger.FormatResourceString("GenerateResource.InvalidHexEscapeValue", name.ToString(), new String(hex)), fileName, sr.LineNumber, sr.LinePosition); 3708throw new TextFileException(_logger.FormatResourceString("GenerateResource.InvalidHexEscapeValue", name.ToString(), new String(hex)), fileName, sr.LineNumber, sr.LinePosition); 3714throw new TextFileException(_logger.FormatResourceString("GenerateResource.InvalidEscape", name.ToString(), (char)ch), fileName, sr.LineNumber, sr.LinePosition);
NativeMethods.cs (1)
813errorMessage = hardLinkCreated ? null : log.FormatResourceString("Copy.NonWindowsLinkErrorMessage", "link()", Marshal.GetLastWin32Error());
StateFileBase.cs (2)
95log.LogMessageFromResources("General.CouldNotReadStateFileMessage", stateFile, log.FormatResourceString("General.IncompatibleStateFileType")); 112log.FormatResourceString("General.IncompatibleStateFileType"));
Microsoft.Build.Tasks.UnitTests (3)
ResolveSDKReference_Tests.cs (3)
567string errorMessage = t.Log.FormatResourceString("ResolveSDKReference.SDKReferenceIncorrectFormat", referenceInclude.ItemSpec); 672string errorMessage = t.Log.FormatResourceString("ResolveSDKReference.Prefer32BitNotSupportedWithNeutralProject", item.ItemSpec); 895string errorMessage = t.Log.FormatResourceString("ResolveSDKReference.Prefer32BitNotSupportedWithNeutralProject", item.ItemSpec);
Microsoft.Build.Utilities.Core (13)
TaskLoggingHelper.cs (13)
237string resourceString = FormatResourceString(resourceName, null); 501ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */, FormatResourceString(messageResourceName, messageArgs), out errorCode); 502ErrorUtilities.VerifyThrow(errorCode == null, errorCode, FormatResourceString(messageResourceName, messageArgs)); 783subcategory = FormatResourceString(subcategoryResourceName); 792string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */, FormatResourceString(messageResourceName, messageArgs), out messageCode); 806FormatResourceString(messageResourceName, messageArgs)); 866subcategory = FormatResourceString(subcategoryResourceName); 869string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, FormatResourceString(messageResourceName, messageArgs), out string errorCode); 1153subcategory = FormatResourceString(subcategoryResourceName); 1161string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */, FormatResourceString(messageResourceName, messageArgs), out string messageCode); 1174FormatResourceString(messageResourceName, messageArgs)); 1234subcategory = FormatResourceString(subcategoryResourceName); 1237string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, FormatResourceString(messageResourceName, messageArgs), out string warningCode);
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
222t.Log.FormatResourceString("bogus");