17 references to ExtractMessageCode
Microsoft.Build.Tasks.Core (6)
ErrorFromResources.cs (1)
53
string message = ResourceUtilities.
ExtractMessageCode
(false /* all codes */, Log.FormatResourceString(Resource, Arguments), out string errorCode);
ResourceUtilities.cs (5)
167
return
ExtractMessageCode
(true /* msbuildCodeOnly */, FormatString(GetResourceString(resourceName), args), out code);
184
return
ExtractMessageCode
(true, GetResourceString(resourceName), out code);
198
return
ExtractMessageCode
(true, FormatString(GetResourceString(resourceName), arg1), out code);
213
return
ExtractMessageCode
(true, FormatString(GetResourceString(resourceName), arg1, arg2), out code);
229
return
ExtractMessageCode
(true, FormatString(GetResourceString(resourceName), arg1, arg2, arg3), out code);
Microsoft.Build.Tasks.UnitTests (11)
ResourceUtilities_Tests.cs (11)
20
string messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB7007: This is a message.", out code);
25
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB7007:This is a message.", out code);
30
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, " MSB7007: This is a message.", out code);
35
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB7007 : This is a message.", out code);
40
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB 7007: This is a message.", out code);
45
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB007: This is a message.", out code);
50
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB: This is a message.", out code);
55
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "1001: This is a message.", out code);
60
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "7001MSB: This is a message.", out code);
65
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "MSB564B: This is a message.", out code);
70
messageOnly = ResourceUtilities.
ExtractMessageCode
(true /* msbuild code only */, "msb1001: This is a message.", out code);