1 override of FormatResourceString
Microsoft.Build.Tasks.Core (1)
TaskLoggingHelperExtension.cs (1)
91
public 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
(
377
AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.
FormatResourceString
(
406
AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.
FormatResourceString
(
440
AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.
FormatResourceString
(
Microsoft.Build.Tasks.Core (19)
AssemblyDependency\ResolveAssemblyReference.cs (5)
1696
message = Log.
FormatResourceString
("ResolveAssemblyReference.FailedToResolveReference", itemError.Message);
1702
message = Log.
FormatResourceString
("ResolveAssemblyReference.FailedToFindDependentFiles", itemError.Message);
1708
message = Log.
FormatResourceString
("ResolveAssemblyReference.FailedWithException", itemError.Message);
2010
string message = Log.
FormatResourceString
("ResolveAssemblyReference.ConflictHigherVersionChosen", reference.ConflictVictorName);
2017
string message = Log.
FormatResourceString
("ResolveAssemblyReference.ConflictPrimaryChosen", reference.ConflictVictorName, fusionName);
ComReference.cs (1)
312
string typeLibId = log.
FormatResourceString
("ResolveComReference.TypeLibAttrId", typeLibAttr.guid.ToString(), typeLibAttr.wMajorVerNum, typeLibAttr.wMinorVerNum);
ComReferenceInfo.cs (1)
208
return log.
FormatResourceString
("ResolveComReference.TypeLibAttrId", attr.guid, attr.wMajorVerNum, attr.wMinorVerNum);
Copy.cs (1)
327
errorMessage = Log.
FormatResourceString
("Copy.NonWindowsLinkErrorMessage", "symlink()", errorMessage);
ErrorFromResources.cs (1)
53
string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, Log.
FormatResourceString
(Resource, Arguments), out string errorCode);
GenerateResource.cs (7)
3611
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.UnexpectedInfBracket", "[" + skip), fileName, sr.LineNumber - 1, 1);
3623
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.NoEqualsInLine", name), fileName, sr.LineNumber, sr.LinePosition);
3635
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.NoNameInLine"), fileName, sr.LineNumber, sr.LinePosition);
3690
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.InvalidEscape", name.ToString(), (char)ch), fileName, sr.LineNumber, sr.LinePosition);
3703
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.InvalidHexEscapeValue", name.ToString(), new String(hex)), fileName, sr.LineNumber, sr.LinePosition);
3708
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.InvalidHexEscapeValue", name.ToString(), new String(hex)), fileName, sr.LineNumber, sr.LinePosition);
3714
throw new TextFileException(_logger.
FormatResourceString
("GenerateResource.InvalidEscape", name.ToString(), (char)ch), fileName, sr.LineNumber, sr.LinePosition);
NativeMethods.cs (1)
813
errorMessage = hardLinkCreated ? null : log.
FormatResourceString
("Copy.NonWindowsLinkErrorMessage", "link()", Marshal.GetLastWin32Error());
StateFileBase.cs (2)
95
log.LogMessageFromResources("General.CouldNotReadStateFileMessage", stateFile, log.
FormatResourceString
("General.IncompatibleStateFileType"));
112
log.
FormatResourceString
("General.IncompatibleStateFileType"));
Microsoft.Build.Tasks.UnitTests (3)
ResolveSDKReference_Tests.cs (3)
567
string errorMessage = t.Log.
FormatResourceString
("ResolveSDKReference.SDKReferenceIncorrectFormat", referenceInclude.ItemSpec);
672
string errorMessage = t.Log.
FormatResourceString
("ResolveSDKReference.Prefer32BitNotSupportedWithNeutralProject", item.ItemSpec);
895
string errorMessage = t.Log.
FormatResourceString
("ResolveSDKReference.Prefer32BitNotSupportedWithNeutralProject", item.ItemSpec);
Microsoft.Build.Utilities.Core (13)
TaskLoggingHelper.cs (13)
238
string resourceString =
FormatResourceString
(resourceName, null);
502
ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */,
FormatResourceString
(messageResourceName, messageArgs), out errorCode);
503
ErrorUtilities.VerifyThrow(errorCode == null, errorCode,
FormatResourceString
(messageResourceName, messageArgs));
784
subcategory =
FormatResourceString
(subcategoryResourceName);
793
string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */,
FormatResourceString
(messageResourceName, messageArgs), out messageCode);
807
FormatResourceString
(messageResourceName, messageArgs));
867
subcategory =
FormatResourceString
(subcategoryResourceName);
870
string message = ResourceUtilities.ExtractMessageCode(false /* all codes */,
FormatResourceString
(messageResourceName, messageArgs), out string errorCode);
1154
subcategory =
FormatResourceString
(subcategoryResourceName);
1162
string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */,
FormatResourceString
(messageResourceName, messageArgs), out string messageCode);
1175
FormatResourceString
(messageResourceName, messageArgs));
1235
subcategory =
FormatResourceString
(subcategoryResourceName);
1238
string message = ResourceUtilities.ExtractMessageCode(false /* all codes */,
FormatResourceString
(messageResourceName, messageArgs), out string warningCode);
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
224
t.Log.
FormatResourceString
("bogus");