1 override of FormatResourceString
Microsoft.Build.Tasks.Core (1)
TaskLoggingHelperExtension.cs (1)
91public override string FormatResourceString(string resourceName, params object[] args)
47 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 (19)
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);
ComReference.cs (1)
312string typeLibId = log.FormatResourceString("ResolveComReference.TypeLibAttrId", typeLibAttr.guid.ToString(), typeLibAttr.wMajorVerNum, typeLibAttr.wMinorVerNum);
ComReferenceInfo.cs (1)
208return log.FormatResourceString("ResolveComReference.TypeLibAttrId", attr.guid, attr.wMajorVerNum, attr.wMinorVerNum);
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)
238string resourceString = FormatResourceString(resourceName, null); 502ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */, FormatResourceString(messageResourceName, messageArgs), out errorCode); 503ErrorUtilities.VerifyThrow(errorCode == null, errorCode, FormatResourceString(messageResourceName, messageArgs)); 784subcategory = FormatResourceString(subcategoryResourceName); 793string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */, FormatResourceString(messageResourceName, messageArgs), out messageCode); 807FormatResourceString(messageResourceName, messageArgs)); 867subcategory = FormatResourceString(subcategoryResourceName); 870string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, FormatResourceString(messageResourceName, messageArgs), out string errorCode); 1154subcategory = FormatResourceString(subcategoryResourceName); 1162string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */, FormatResourceString(messageResourceName, messageArgs), out string messageCode); 1175FormatResourceString(messageResourceName, messageArgs)); 1235subcategory = FormatResourceString(subcategoryResourceName); 1238string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, FormatResourceString(messageResourceName, messageArgs), out string warningCode);
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
224t.Log.FormatResourceString("bogus");