144 references to ResourceUtilities
Microsoft.Build.Tasks.Core (108)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
144
_taskLogger.LogError(
ResourceUtilities
.GetResourceString("ResolveAssemblyReference.AssemblyFoldersConfigFileMalformed"), _assemblyFolderConfigFile, e.Message);
AssemblyDependency\ReferenceTable.cs (5)
472
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("General.ExpectedFileGotDirectory", reference.FullPath),
480
new DependencyResolutionException(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("General.ExpectedFileMissing", reference.FullPath), null));
1110
new DependencyResolutionException(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("General.ExpectedFileMissing", reference.FullPath), null));
1351
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("General.CouldNotLocateAssembly", assemblyName.FullName),
2905
throw new BadImageFormatException(
ResourceUtilities
.GetResourceString("ResolveAssemblyReference.ImplementationDllHasInvalidPEHeader"));
AssemblyDependency\ResolveAssemblyReference.cs (5)
1333
log.Append(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword(resource, fusionName, conflictCandidate.FullPath));
1346
.Append(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.UnResolvedPrimaryItemSpec", conflictCandidate.PrimarySourceItem));
1366
log.Append(Strings.TenSpaces).Append(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.PrimarySourceItemsForReference", dependeeReference.FullPath));
2004
log.Append(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ConflictFound", reference.ConflictVictorName, fusionName));
2033
log.AppendLine().Append(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ConflictUnsolvable", reference.ConflictVictorName, fusionName));
BootstrapperUtil\BuildMessage.cs (1)
38
string message =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(out string helpCode, out string helpKeyword, resourceName, args);
ComReference.cs (4)
151
ResourceUtilities
.GetResourceString("ResolveComReference.CannotGetTypeLibAttrForTypeLib"));
178
ResourceUtilities
.GetResourceString("ResolveComReference.CannotRetrieveTypeInformation"));
205
ResourceUtilities
.GetResourceString("ResolveComReference.CannotRetrieveTypeInformation"));
226
ResourceUtilities
.GetResourceString("ResolveComReference.CannotRetrieveTypeInformation"));
ErrorFromResources.cs (1)
53
string message =
ResourceUtilities
.ExtractMessageCode(false /* all codes */, Log.FormatResourceString(Resource, Arguments), out string errorCode);
ErrorUtilities.cs (18)
59
throw new InternalErrorException(
ResourceUtilities
.FormatString(message, args));
69
throw new InternalErrorException(
ResourceUtilities
.FormatString(message, args), innerException);
251
throw new InvalidOperationException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(resourceName, args));
259
ResourceUtilities
.VerifyResourceStringExists(resourceName);
271
ResourceUtilities
.VerifyResourceStringExists(resourceName);
286
ResourceUtilities
.VerifyResourceStringExists(resourceName);
301
ResourceUtilities
.VerifyResourceStringExists(resourceName);
316
ResourceUtilities
.VerifyResourceStringExists(resourceName);
356
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException);
408
ResourceUtilities
.VerifyResourceStringExists(resourceName);
420
ResourceUtilities
.VerifyResourceStringExists(resourceName);
433
ResourceUtilities
.VerifyResourceStringExists(resourceName);
446
ResourceUtilities
.VerifyResourceStringExists(resourceName);
459
ResourceUtilities
.VerifyResourceStringExists(resourceName);
532
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName));
574
ResourceUtilities
.VerifyResourceStringExists(resourceName);
585
throw new ArgumentNullException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
623
ResourceUtilities
.GetResourceString("Shared.CollectionCopyToFailureProvidedArrayIsTooSmall"),
Exec.cs (1)
528
throw new DirectoryNotFoundException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Exec.InvalidWorkingDirectory", _workingDirectory));
FileUtilities.cs (1)
490
string message =
ResourceUtilities
.FormatString(AssemblyResources.GetString("Shared.PathTooLong"), path, NativeMethodsShared.MaxPath);
GetInstalledSDKLocations.cs (1)
164
string sdkInfo =
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("GetInstalledSDKs.SDKNameAndLocation", sdk.Key, sdk.Value.Item1);
GetSDKReferenceFiles.cs (9)
350
string message =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistDifferentSDK", winner.TargetPath, winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), redist.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile, redist.RedistFile);
431
string message =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceDifferentSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), reference.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation, reference.AssemblyLocation);
603
string message =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty));
643
string message =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty));
943
_exceptionMessages.Enqueue(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemReadingCacheFile", cacheFile, e.ToString()));
973
_exceptionMessages.Enqueue(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemDeletingCacheFile", existingCacheFile, e.Message));
986
_exceptionMessages.Enqueue(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemWritingCacheFile", referencesCacheFile, e.Message));
1108
_exceptionMessages.Enqueue(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemGeneratingHash", currentAssembly, ex.Message));
1142
_exceptionMessages.Enqueue(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("GetSDKReferenceFiles.ProblemGettingAssemblyMetadata", referencePath, e.Message));
MetadataConversionUtilities.cs (1)
46
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("General.InvalidAttributeMetadata", item.ItemSpec, itemMetadataName, metadataValue, "bool"), e);
MSBuild.cs (3)
214
if (!PropertyParser.GetTableWithEscaping(Log,
ResourceUtilities
.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable))
519
log,
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("General.OverridingProperties", projectNames[i]), "Properties", projects[i].GetMetadata("Properties").Split(MSBuildConstants.SemicolonChar),
559
log,
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("General.AdditionalProperties", projectNames[i]), "AdditionalProperties", projects[i].GetMetadata("AdditionalProperties").Split(MSBuildConstants.SemicolonChar),
RedistList.cs (1)
583
allowListErrors.Add(new Exception(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.NoSubSetRedistListName", info.Path)));
ResolveSDKReference.cs (2)
608
string formattedMessage =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(message.Item1, message.Item2);
1019
AddResolutionErrorOrWarning("ResolveSDKReference.ErrorResolvingSDK", ReferenceItem.ItemSpec,
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.ErrorReadingManifest", _sdkManifestPath, _sdkManifest.ReadErrorMessage));
ResourceHandling\MSBuildResXReader.cs (1)
211
throw new NotSupportedException(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("GenerateResource.MimeTypeNotSupportedOnCore", name, resxFilename, mimetype));
TempFileUtilities.cs (1)
199
throw new IOException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
WriteCodeFragment.cs (1)
171
string comment =
ResourceUtilities
.GetResourceString("WriteCodeFragment.Comment");
XamlTaskFactory\CommandLineGenerator.cs (1)
540
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Xaml.MissingRequiredArgument", parentSwitch, arg.Item1));
XamlTaskFactory\RelationsParser.cs (1)
577
ErrorLog.AddLast(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(messageResourceName, messageArgs));
XamlTaskFactory\TaskGenerator.cs (25)
378
taskClass.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
379
string commentContent =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ClassDescription", _taskParser.GeneratedTaskName);
381
taskClass.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
464
addToActiveSwitchList.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
465
string commentContent =
ResourceUtilities
.GetResourceString("AddDefaultsToActiveSwitchListDescription");
467
addToActiveSwitchList.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
499
addToActiveSwitchList.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
500
string commentContent =
ResourceUtilities
.GetResourceString("AddFallbacksToActiveSwitchListDescription");
502
addToActiveSwitchList.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
708
propertyName.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
709
string commentContent =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("PropertyNameDescription", property.Name);
711
commentContent =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("PropertyTypeDescription", type);
713
commentContent =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("PropertySwitchDescription", property.SwitchName);
715
propertyName.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
1084
commentContent =
ResourceUtilities
.GetResourceString("ToolExeFieldDescription");
1094
toolNameAccessor.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
1095
commentContent =
ResourceUtilities
.GetResourceString("ToolNameDescription");
1097
toolNameAccessor.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
1156
defaultConstructor.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
1157
string commentContent =
ResourceUtilities
.GetResourceString("ConstructorDescription");
1159
defaultConstructor.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
1208
addValidateRelationsMethod.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("StartSummary"), true));
1209
string commentContent =
ResourceUtilities
.GetResourceString("AddValidateRelationsMethod");
1211
addValidateRelationsMethod.Comments.Add(new CodeCommentStatement(
ResourceUtilities
.GetResourceString("EndSummary"), true));
1225
ErrorLog.AddLast(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(messageResourceName, messageArgs));
XamlTaskFactory\TaskParser.cs (6)
105
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Xaml.RuleParseFailed", parseErrors.ToString()));
144
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Xaml.RuleFileNotFound", contentOrFile));
176
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Xaml.RuleFileNotFound", maybeFullPath));
210
throw new XamlParseException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Xaml.RuleNotFound", desiredRule));
214
throw new XamlParseException(
ResourceUtilities
.GetResourceString("Xaml.InvalidRootObject"));
322
throw new XamlParseException(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("Xaml.DuplicatePropertyName", propertyToAdd.Name));
XamlTaskFactory\XamlDataDrivenToolTask.cs (2)
151
Log.LogError(
ResourceUtilities
.GetResourceString("Xaml.RuleMissingToolName"));
403
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("Xaml.MissingRequiredArgument", propertyName, argName));
XmlPeek.cs (5)
186
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XmlPeek.NamespacesParameterNotWellFormed"), xe);
198
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", prefixAttr));
205
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", uriAttr));
237
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XmlPeek.XmlInput.TooMany"));
242
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XmlPeek.XmlInput.TooFew"));
XmlPoke.cs (3)
172
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XmlPoke.NamespacesParameterNotWellFormed"), xe);
185
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", prefixAttr));
192
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", uriAttr));
XslTransformation.cs (8)
224
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XslTransform.XsltParameterNotWellFormed"), xe);
235
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Name"));
240
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Value"));
276
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XslTransform.XmlInput.TooMany"));
280
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XslTransform.XmlInput.TooFew"));
385
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XslTransform.XsltInput.TooMany"));
389
throw new ArgumentException(
ResourceUtilities
.GetResourceString("XslTransform.XsltInput.TooFew"));
528
throw new ArgumentException(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("XslTransform.MustSpecifyType", assemblyPath));
Microsoft.Build.Tasks.UnitTests (36)
AssemblyDependency\SuggestedRedirects.cs (8)
205
warningMessage.ShouldContain(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.FoundConflicts", "D", string.Empty));
206
warningMessage.ShouldContain(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ConflictFound", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", "D, Version=2.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa"));
207
warningMessage.ShouldContain(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.FourSpaceIndent",
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ReferenceDependsOn", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", Path.Combine(s_myLibraries_V1Path, "D.dll"))));
250
warningMessage.ShouldContain(
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.FoundConflicts", "D", string.Empty));
251
warningMessage.ShouldContain(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ConflictFound", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", "D, Version=2.0.0.0, Culture=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa"));
252
warningMessage.ShouldContain(
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.FourSpaceIndent",
ResourceUtilities
.FormatResourceStringIgnoreCodeAndKeyword("ResolveAssemblyReference.ReferenceDependsOn", "D, Version=1.0.0.0, CulTUre=neutral, PublicKeyToken=aaaaaaaaaaaaaaaa", Path.Combine(s_myLibraries_V1Path, "D.dll"))));
FindInvalidProjectReferences_Tests.cs (4)
45
string warning1 =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("FindInvalidProjectReferences.WarnWhenVersionIsIncompatible", "Windows", "8.0", "proj1.proj", "Windows, Version=7.0");
48
string warning2 =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("FindInvalidProjectReferences.WarnWhenVersionIsIncompatible", "Windows", "8.0", "proj2.proj", "Windows, Version=8.0");
51
string warning3 =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("FindInvalidProjectReferences.WarnWhenVersionIsIncompatible", "Windows", "8.0", "proj3.proj", "Windows, Version=8.1");
54
string warning4 =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("FindInvalidProjectReferences.WarnWhenVersionIsIncompatible", "Windows", "8.0", "proj4.proj", "Windows, Version=8.2");
MSBuildInternalMessage_Tests.cs (1)
47
string expectedBuildMessage =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword(expectedResourceName, formatArgs);
ResolveSDKReference_Tests.cs (11)
413
string warning =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.SDKMissingDependency", reference1.SDKName, "\"NotThere, Version=1.0\"");
416
warning =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.SDKMissingDependency", reference2.SDKName, "\"reference11, Version=1.0\", \"reference77, Version=1.0\"");
419
warning =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.SDKMissingDependency", reference3.SDKName, "\"NotThere, Version=1.0\", \"WhereAmI, Version=1.0\"");
422
warning =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.SDKMissingDependency", reference4.SDKName, "\"NotThere, Version=1.0\"");
453
string warning =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.SDKMissingDependency", "GoodTestSDK, Version=2.0", "\"NotHere, Version=1.0\"");
509
string warning =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.SDKMissingDependency", "GoodTestSDK, Version=2.0", "\"Foo, Version=1.0\", \"bar, Version=2.0\"");
2360
string message =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.ReadingSDKManifestFile", sdkManifestFile);
2363
string errorMessage =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.NoMatchingFrameworkIdentity", sdkManifestFile, "Retail", "x86");
2366
errorMessage =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.NoMatchingAppxLocation", sdkManifestFile, "Retail", "x86");
2432
string errorMessage =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.NoMatchingFrameworkIdentity", sdkManifestFile, "Retail", "x86");
2435
errorMessage =
ResourceUtilities
.FormatResourceStringStripCodeAndKeyword("ResolveSDKReference.NoMatchingAppxLocation", sdkManifestFile, "Retail", "x86");
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);
RoslynCodeTaskFactory_Tests.cs (1)
615
string errorMessage = string.Format(
ResourceUtilities
.GetResourceString("CodeTaskFactory.CouldNotFindTaskInAssembly"), taskName);