51 references to GetResourceString
Microsoft.Build.Tasks.Core (50)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
144_taskLogger.LogError(ResourceUtilities.GetResourceString("ResolveAssemblyReference.AssemblyFoldersConfigFileMalformed"), _assemblyFolderConfigFile, e.Message);
AssemblyDependency\ReferenceTable.cs (1)
2905throw new BadImageFormatException(ResourceUtilities.GetResourceString("ResolveAssemblyReference.ImplementationDllHasInvalidPEHeader"));
ComReference.cs (4)
151ResourceUtilities.GetResourceString("ResolveComReference.CannotGetTypeLibAttrForTypeLib")); 178ResourceUtilities.GetResourceString("ResolveComReference.CannotRetrieveTypeInformation")); 205ResourceUtilities.GetResourceString("ResolveComReference.CannotRetrieveTypeInformation")); 226ResourceUtilities.GetResourceString("ResolveComReference.CannotRetrieveTypeInformation"));
ErrorUtilities.cs (1)
623ResourceUtilities.GetResourceString("Shared.CollectionCopyToFailureProvidedArrayIsTooSmall"),
MSBuild.cs (1)
214if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable))
ResourceUtilities.cs (10)
167return ExtractMessageCode(true /* msbuildCodeOnly */, FormatString(GetResourceString(resourceName), args), out code); 184return ExtractMessageCode(true, GetResourceString(resourceName), out code); 198return ExtractMessageCode(true, FormatString(GetResourceString(resourceName), arg1), out code); 213return ExtractMessageCode(true, FormatString(GetResourceString(resourceName), arg1, arg2), out code); 229return ExtractMessageCode(true, FormatString(GetResourceString(resourceName), arg1, arg2, arg3), out code); 310=> FormatString(GetResourceString(resourceName), args); 321=> GetResourceString(resourceName); 331=> FormatString(GetResourceString(resourceName), arg1); 342=> FormatString(GetResourceString(resourceName), arg1, arg2); 354=> FormatString(GetResourceString(resourceName), arg1, arg2, arg3);
WriteCodeFragment.cs (1)
171string comment = ResourceUtilities.GetResourceString("WriteCodeFragment.Comment");
XamlTaskFactory\TaskGenerator.cs (20)
378taskClass.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 381taskClass.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true)); 464addToActiveSwitchList.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 465string commentContent = ResourceUtilities.GetResourceString("AddDefaultsToActiveSwitchListDescription"); 467addToActiveSwitchList.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true)); 499addToActiveSwitchList.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 500string commentContent = ResourceUtilities.GetResourceString("AddFallbacksToActiveSwitchListDescription"); 502addToActiveSwitchList.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true)); 708propertyName.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 715propertyName.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true)); 1084commentContent = ResourceUtilities.GetResourceString("ToolExeFieldDescription"); 1094toolNameAccessor.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 1095commentContent = ResourceUtilities.GetResourceString("ToolNameDescription"); 1097toolNameAccessor.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true)); 1156defaultConstructor.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 1157string commentContent = ResourceUtilities.GetResourceString("ConstructorDescription"); 1159defaultConstructor.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true)); 1208addValidateRelationsMethod.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("StartSummary"), true)); 1209string commentContent = ResourceUtilities.GetResourceString("AddValidateRelationsMethod"); 1211addValidateRelationsMethod.Comments.Add(new CodeCommentStatement(ResourceUtilities.GetResourceString("EndSummary"), true));
XamlTaskFactory\TaskParser.cs (1)
214throw new XamlParseException(ResourceUtilities.GetResourceString("Xaml.InvalidRootObject"));
XamlTaskFactory\XamlDataDrivenToolTask.cs (1)
151Log.LogError(ResourceUtilities.GetResourceString("Xaml.RuleMissingToolName"));
XmlPeek.cs (3)
186throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.NamespacesParameterNotWellFormed"), xe); 237throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooMany")); 242throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooFew"));
XmlPoke.cs (1)
172throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPoke.NamespacesParameterNotWellFormed"), xe);
XslTransformation.cs (5)
224throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltParameterNotWellFormed"), xe); 276throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooMany")); 280throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooFew")); 385throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooMany")); 389throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooFew"));
Microsoft.Build.Tasks.UnitTests (1)
RoslynCodeTaskFactory_Tests.cs (1)
615string errorMessage = string.Format(ResourceUtilities.GetResourceString("CodeTaskFactory.CouldNotFindTaskInAssembly"), taskName);