369 references to LogErrorWithCodeFromResources
Microsoft.Build.Tasks.CodeAnalysis (8)
CopyRefAssembly.cs (2)
38Log.LogErrorWithCodeFromResources("General_ExpectedFileMissing", SourcePath); 91Log.LogErrorWithCodeFromResources("Compiler_UnexpectedException");
ManagedCompiler.cs (2)
577Log.LogErrorWithCodeFromResources("Compiler_UnexpectedException"); 1153Log.LogErrorWithCodeFromResources("General_ReferenceDoesNotExist", reference.ItemSpec);
Vbc.cs (4)
334Log.LogErrorWithCodeFromResources("VBC_RenamePDB", PdbFile, e.Message); 607Log.LogErrorWithCodeFromResources("Vbc_EnumParameterHasInvalidValue", "Verbosity", this.Verbosity, "Quiet, Normal, Verbose"); 963Log.LogErrorWithCodeFromResources("General_CouldNotSetHostObjectParameter", param, e.Message); 1086Log.LogErrorWithCodeFromResources("General_IncorrectHostObject", "Vbc", "IVbcHostObject");
Microsoft.Build.Tasks.Core (322)
AspNetCompiler.cs (5)
305Log.LogErrorWithCodeFromResources("General.FrameworksFileNotFound", ToolExe, 320Log.LogErrorWithCodeFromResources("AspNetCompiler.CannotCombineMetabaseAndVirtualPathOrPhysicalPath"); 326Log.LogErrorWithCodeFromResources("AspNetCompiler.MissingMetabasePathAndVirtualPath"); 332Log.LogErrorWithCodeFromResources("AspNetCompiler.MissingTargetPathForUpdatableApplication"); 338Log.LogErrorWithCodeFromResources("AspNetCompiler.MissingTargetPathForOverwrittenApplication");
AssemblyDependency\GenerateBindingRedirects.cs (1)
347Log.LogErrorWithCodeFromResources("GenerateBindingRedirects.MissingConfigurationNode");
AssemblyDependency\ReferenceTable.cs (3)
2933_log.LogErrorWithCodeFromResources("ResolveAssemblyReference.UnknownProcessorArchitecture", dllPath, winmdFile, machineType.ToString("X", CultureInfo.InvariantCulture)); 2954_log.LogErrorWithCodeFromResources("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArchOfImplementation", ResolveAssemblyReference.ProcessorArchitectureToString(_targetProcessorArchitecture), ResolveAssemblyReference.ProcessorArchitectureToString(dllArchitecture), dllPath, winmdFile); 2967_log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemReadingImplementationDll", dllPath, e.Message);
AssemblyDependency\ResolveAssemblyReference.cs (8)
2172Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.InvalidParameter", "TargetFrameworkMoniker", _targetedFrameworkMoniker, String.Empty); 2449Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message); 2485Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message); 2638Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArch", ProcessorArchitectureToString(processorArchitecture), item.GetMetadata("OriginalItemSpec"), ProcessorArchitectureToString(assemblyArch)); 2653Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message); 2765Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.FrameworkDirectoryOnProfiles", item.ItemSpec); 2866Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.CannotSetProfileAndSubSet"); 2873Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.MustSetProfileNameAndFolderLocations");
AssignCulture.cs (1)
200Log.LogErrorWithCodeFromResources("AssignCulture.CannotExtractCulture", Files[i].ItemSpec, e.Message);
AssignProjectConfiguration.cs (1)
244Log.LogErrorWithCodeFromResources("General.ErrorExecutingTask", GetType().Name, e.Message);
AxImp.cs (1)
150Log.LogErrorWithCodeFromResources("AxImp.NoInputFileSpecified");
AxTlbBaseTask.cs (8)
86Log.LogErrorWithCodeFromResources("AxTlbBaseTask.ToolNameMustBeSet"); 131Log.LogErrorWithCodeFromResources("AxTlbBaseTask.SdkOrToolPathNotSpecifiedOrInvalid", SdkToolsPath ?? "", ToolPath ?? ""); 188Log.LogErrorWithCodeFromResources("AxTlbBaseTask.InvalidKeyFileSpecified", KeyFile); 199Log.LogErrorWithCodeFromResources("AxTlbBaseTask.CannotSpecifyBothKeyFileAndKeyContainer"); 206Log.LogErrorWithCodeFromResources("AxTlbBaseTask.CannotSpecifyDelaySignWithoutEitherKeyFileOrKeyContainer"); 233Log.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoPublicKeySpecified"); 248Log.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoKeyPairInContainer", KeyContainer); 253Log.LogErrorWithCodeFromResources("AxTlbBaseTask.StrongNameUtils.NoKeyPairInFile", KeyFile);
CodeTaskFactory.cs (15)
204_log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmpty", "Type"); 214_log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmpty", "Language"); 225_log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmpty", "Source"); 303_log.LogErrorWithCodeFromResources("CodeTaskFactory.CouldNotFindTaskInAssembly", _nameOfTask); 328log.LogErrorWithCodeFromResources("CodeTaskFactory.NeedsITaskInterface", _nameOfTask); 441_log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmptyWithTaskElement", "Include", "Reference", _nameOfTask); 472_log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmpty", "Namespace"); 503_log.LogErrorWithCodeFromResources("CodeTaskFactory.MultipleCodeNodes"); 508_log.LogErrorWithCodeFromResources("CodeTaskFactory.CodeElementIsMissing", _nameOfTask); 557_log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidElementLocation", childNode.Name, _taskNode.Name); 588_log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidElementLocation", childNode.Name, parentNode.Name); 634_log.LogErrorWithCodeFromResources("CodeTaskFactory.ReferenceAssemblyIsInvalid", referenceAssembly, e.Message); 644_log.LogErrorWithCodeFromResources("CodeTaskFactory.CouldNotFindReferenceAssembly", referenceAssembly); 815_log.LogErrorWithCodeFromResources("CodeTaskFactory.FindSourceFileAt", outputPath); 819_log.LogErrorWithCodeFromResources("CodeTaskFactory.CompilerError", e.ToString());
CombinePath.cs (1)
75Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
CombineTargetFrameworkInfoProperties.cs (1)
44Log.LogErrorWithCodeFromResources(resource, nameof(RootElementName), nameof(UseAttributeForTargetFrameworkInfoPropertyNames));
ConvertToAbsolutePath.cs (1)
71Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message);
Copy.cs (16)
235Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Name, destinationFileState.Name); 245Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Name); 251Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Name); 336Log.LogErrorWithCodeFromResources("Copy.LinkFailed", sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 660Log.LogErrorWithCodeFromResources("Copy.InvalidRetryCount", Retries); 666Log.LogErrorWithCodeFromResources("Copy.InvalidRetryDelay", RetryDelayMilliseconds); 673Log.LogErrorWithCodeFromResources("Copy.NeedsDestination", "DestinationFiles", "DestinationFolder"); 680Log.LogErrorWithCodeFromResources("Copy.ExactlyOneTypeOfDestination", "DestinationFiles", "DestinationFolder"); 687Log.LogErrorWithCodeFromResources("Copy.IncompatibleParameters", "SourceFolders", "DestinationFiles"); 694Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", DestinationFiles.Length, SourceFiles.Length, "DestinationFiles", "SourceFiles"); 700Log.LogErrorWithCodeFromResources("Copy.ErrorIfLinkFailsSetWithoutLinkOption"); 826Log.LogErrorWithCodeFromResources("Copy.Error", src, dest, e.Message); 882Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 887Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 983Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name, 1007Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name,
CreateItem.cs (2)
122Log.LogErrorWithCodeFromResources("CreateItem.AdditionalMetadataError", nameAndValue.Key); 172Log.LogErrorWithCodeFromResources(
CreateManifestResourceName.cs (1)
245Log.LogErrorWithCodeFromResources("CreateManifestResourceName.Error", resourceFile.ItemSpec, e.Message);
Delete.cs (3)
74Log.LogErrorWithCodeFromResources("Delete.InvalidRetryCount", Retries); 80Log.LogErrorWithCodeFromResources("Delete.InvalidRetryDelay", RetryDelayMilliseconds); 186Log.LogErrorWithCodeFromResources("Delete.Error", file.ItemSpec, e.Message, lockedFileMessage);
DownloadFile.cs (3)
90Log.LogErrorWithCodeFromResources("DownloadFile.ErrorInvalidUrl", SourceUrl); 131Log.LogErrorWithCodeFromResources("DownloadFile.ErrorDownloading", SourceUrl, flattenedMessage); 174Log.LogErrorWithCodeFromResources("DownloadFile.ErrorUnknownFileName", SourceUrl, nameof(DestinationFileName));
ErrorFromResources.cs (1)
62Log.LogErrorWithCodeFromResources("ErrorFromResources.LogErrorFailure", Resource, e.Message);
Exec.cs (7)
149Log.LogErrorWithCodeFromResources("General.InvalidValue", "StdOutEncoding", "Exec"); 170Log.LogErrorWithCodeFromResources("General.InvalidValue", "StdErrEncoding", "Exec"); 326Log.LogErrorWithCodeFromResources("Exec.CommandFailedAccessDenied", commandForLog, ExitCode); 330Log.LogErrorWithCodeFromResources("Exec.CommandFailed", commandForLog, ExitCode); 426Log.LogErrorWithCodeFromResources("Exec.InvalidRegex", regularExpression, ex.Message); 451Log.LogErrorWithCodeFromResources("Exec.MissingCommandError"); 468Log.LogErrorWithCodeFromResources("Exec.AllDriveLettersMappedError", _workingDirectory);
FileIO\GetFileHash.cs (3)
71Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashAlgorithm", Algorithm); 77Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashEncoding", HashEncoding); 90Log.LogErrorWithCodeFromResources("FileHash.FileNotFound", file.ItemSpec);
FileIO\ReadLinesFromFile.cs (1)
69Log.LogErrorWithCodeFromResources("ReadLinesFromFile.ErrorOrWarning", File.ItemSpec, e.Message);
FileIO\VerifyFileHash.cs (4)
44Log.LogErrorWithCodeFromResources("FileHash.FileNotFound", File); 50Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashAlgorithm", Algorithm); 56Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashEncoding", HashEncoding); 67Log.LogErrorWithCodeFromResources("VerifyFileHash.HashMismatch", File, Algorithm, Hash, actualHash);
FileIO\WriteLinesToFile.cs (3)
92Log.LogErrorWithCodeFromResources("General.InvalidValue", "Encoding", "WriteLinesToFile"); 124Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorReadingFile", File.ItemSpec); 153Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", File.ItemSpec, e.Message, lockedFileMessage);
FormatVersion.cs (1)
76Log.LogErrorWithCodeFromResources("General.InvalidValue", "FormatType", "FormatVersion");
GenerateApplicationManifest.cs (10)
117Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateApplicationManifest)); 175Log.LogErrorWithCodeFromResources("GenerateManifest.NoEntryPoint"); 192Log.LogErrorWithCodeFromResources("GenerateManifest.HostInBrowserInvalidFrameworkVersion"); 344Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "ManifestType"); 349Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "ManifestType"); 359Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "ClrVersion"); 364Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "OSVersion"); 369Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "TargetFrameworkVersion"); 377Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidRequestedExecutionLevel", requestedExecutionLevel); 479Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message);
GenerateDeploymentManifest.cs (7)
159Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateDeploymentManifest)); 184Log.LogErrorWithCodeFromResources("GenerateManifest.NoEntryPoint"); 269Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "MinimumRequiredVersion"); 280Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateMode"); 285Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateMode"); 297Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateUnit"); 302Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateUnit");
GenerateLauncher.cs (2)
46Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateLauncher)); 62Log.LogErrorWithCodeFromResources("GenerateLauncher.InvalidInput");
GenerateManifestBase.cs (9)
193Log.LogErrorWithCodeFromResources("GenerateManifest.NoIdentity"); 277Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateManifestBase)); 459Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message); 466Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidInputManifest"); 557Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "AssemblyName"); 562Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "AssemblyVersion"); 567Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "TargetCulture"); 575Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "Platform"); 623Log.LogErrorWithCodeFromResources("GenerateManifest.WriteOutputManifestFailed", OutputManifest.ItemSpec, ex.Message, lockedFileMessage);
GenerateResource.cs (14)
2743_logger.LogErrorWithCodeFromResources("GenerateResource.CannotWriteSTRFile", 2766_logger.LogErrorWithCodeFromResources("GenerateResource.CannotWriteOutput", 2800_logger.LogErrorWithCodeFromResources("GenerateResource.CannotWriteOutput", 2811_logger.LogErrorWithCodeFromResources("GenerateResource.CannotWriteOutput", 2876_logger.LogErrorWithCodeFromResources("GenerateResource.PathTooLong", currentOutputFile); 2920_logger.LogErrorWithCodeFromResources("GenerateResource.InvalidFilename", filename, ex.Message); 2946_logger.LogErrorWithCodeFromResources("GenerateResource.UnknownFileExtension", Path.GetExtension(filename), filename); 3084_logger.LogErrorWithCodeFromResources("GenerateResource.MissingFile", name); 3147_logger.LogErrorWithCodeFromResources("GenerateResource.CannotLoadAssemblyLoadFromFailed", name, e); 3363_logger.LogErrorWithCodeFromResources("GenerateResource.PreserializedResourcesRequiresProperty"); 3368_logger.LogErrorWithCodeFromResources("GenerateResource.PreserializedResourcesRequiresExtensions"); 3474_logger.LogErrorWithCodeFromResources("GenerateResource.ErrorFromCodeDom", inputFileName); 3477_logger.LogErrorWithCodeFromResources("GenerateResource.CodeDomError", error); 3535logger.LogErrorWithCodeFromResources("GenerateResource.STRCodeDomProviderFailed", stronglyTypedLanguage, e.Message);
GenerateTrustInfo.cs (3)
61Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", BaseManifest.ItemSpec, ex.Message); 86Log.LogErrorWithCodeFromResources("GenerateManifest.NoPermissionSetForTargetZone", dotNetVersion); 93Log.LogErrorWithCodeFromResources("GenerateManifest.NoPermissionSetForTargetZone", dotNetVersion);
GetAssemblyIdentity.cs (2)
68Log.LogErrorWithCodeFromResources("GetAssemblyIdentity.CouldNotGetAssemblyName", item.ItemSpec, e.Message); 73Log.LogErrorWithCodeFromResources("GetAssemblyIdentity.CouldNotGetAssemblyName", item.ItemSpec, e.Message);
GetInstalledSDKLocations.cs (3)
129Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GetInstalledSDKLocations)); 136Log.LogErrorWithCodeFromResources("GetInstalledSDKs.TargetPlatformInformationMissing"); 152Log.LogErrorWithCodeFromResources("GetInstalledSDKs.CouldNotGetSDKList", e.Message);
GetReferenceAssemblyPaths.cs (5)
184Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.NETFX35SP1NotIntstalled", TargetFrameworkMoniker); 191Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.InvalidTargetFrameworkMoniker", TargetFrameworkMoniker, e.Message); 221Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.ProblemGeneratingReferencePaths", TargetFrameworkMoniker, e.Message); 257Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.OutOfDateSDK", frameworkmoniker.ToString()); 261Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.NoReferenceAssemblyDirectoryFound", frameworkmoniker.ToString());
GetSDKReferenceFiles.cs (4)
232Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GetSDKReferenceFiles)); 266Log.LogErrorWithCodeFromResources("GetSDKReferenceFiles.CannotHaveEmptyTargetConfiguration", resolvedSDKReference.ItemSpec); 272Log.LogErrorWithCodeFromResources("GetSDKReferenceFiles.CannotHaveEmptyTargetArchitecture", resolvedSDKReference.ItemSpec); 292Log.LogErrorWithCodeFromResources("GetSDKReferenceFiles.CouldNotGetSDKReferenceFiles", e.Message);
MakeDir.cs (1)
82Log.LogErrorWithCodeFromResources("MakeDir.Error", directory.ItemSpec, e.Message);
ManifestUtil\OutputMessage.cs (1)
149task.Log.LogErrorWithCodeFromResources(message.Name, message.GetArguments());
Message.cs (1)
65Log.LogErrorWithCodeFromResources("Message.InvalidImportance", Importance);
Move.cs (8)
104Log.LogErrorWithCodeFromResources("Move.NeedsDestination", "DestinationFiles", "DestinationDirectory"); 111Log.LogErrorWithCodeFromResources("Move.ExactlyOneTypeOfDestination", "DestinationFiles", "DestinationDirectory"); 118Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", DestinationFiles.Length, SourceFiles.Length, "DestinationFiles", "SourceFiles"); 137Log.LogErrorWithCodeFromResources("Move.Error", SourceFiles[i].ItemSpec, DestinationFolder.ItemSpec, e.Message, string.Empty); 173Log.LogErrorWithCodeFromResources("Move.Error", sourceFile, destinationFile, e.Message, lockedFileMessage); 208Log.LogErrorWithCodeFromResources("Move.DestinationIsDirectory", sourceFile, destinationFile); 217Log.LogErrorWithCodeFromResources("Move.SourceIsDirectory", sourceFile); 224Log.LogErrorWithCodeFromResources("Move.SourceDoesNotExist", sourceFile);
MSBuild.cs (2)
312Log.LogErrorWithCodeFromResources("MSBuild.ProjectUpgradeNeededToVcxProj", project.ItemSpec); 353Log.LogErrorWithCodeFromResources("MSBuild.ProjectFileNotFound", project.ItemSpec);
MSBuildInternalMessage.cs (1)
62Log.LogErrorWithCodeFromResources(ResourceName, FormatArguments);
PropertyParser.cs (3)
60log?.LogErrorWithCodeFromResources("General.InvalidPropertyError", parameterName, propertyNameValuePair); 113log?.LogErrorWithCodeFromResources("General.InvalidPropertyError", syntaxName, propertyNameValueString); 156log?.LogErrorWithCodeFromResources("General.InvalidPropertyError", syntaxName, propertyNameValueString);
RegisterAssembly.cs (14)
71Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", Assemblies.Length, TypeLibFiles.Length, "Assemblies", "TypeLibFiles"); 122Log.LogErrorWithCodeFromResources("General.InvalidAssemblyName", Assemblies[i], ex.Message); 197Log.LogErrorWithCodeFromResources("RegisterAssembly.AssemblyNotRegisteredForComInterop", assemblyToResolve.GetName().FullName); 217Log.LogErrorWithCodeFromResources("RegisterAssembly.RegisterAsmFileDoesNotExist", assemblyPath); 257Log.LogErrorWithCodeFromResources("RegisterAssembly.CantExportTypeLib", assemblyPath, ex.Message); 276Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterTypeLib", typeLibPath, ex.Message); 282Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterAssembly", assemblyPath, e.Message); 287Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterAssembly", assemblyPath, e.Message); 292Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterAssembly", assemblyPath, e.Message); 297Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterAssembly", assemblyPath, e.Message); 302Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterAssembly", assemblyPath, e.Message); 307Log.LogErrorWithCodeFromResources("RegisterAssembly.UnauthorizedAccess", assemblyPath, e.Message); 312Log.LogErrorWithCodeFromResources("General.InvalidAssembly", assemblyPath); 317Log.LogErrorWithCodeFromResources("RegisterAssembly.CantRegisterAssembly", assemblyPath, e.Message);
RemoveDir.cs (3)
131Log.LogErrorWithCodeFromResources("RemoveDir.Error", directory, e.Message); 137Log.LogErrorWithCodeFromResources("RemoveDir.Error", directory.ItemSpec, e.Message); 175Log.LogErrorWithCodeFromResources("RemoveDir.Error", directory, e.Message);
ResGen.cs (5)
240Log.LogErrorWithCodeFromResources("ResGen.CommandTooLong", commandLineCommands.Length); 410Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", InputFiles.Length, OutputFiles.Length, "InputFiles", "OutputFiles"); 422Log.LogErrorWithCodeFromResources("ResGen.STRLanguageButNotExactlyOneSourceFile"); 435Log.LogErrorWithCodeFromResources("ResGen.STRClassNamespaceOrFilenameWithoutLanguage"); 445Log.LogErrorWithCodeFromResources("ResGen.SdkOrToolPathNotSpecifiedOrInvalid", SdkToolsPath ?? "", ToolPath ?? "");
ResolveComReference.cs (7)
420Log.LogErrorWithCodeFromResources("General.InvalidArgument", ex.Message); 425Log.LogErrorWithCodeFromResources("ResolveComReference.FailedToResolveComReference", 494Log.LogErrorWithCodeFromResources("General.PlatformSDKFileNotFound", "TlbImp.exe", 543Log.LogErrorWithCodeFromResources("General.PlatformSDKFileNotFound", "AxImp.exe", 628Log.LogErrorWithCodeFromResources("ResolveComReference.CannotSpecifyBothKeyFileAndKeyContainer"); 636Log.LogErrorWithCodeFromResources("ResolveComReference.CannotSpecifyDelaySignWithoutEitherKeyFileOrKeyContainer"); 654Log.LogErrorWithCodeFromResources("ResolveComReference.NoComReferencesSpecified");
ResolveKeySource.cs (9)
103Log.LogErrorWithCodeFromResources("ResolveKeySource.InvalidKeyName", KeyFile, ex.Message); 144Log.LogErrorWithCodeFromResources("ResolveKeySource.KeyFileForSignAssemblyNotImported", KeyFile, hashedContainerName); 145Log.LogErrorWithCodeFromResources("ResolveKeySource.KeyImportError", KeyFile); 154Log.LogErrorWithCodeFromResources("ResolveKeySource.KeyMD5SumError", KeyFile, e.Message); 210Log.LogErrorWithCodeFromResources("ResolveKeySource.CertificateNotInStore"); 240Log.LogErrorWithCodeFromResources("ResolveKeySource.KeyFileForManifestNotImported", KeyFile); 244Log.LogErrorWithCodeFromResources("ResolveKeySource.KeyImportError", CertificateFile); 260Log.LogErrorWithCodeFromResources("ResolveKeySource.KeyImportError", CertificateFile); 275Log.LogErrorWithCodeFromResources("ResolveKeySource.CertificateNotInStore");
ResolveManifestFiles.cs (5)
183Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 191Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 199Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 207Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 246Log.LogErrorWithCodeFromResources("General.InvalidValue", "TargetCulture", "ResolveManifestFiles");
ResolveNativeReference.cs (1)
220Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", path, ex.Message);
ResolveNonMSBuildProjectOutput.cs (1)
148Log.LogErrorWithCodeFromResources("General.ErrorExecutingTask", this.GetType().Name, e.Message);
ResolveProjectBase.cs (1)
92Log.LogErrorWithCodeFromResources("General.MissingOrUnknownProjectReferenceAttribute", reference.ItemSpec, missingAttribute);
ResolveSDKReference.cs (4)
270Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(ResolveSDKReference)); 423Log.LogErrorWithCodeFromResources("ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", notCompatibleReference.SDKName, incompatibleReferencesDelimited, notCompatibleReference.ProductFamilyName); 452Log.LogErrorWithCodeFromResources("ResolveSDKReference.CannotReferenceTwoSDKsSameName", notCompatibleReference.SDKName, incompatibleReferencesDelimited); 649Log.LogErrorWithCodeFromResources(errorOrWarning.Item1, errorOrWarning.Item2);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (18)
180_log.LogErrorWithCodeFromResources("CodeTaskFactory.CouldNotFindTaskInAssembly", taskName); 312log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidTaskXml", e.Message); 318log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidTaskXml", String.Empty); 340log.LogErrorWithCodeFromResources("CodeTaskFactory.MultipleCodeNodes"); 353log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmptyWithTaskElement", "Include", "Reference", taskName); 367log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmptyWithElement", "Namespace", "Using"); 376log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidElementLocation", 385log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidElementLocation", 395log.LogErrorWithCodeFromResources("CodeTaskFactory.CodeElementIsMissing", taskName); 426log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidCodeElementAttribute", 437log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmptyWithElement", "Source", "Code"); 451log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmptyWithElement", "Type", "Code"); 458log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidCodeType", typeAttribute.Value, String.Join(", ", Enum.GetNames(typeof(RoslynCodeTaskFactoryCodeType)))); 470log.LogErrorWithCodeFromResources("CodeTaskFactory.AttributeEmptyWithElement", "Language", "Code"); 497log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidCodeLanguage", languageAttribute.Value, String.Join(", ", ValidCodeLanguages.Keys)); 506log.LogErrorWithCodeFromResources("CodeTaskFactory.NoSourceCode"); 580log.LogErrorWithCodeFromResources("CodeTaskFactory.CouldNotFindReferenceAssembly", reference); 750_log.LogErrorWithCodeFromResources("CodeTaskFactory.FindSourceFileAt", sourceCodePath);
SdkToolsPathUtility.cs (2)
86log.LogErrorWithCodeFromResources("General.SdkToolsPathError", toolName, e.Message); 121log.LogErrorWithCodeFromResources("General.SdkToolsPathToolDoesNotExist", toolName, sdkToolsPath, ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Latest, VisualStudioVersion.VersionLatest));
SGen.cs (5)
178Log.LogErrorWithCodeFromResources("SGen.InvalidPath", "BuildAssemblyPath", e.Message); 250Log.LogErrorWithCodeFromResources("SGen.InvalidPath", "BuildAssemblyName", e.Message); 335Log.LogErrorWithCodeFromResources("SGen.ResourceNotFound", reference); 444Log.LogErrorWithCodeFromResources("SGen.CouldNotDeleteSerializer", SerializationAssemblyPath, e.Message); 448Log.LogErrorWithCodeFromResources("SGen.CouldNotDeleteSerializer", SerializationAssemblyPath, e.Message);
SignFile.cs (7)
48Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(SignFile)); 64Log.LogErrorWithCodeFromResources("SignFile.CertNotInStore"); 69Log.LogErrorWithCodeFromResources("SignFile.TargetFileNotFound", ex.FileName); 74Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim()); 84Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim()); 89Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim()); 94Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim());
StrongNameUtils.cs (5)
60log.LogErrorWithCodeFromResources("StrongNameUtils.KeyFileReadFailure", keyFile); 66log.LogErrorWithCodeFromResources("StrongNameUtils.KeyFileReadFailure", keyFile); 72log.LogErrorWithCodeFromResources("StrongNameUtils.KeyFileReadFailure", keyFile); 115log.LogErrorWithCodeFromResources("StrongNameUtils.BadKeyContainer", keyContainer); 121log.LogErrorWithCodeFromResources("StrongNameUtils.BadKeyContainer", keyContainer);
TlbImp.cs (2)
272Log.LogErrorWithCodeFromResources("TlbImp.NoInputFileSpecified"); 280Log.LogErrorWithCodeFromResources("TlbImp.InvalidTransformParameter", Transform.ToString());
Touch.cs (7)
83Log.LogErrorWithCodeFromResources("Touch.TimeSyntaxIncorrect", e.Message); 146Log.LogErrorWithCodeFromResources("Message.InvalidImportance", Importance); 178Log.LogErrorWithCodeFromResources("Touch.CannotCreateFile", file, e.Message); 220Log.LogErrorWithCodeFromResources("Touch.FileDoesNotExist", file); 251Log.LogErrorWithCodeFromResources("Touch.CannotMakeFileWritable", file, e.Message, lockedFileMessage); 267Log.LogErrorWithCodeFromResources("Touch.CannotTouch", file, e.Message, lockedFileMessage); 282Log.LogErrorWithCodeFromResources("Touch.CannotRestoreAttributes", file, e.Message);
UnregisterAssembly.cs (12)
73Log.LogErrorWithCodeFromResources("UnregisterAssembly.AssemblyPathOrStateFileIsRequired", GetType().Name); 80Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", Assemblies.Length, TypeLibFiles.Length, "Assemblies", "TypeLibFiles"); 119Log.LogErrorWithCodeFromResources("General.InvalidAssemblyName", assemblyPath, ex.Message); 185Log.LogErrorWithCodeFromResources("UnregisterAssembly.CantUnregisterAssembly", assemblyPath, e.Message); 190Log.LogErrorWithCodeFromResources("UnregisterAssembly.CantUnregisterAssembly", assemblyPath, e.Message); 195Log.LogErrorWithCodeFromResources("UnregisterAssembly.CantUnregisterAssembly", assemblyPath, e.Message); 200Log.LogErrorWithCodeFromResources("UnregisterAssembly.CantUnregisterAssembly", assemblyPath, e.Message); 205Log.LogErrorWithCodeFromResources("UnregisterAssembly.CantUnregisterAssembly", assemblyPath, e.Message); 210Log.LogErrorWithCodeFromResources("UnregisterAssembly.UnauthorizedAccess", assemblyPath, e.Message); 215Log.LogErrorWithCodeFromResources("General.InvalidAssembly", assemblyPath); 220Log.LogErrorWithCodeFromResources("UnregisterAssembly.UnauthorizedAccess", assemblyPath, e.Message); 266Log.LogErrorWithCodeFromResources("UnregisterAssembly.UnregisterTlbCantLoadFile", typeLibPath);
Unzip.cs (8)
94Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", DestinationFolder.ItemSpec, e.Message); 111Log.LogErrorWithCodeFromResources("Unzip.ErrorFileDoesNotExist", sourceFile.ItemSpec); 143Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotOpenFile", sourceFile.ItemSpec, e.Message); 212Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message); 225Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage); 273Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message); 328Log.LogErrorWithCodeFromResources("Unzip.ErrorParsingPatternPropertyReferences", pattern); 332Log.LogErrorWithCodeFromResources("Unzip.ErrorParsingPatternInvalidPath", pattern);
WinMDExp.cs (1)
255Log.LogErrorWithCodeFromResources("WinMDExp.MustPassReferences");
WriteCodeFragment.cs (9)
83Log.LogErrorWithCodeFromResources("General.InvalidValue", nameof(Language), "WriteCodeFragment"); 89Log.LogErrorWithCodeFromResources("WriteCodeFragment.MustSpecifyLocation"); 124Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotWriteOutput", itemSpec, ex.Message, lockedFileMessage); 159Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotCreateProvider", Language, e.Message); 215Log.LogErrorWithCodeFromResources("General.InvalidValue", name, "WriteCodeFragment"); 221Log.LogErrorWithCodeFromResources("WriteCodeFragment.SkippedNumberedParameter", index); 247Log.LogErrorWithCodeFromResources("WriteCodeFragment.SkippedNumberedParameter", i + 1 /* back to 1 based */); 538Log.LogErrorWithCodeFromResources("WriteCodeFragment.ParameterTypeNotFound", typeName); 550Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotConvertValue", rawValue, typeName, ex.Message);
XamlTaskFactory\XamlDataDrivenToolTask.cs (6)
296_logPrivate.LogErrorWithCodeFromResources("Xaml.CommandFailedAccessDenied", CommandLine, ExitCode); 300_logPrivate.LogErrorWithCodeFromResources("Xaml.CommandFailed", CommandLine, ExitCode); 332_logPrivate.LogErrorWithCodeFromResources("Xaml.ArgumentOutOfRange", switchName, value); 356_logPrivate.LogErrorWithCodeFromResources("Xaml.ArgumentOutOfRange", propertyName, value); 379_logPrivate.LogErrorWithCodeFromResources("Xaml.ArgumentOutOfRange", propertyName, value); 402_logPrivate.LogErrorWithCodeFromResources("Xaml.MissingRequiredArgument", propertyName, argName);
XamlTaskFactory\XamlTaskFactory.cs (2)
98log.LogErrorWithCodeFromResources("Xaml.MissingTaskBody"); 186log.LogErrorWithCodeFromResources("Xaml.TaskCreationFailed", errorList.ToString());
XmlPeek.cs (5)
74Log.LogErrorWithCodeFromResources("XmlPeek.ArgumentError", e.Message); 89Log.LogErrorWithCodeFromResources("XmlPeekPoke.InputFileError", XmlInputPath.ItemSpec, e.Message); 106Log.LogErrorWithCodeFromResources("XmlPeekPoke.XPathError", Query, e.Message); 119Log.LogErrorWithCodeFromResources("XmlPeek.NamespacesError", e.Message); 129Log.LogErrorWithCodeFromResources("XmlPeek.XPathContextError", e.Message);
XmlPoke.cs (5)
77Log.LogErrorWithCodeFromResources("XmlPeekPoke.InputFileError", XmlInputPath.ItemSpec, e.Message); 91Log.LogErrorWithCodeFromResources("XmlPeekPoke.XPathError", Query, e.Message); 105Log.LogErrorWithCodeFromResources("XmlPoke.NamespacesError", e.Message); 115Log.LogErrorWithCodeFromResources("XmlPoke.XPathContextError", e.Message); 132Log.LogErrorWithCodeFromResources("XmlPoke.PokeError", Value.ItemSpec, e.Message);
XslTransformation.cs (7)
110Log.LogErrorWithCodeFromResources("XslTransform.ArgumentError", e.Message); 117Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", _outputPaths.Length, XmlInputPaths.Length, "OutputPaths", "XmlInputPaths"); 124Log.LogErrorWithCodeFromResources("General.TwoVectorsMustHaveSameLength", _outputPaths.Length, 1, "OutputPaths", "XmlContent"); 137Log.LogErrorWithCodeFromResources("XslTransform.XsltArgumentsError", e.Message); 150Log.LogErrorWithCodeFromResources("XslTransform.PrecompiledXsltError"); 155Log.LogErrorWithCodeFromResources("XslTransform.XsltLoadError", e.Message); 183Log.LogErrorWithCodeFromResources("XslTransform.TransformError", flattenedMessage);
ZipDirectory.cs (4)
45Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorDirectoryDoesNotExist", sourceDirectory.FullName); 59Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFileExists", destinationFile.FullName); 71Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, lockedFileMessage); 91Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty);
Microsoft.Build.Tasks.UnitTests (2)
ToolTaskExtension_Tests.cs (2)
34t.Log.LogErrorWithCodeFromResources("Csc.AssemblyAliasContainsIllegalCharacters", "PlanetSide", "Knights of the Old Republic"); 47log.LogErrorWithCodeFromResources("ToolTask.CommandTooLong", "Painkiller");
Microsoft.Build.Utilities.Core (11)
AppDomainIsolatedTask.cs (2)
48/// <see cref="TaskLoggingHelper.LogErrorWithCodeFromResources(string, object[])"/> method. 95/// see the <see cref="TaskLoggingHelper.LogErrorWithCodeFromResources(string, object[])"/> method.
ToolTask.cs (9)
448LogPrivate.LogErrorWithCodeFromResources("ToolTask.ToolCommandFailed", ToolExe, ExitCode); 542LogPrivate.LogErrorWithCodeFromResources("ToolTask.ToolExecutableNotFound", pathToTool); 1281Log.LogErrorWithCodeFromResources("Message.InvalidImportance", StandardErrorImportance); 1301Log.LogErrorWithCodeFromResources("Message.InvalidImportance", StandardOutputImportance); 1352LogPrivate.LogErrorWithCodeFromResources("ToolTask.ValidateParametersFailed", this.GetType().FullName); 1367LogPrivate.LogErrorWithCodeFromResources("ToolTask.InvalidEnvironmentParameter", nameValuePair[0]); 1392LogPrivate.LogErrorWithCodeFromResources("ToolTask.NotUpToDate"); 1599LogPrivate.LogErrorWithCodeFromResources("General.InvalidToolSwitch", ToolExe, e.ToString()); 1607LogPrivate.LogErrorWithCodeFromResources("ToolTask.CouldNotStartToolExecutable", ToolExe, e.ToString());
PresentationBuildTasks (26)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (3)
131Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 279Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), targetType); 290Log.LogErrorWithCodeFromResources(nameof(SR.InvalidCulture), Culture);
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (9)
134Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting)); 202Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 905Log.LogErrorWithCodeFromResources(nameof(SR.MultipleSplashScreenImages)); 926Log.LogErrorWithCodeFromResources(nameof(SR.AppDefIsNotRequired)); 941Log.LogErrorWithCodeFromResources(nameof(SR.MutlipleApplicationFiles)); 950Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), ApplicationFile); 985Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType); 1003Log.LogErrorWithCodeFromResources(nameof(SR.WrongLocalizationPropertySetting_Pass1)); 1045Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), filePath);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (3)
96Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting)); 157Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 827Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType);
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
108Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (3)
164Log.LogErrorWithCodeFromResources(nameof(SR.MoreResourcesFiles)); 227Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 307Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), strFileName);
Microsoft\Build\Tasks\Windows\UidManager.cs (6)
78Log.LogErrorWithCodeFromResources(nameof(SR.SourceFileNameNeeded)); 88Log.LogErrorWithCodeFromResources(nameof(SR.BadUidTask), _taskAsString); 126Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 355Log.LogErrorWithCodeFromResources(nameof(SR.FilesFailedUidCheck), _markupFiles.Length - countGoodFiles); 408Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath); 415Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath);
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
151Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));