1 override of FormatResourceString
Microsoft.Build.Tasks.Core (1)
TaskLoggingHelperExtension.cs (1)
91
public 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
(
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 (17)
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);
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)
237
string resourceString =
FormatResourceString
(resourceName, null);
501
ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */,
FormatResourceString
(messageResourceName, messageArgs), out errorCode);
502
ErrorUtilities.VerifyThrow(errorCode == null, errorCode,
FormatResourceString
(messageResourceName, messageArgs));
783
subcategory =
FormatResourceString
(subcategoryResourceName);
792
string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */,
FormatResourceString
(messageResourceName, messageArgs), out messageCode);
806
FormatResourceString
(messageResourceName, messageArgs));
866
subcategory =
FormatResourceString
(subcategoryResourceName);
869
string message = ResourceUtilities.ExtractMessageCode(false /* all codes */,
FormatResourceString
(messageResourceName, messageArgs), out string errorCode);
1153
subcategory =
FormatResourceString
(subcategoryResourceName);
1161
string throwAwayMessageBody = ResourceUtilities.ExtractMessageCode(true /* only msbuild codes */,
FormatResourceString
(messageResourceName, messageArgs), out string messageCode);
1174
FormatResourceString
(messageResourceName, messageArgs));
1234
subcategory =
FormatResourceString
(subcategoryResourceName);
1237
string message = ResourceUtilities.ExtractMessageCode(false /* all codes */,
FormatResourceString
(messageResourceName, messageArgs), out string warningCode);
Microsoft.Build.Utilities.UnitTests (1)
TaskLoggingHelper_Tests.cs (1)
222
t.Log.
FormatResourceString
("bogus");