499 references to Log
Microsoft.Build.Tasks.Core (492)
AddToWin32Manifest.cs (10)
94Log.LogErrorWithCodeFromResources(null, ApplicationManifest?.ItemSpec, 0, 0, 0, 0, "AddToWin32Manifest.SpecifiedApplicationManifestCanNotBeFound"); 124Log.LogErrorWithCodeFromResources(null, manifestPath, 0, 0, 0, 0, "AddToWin32Manifest.ManifestCanNotBeOpened"); 126return !Log.HasLoggedErrors; 139return !Log.HasLoggedErrors; 141return !Log.HasLoggedErrors; 143return !Log.HasLoggedErrors; 150Log.LogErrorWithCodeFromResources(null, manifestPath, 0, 0, 0, 0, "AddToWin32Manifest.ManifestCanNotBeOpenedWithException", ex.Message); 152return !Log.HasLoggedErrors; 190Log.LogErrorWithCodeFromResources(null, manifestPath, 0, 0, 0, 0, "AddToWin32Manifest.AssemblyNodeIsMissed"); 199Log.LogErrorWithCodeFromResources(null, manifestPath, 0, 0, 0, 0, "AddToWin32Manifest.InvalidValueInSupportedArchitectures", supportedArchitecturesNode.InnerText);
AssemblyDependency\GenerateBindingRedirects.cs (10)
59Log.LogMessageFromResources("GenerateBindingRedirects.NoSuggestedRedirects"); 137Log.LogMessageFromResources(MessageImportance.Low, "GenerateBindingRedirects.CreatingBindingRedirectionFile", OutputAppConfigFile.ItemSpec); 144return !Log.HasLoggedErrors; 219Log.LogWarningWithCodeFromResources("GenerateBindingRedirects.MissingNode", "dependentAssembly", "assemblyBinding"); 267Log.LogWarningWithCodeFromResources("GenerateBindingRedirects.MalformedVersionNumber", oldVerStrLow); 273Log.LogWarningWithCodeFromResources("GenerateBindingRedirects.MalformedVersionNumber", oldVerStrHigh); 315Log.LogWarningWithCodeFromResources("GenerateBindingRedirects.OverlappingBindingRedirect", entry.Key.ToString(), bindingRedirect.ToString()); 347Log.LogErrorWithCodeFromResources("GenerateBindingRedirects.MissingConfigurationNode"); 371Log.LogMessageFromResources(MessageImportance.Low, "GenerateBindingRedirects.ProcessingSuggestedRedirect", redirectStr, maxVerStr); 379Log.LogWarningWithCodeFromResources("GenerateBindingRedirects.MalformedAssemblyName", redirectStr);
AssemblyDependency\ResolveAssemblyReference.cs (144)
67Strings.Initialize(Log); 1137Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.FoundConflicts", assemblyName.Name, output); 1142Log.LogMessage(ChooseReferenceLoggingImportance(conflictCandidate), output); 1143Log.LogMessage(MessageImportance.Low, details); 1194Log.LogMessageFromResources( 1245Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.TurnOnAutoGenerateBindingRedirects"); 1251Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.SuggestedRedirects", buffer.ToString()); 1265Log.LogWarningWithCodeFromResources("General.MalformedAssemblyName", e.SourceItemSpec); 1382if (!Log.LogsMessagesOfImportance(importance)) 1453if (Silent || Log.IsTaskInputLoggingEnabled || !Log.LogsMessagesOfImportance(importance)) 1462Log.LogMessage(importance, property, "TargetFrameworkMoniker"); 1463Log.LogMessage(importance, indent + _targetedFrameworkMoniker); 1465Log.LogMessage(importance, property, "TargetFrameworkMonikerDisplayName"); 1466Log.LogMessage(importance, indent + TargetFrameworkMonikerDisplayName); 1468Log.LogMessage(importance, property, "TargetedRuntimeVersion"); 1469Log.LogMessage(importance, indent + _targetedRuntimeVersionRawValue); 1471Log.LogMessage(importance, property, "Assemblies"); 1474Log.LogMessage(importance, indent + item.ItemSpec); 1483Log.LogMessage(importance, property, "AssemblyFiles"); 1486Log.LogMessage(importance, indent + item.ItemSpec); 1491Log.LogMessage(importance, property, "CandidateAssemblyFiles"); 1498Log.LogMessage(importance, indent + file); 1507Log.LogMessage(importance, property, "TargetFrameworkDirectories"); 1508Log.LogMessage(importance, indent + String.Join(",", TargetFrameworkDirectories)); 1510Log.LogMessage(importance, property, "InstalledAssemblyTables"); 1513Log.LogMessage(importance, indent + installedAssemblyTable); 1517Log.LogMessage(importance, property, "IgnoreInstalledAssemblyTable"); 1518Log.LogMessage(importance, indent + _ignoreDefaultInstalledAssemblyTables); 1520Log.LogMessage(importance, property, "SearchPaths"); 1523Log.LogMessage(importance, indent + path); 1526Log.LogMessage(importance, property, "AllowedAssemblyExtensions"); 1529Log.LogMessage(importance, indent + allowedAssemblyExtension); 1532Log.LogMessage(importance, property, "AllowedRelatedFileExtensions"); 1535Log.LogMessage(importance, indent + allowedRelatedFileExtension); 1538Log.LogMessage(importance, property, "AppConfigFile"); 1539Log.LogMessage(importance, indent + AppConfigFile); 1541Log.LogMessage(importance, property, "AutoUnify"); 1542Log.LogMessage(importance, indent + AutoUnify.ToString()); 1544Log.LogMessage(importance, property, "CopyLocalDependenciesWhenParentReferenceInGac"); 1545Log.LogMessage(importance, indent + _copyLocalDependenciesWhenParentReferenceInGac); 1547Log.LogMessage(importance, property, "FindDependencies"); 1548Log.LogMessage(importance, indent + _findDependencies); 1550Log.LogMessage(importance, property, "TargetProcessorArchitecture"); 1551Log.LogMessage(importance, indent + TargetProcessorArchitecture); 1553Log.LogMessage(importance, property, "StateFile"); 1554Log.LogMessage(importance, indent + StateFile); 1556Log.LogMessage(importance, property, "InstalledAssemblySubsetTables"); 1559Log.LogMessage(importance, indent + installedAssemblySubsetTable); 1563Log.LogMessage(importance, property, "IgnoreInstalledAssemblySubsetTable"); 1564Log.LogMessage(importance, indent + _ignoreDefaultInstalledAssemblySubsetTables); 1566Log.LogMessage(importance, property, "TargetFrameworkSubsets"); 1569Log.LogMessage(importance, indent + subset); 1572Log.LogMessage(importance, property, "FullTargetFrameworkSubsetNames"); 1575Log.LogMessage(importance, indent + subset); 1578Log.LogMessage(importance, property, "ProfileName"); 1579Log.LogMessage(importance, indent + ProfileName); 1581Log.LogMessage(importance, property, "FullFrameworkFolders"); 1584Log.LogMessage(importance, indent + fullFolder); 1587Log.LogMessage(importance, property, "LatestTargetFrameworkDirectories"); 1590Log.LogMessage(importance, indent + latestFolder); 1593Log.LogMessage(importance, property, "ProfileTablesLocation"); 1596Log.LogMessage(importance, indent + profileTable); 1611Log.LogMessage(MessageImportance.Low, Strings.LogAttributeFormat, metadataName, metadataValue); 1627Log.LogMessage(importance, Strings.UnifiedPrimaryReference, fusionName); 1631Log.LogMessage(importance, Strings.PrimaryReference, fusionName); 1638Log.LogMessage(importance, Strings.UnifiedDependency, fusionName); 1642Log.LogMessage(importance, Strings.Dependency, fusionName); 1653Log.LogMessage(importance, Strings.UnificationByAutoUnify, unificationVersion.version, unificationVersion.referenceFullPath); 1657Log.LogMessage(importance, Strings.UnificationByAppConfig, unificationVersion.version, _appConfigFile, unificationVersion.referenceFullPath); 1662Log.LogMessage(importance, Strings.UnificationByFrameworkRetarget, unificationVersion.version, unificationVersion.referenceFullPath); 1676Log.LogMessage(importance, Strings.RemappedReference, remapping.From.FullName, remapping.To.FullName); 1696message = Log.FormatResourceString("ResolveAssemblyReference.FailedToResolveReference", itemError.Message); 1702message = Log.FormatResourceString("ResolveAssemblyReference.FailedToFindDependentFiles", itemError.Message); 1708message = Log.FormatResourceString("ResolveAssemblyReference.FailedWithException", itemError.Message); 1717string warningCode = Log.ExtractMessageCode(message, out string messageOnly); 1723Log.LogWarning( 1737Log.LogMessage(importance, Strings.FourSpaces + messageOnly); 1753Log.LogMessage(importance, Strings.Resolved, reference.FullPath); 1754Log.LogMessage(importance, Strings.ResolvedFrom, reference.ResolvedSearchPath); 1799Log.LogMessage(importance, Strings.SearchPathAddedByParentAssembly, lastSearchPath, location.ParentAssembly); 1803Log.LogMessage(importance, Strings.SearchPath, lastSearchPath); 1807Log.LogMessage(importance, Strings.SearchedAssemblyFoldersEx); 1818Log.LogMessage(importance, Strings.ConsideredAndRejectedBecauseNoFile, location.FileNameAttempted); 1823Log.LogMessage(importance, Strings.ConsideredAndRejectedBecauseFusionNamesDidntMatch, location.FileNameAttempted, location.AssemblyName.FullName, fusionName); 1827Log.LogMessage(importance, Strings.ConsideredAndRejectedBecauseTargetDidntHaveFusionName, location.FileNameAttempted); 1831Log.LogMessage(importance, Strings.ConsideredAndRejectedBecauseNotInGac, location.FileNameAttempted); 1838Log.LogMessage(importance, Strings.ConsideredAndRejectedBecauseNotAFileNameOnDisk, location.FileNameAttempted); 1844Log.LogMessage( 1871Log.LogMessage(importance, Strings.RequiredBy, dependee.ItemSpec); 1889Log.LogMessage(importance, Strings.FoundRelatedFile, reference.FullPathWithoutExtension + relatedFileExtension); 1904Log.LogMessage(importance, Strings.FoundSatelliteFile, satelliteFile); 1917Log.LogMessage(importance, Strings.FoundScatterFile, scatterFile); 1937Log.LogMessage(importance, Strings.NotCopyLocalBecausePrerequisite); 1941Log.LogMessage(importance, Strings.NotCopyLocalBecauseIncomingItemAttributeOverrode); 1945Log.LogMessage(importance, Strings.NotCopyLocalBecauseFrameworksFiles); 1950Log.LogMessage(importance, Strings.NotCopyLocalBecauseReferenceFoundInGAC); 1954Log.LogMessage(importance, Strings.NotCopyLocalBecauseConflictVictim); 1958Log.LogMessage(importance, Strings.NotCopyLocalBecauseEmbedded); 1962Log.LogMessage(importance, Strings.NoBecauseParentReferencesFoundInGac); 1966Log.LogMessage(importance, Strings.NoBecauseBadImage); 1986Log.LogMessage(importance, Strings.ImageRuntimeVersion, reference.ImageRuntime); 1991Log.LogMessage(importance, Strings.IsAWinMdFile); 2010string message = Log.FormatResourceString("ResolveAssemblyReference.ConflictHigherVersionChosen", reference.ConflictVictorName); 2017string message = Log.FormatResourceString("ResolveAssemblyReference.ConflictPrimaryChosen", reference.ConflictVictorName, fusionName); 2027Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.ConflictUnsolvable", reference.ConflictVictorName, fusionName); 2052_cache = SystemState.DeserializeCache<SystemState>(_stateFile, Log); 2057_cache = SystemState.DeserializePrecomputedCaches(AssemblyInformationCachePaths, Log, fileExists); 2073_cache.SerializePrecomputedCache(AssemblyInformationCacheOutputPath, Log); 2079_cache.SerializeCache(_stateFile, Log); 2172Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.InvalidParameter", "TargetFrameworkMoniker", _targetedFrameworkMoniker, String.Empty); 2238Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.NoSubsetsFound"); 2244Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.NoRedistAssembliesToGenerateExclusionList"); 2292Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblyTablesFile", filename, RedistList.RedistListFolder, e.Message); 2302Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidInstalledAssemblySubsetTablesFile", filename, SubsetListFinder.SubsetListFolder, e.Message); 2364Log.LogErrorWithCodeFromResources(null, e.FileName, e.Line, e.Column, 0, 0, "ResolveAssemblyReference.InvalidAppConfig", AppConfigFile, e.Message); 2405Log, 2449Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message); 2485Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.ProblemDeterminingFrameworkMembership", e.Message); 2638Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArch", ProcessorArchitectureToString(processorArchitecture), item.GetMetadata("OriginalItemSpec"), ProcessorArchitectureToString(assemblyArch)); 2642Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.MismatchBetweenTargetedAndReferencedArch", ProcessorArchitectureToString(processorArchitecture), item.GetMetadata("OriginalItemSpec"), ProcessorArchitectureToString(assemblyArch)); 2649return success && !Log.HasLoggedErrors; 2653Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message); 2660Log.LogErrorWithCodeFromResources(null, "", 0, 0, 0, 0, 2667return success && !Log.HasLoggedErrors; 2765Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.FrameworkDirectoryOnProfiles", item.ItemSpec); 2779Log.LogMessageFromResources("ResolveAssemblyReference.ProfileExclusionListWillBeGenerated"); 2790Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.NoRedistAssembliesToGenerateExclusionList"); 2795Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.NoProfilesFound"); 2808Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.InvalidProfileRedistLocation", filename, RedistList.RedistListFolder, e.Message); 2866Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.CannotSetProfileAndSubSet"); 2873Log.LogErrorWithCodeFromResources("ResolveAssemblyReference.MustSetProfileNameAndFolderLocations"); 2896Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkSubsetLogHeader"); 2898Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkRedistLogHeader"); 2903Log.LogMessage(MessageImportance.Low, Strings.FormattedAssemblyInfo, redistInfo.Path); 2907Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkAllowListLogHeader"); 2914Log.LogMessage(MessageImportance.Low, Strings.FormattedAssemblyInfo, inclusionListInfo.Path); 2921Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkExclusionListLogHeader"); 2924Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", assemblyFullName); 2950Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.NoExclusionListBecauseofFullClientName", subsetName); 2972Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.UsingExclusionList"); 3081Log.LogMessageFromResources(MessageImportance.Normal, "ResolveAssemblyReference.BadTargetFrameworkFormat", version); 3113Log.LogMessageFromResources(MessageImportance.Normal, "ResolveAssemblyReference.IgnoringBecauseNonEmptySubtype", assembly.ItemSpec, subType); 3117Log.LogWarningWithCodeFromResources("ResolveAssemblyReference.FailedToResolveReferenceBecauseHigherTargetFramework", assembly.ItemSpec, assembly.GetMetadata(ItemMetadataNames.targetFramework));
AssignCulture.cs (2)
177Log.LogMessageFromResources( 185Log.LogErrorWithCodeFromResources("AssignCulture.CannotExtractCulture", Files[i].ItemSpec, e.Message);
AssignLinkMetadata.cs (2)
66Log.LogWarningFromException(e); 72return !Log.HasLoggedErrors;
AssignProjectConfiguration.cs (4)
204Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationResolutionSuccess", projectRef.ItemSpec, resolvedReference.GetMetadata(attrFullConfiguration)); 235Log.LogMessageFromResources(MessageImportance.Low, "AssignProjectConfiguration.ProjectConfigurationUnresolved", projectRef.ItemSpec); 244Log.LogErrorWithCodeFromResources("General.ErrorExecutingTask", GetType().Name, e.Message); 400Log.LogErrorFromResources("AssignProjectConfiguration.IllegalMappingString", mapping.Trim(), mappingList);
CallTarget.cs (1)
87Log,
CombinePath.cs (2)
75Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message); 80return !Log.HasLoggedErrors;
CombineTargetFrameworkInfoProperties.cs (2)
44Log.LogErrorWithCodeFromResources(resource, nameof(RootElementName), nameof(UseAttributeForTargetFrameworkInfoPropertyNames)); 60return !Log.HasLoggedErrors;
CombineXmlElements.cs (1)
46return !Log.HasLoggedErrors;
ConvertToAbsolutePath.cs (2)
71Log.LogErrorWithCodeFromResources("General.InvalidArgument", e.Message); 76return !Log.HasLoggedErrors;
Copy.cs (40)
57CreatesDirectory = Log.GetResourceMessage("Copy.CreatesDirectory"); 58DidNotCopyBecauseOfFileMatch = Log.GetResourceMessage("Copy.DidNotCopyBecauseOfFileMatch"); 59FileComment = Log.GetResourceMessage("Copy.FileComment"); 60HardLinkComment = Log.GetResourceMessage("Copy.HardLinkComment"); 61RetryingAsFileCopy = Log.GetResourceMessage("Copy.RetryingAsFileCopy"); 62RetryingAsSymbolicLink = Log.GetResourceMessage("Copy.RetryingAsSymbolicLink"); 63RemovingReadOnlyAttribute = Log.GetResourceMessage("Copy.RemovingReadOnlyAttribute"); 64SymbolicLinkComment = Log.GetResourceMessage("Copy.SymbolicLinkComment"); 220Log.LogWarningWithCodeFromResources(messageResourceName, messageArgs); 235Log.LogErrorWithCodeFromResources("Copy.DestinationIsDirectory", sourceFileState.Name, destinationFileState.Name); 245Log.LogErrorWithCodeFromResources("Copy.SourceIsDirectory", sourceFileState.Name); 251Log.LogErrorWithCodeFromResources("Copy.SourceFileNotFound", sourceFileState.Name); 263Log.LogError(CreatesDirectory, destinationFolder); 268Log.LogMessage(MessageImportance.Normal, CreatesDirectory, destinationFolder); 281Log.LogError(FileComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 304TryCopyViaLink(HardLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out hardLinkCreated, ref errorMessage, (source, destination, errMessage) => NativeMethods.MakeHardLink(destination, source, ref errorMessage, Log)); 310Log.LogMessage(MessageImportance.Normal, RetryingAsSymbolicLink, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage); 314Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage); 327errorMessage = Log.FormatResourceString("Copy.NonWindowsLinkErrorMessage", "symlink()", errorMessage); 330Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage); 336Log.LogErrorWithCodeFromResources("Copy.LinkFailed", sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 345Log.LogMessage(MessageImportance.Normal, FileComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 368Log.LogMessage(MessageImportance.Normal, linkComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath); 385Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Name); 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); 848Log.LogMessage( 863Log.LogError(FileComment, sourceFileState.Name, destinationFileState.Name); 882Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 887Log.LogErrorWithCodeFromResources("Copy.Error", sourceFileState.Name, destinationFileState.Name, e.Message); 970Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name, 983Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name, 996Log.LogWarningWithCodeFromResources("Copy.Retrying", sourceFileState.Name, 1007Log.LogErrorWithCodeFromResources("Copy.ExceededRetries", sourceFileState.Name,
CreateCSharpManifestResourceName.cs (1)
64Log,
CreateItem.cs (6)
81if (!PropertyParser.GetTable(Log, "AdditionalMetadata", AdditionalMetadata, out Dictionary<string, string> metadataTable)) 94return !Log.HasLoggedErrors; 122Log.LogErrorWithCodeFromResources("CreateItem.AdditionalMetadataError", nameAndValue.Key); 162Log.LogWarningWithCodeFromResources( 172Log.LogErrorWithCodeFromResources( 206return (expanded.ToArray(), !Log.HasLoggedErrors);
CreateManifestResourceName.cs (6)
134Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.RootNamespace", RootNamespace); 138Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.NoRootNamespace"); 192Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.DependsUpon", fileName, dependentUpon); 196Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.DependsUponNothing", fileName); 241Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.AssignedName", fileName, manifestName); 245Log.LogErrorWithCodeFromResources("CreateManifestResourceName.Error", resourceFile.ItemSpec, e.Message);
CreateVisualBasicManifestResourceName.cs (1)
63Log,
Delete.cs (9)
74Log.LogErrorWithCodeFromResources("Delete.InvalidRetryCount", Retries); 80Log.LogErrorWithCodeFromResources("Delete.InvalidRetryDelay", RetryDelayMilliseconds); 126Log.LogWarningFromResources("Delete.DeletingFile", file.ItemSpec); 131Log.LogMessageFromResources(MessageImportance.Normal, "Delete.DeletingFile", file.ItemSpec); 138Log.LogMessageFromResources(MessageImportance.Low, "Delete.SkippingNonexistentFile", file.ItemSpec); 153Log.LogWarningWithCodeFromResources("Delete.Retrying", file.ToString(), retries, RetryDelayMilliseconds, e.Message, lockedFileMessage); 169return !Log.HasLoggedErrors; 182Log.LogWarningWithCodeFromResources("Delete.Error", file.ItemSpec, e.Message, lockedFileMessage); 186Log.LogErrorWithCodeFromResources("Delete.Error", file.ItemSpec, e.Message, lockedFileMessage);
DownloadFile.cs (9)
90Log.LogErrorWithCodeFromResources("DownloadFile.ErrorInvalidUrl", SourceUrl); 116Log.LogWarningWithCodeFromResources("DownloadFile.Retrying", SourceUrl, retryAttemptCount + 1, RetryDelayMilliseconds, actualException.Message); 131Log.LogErrorWithCodeFromResources("DownloadFile.ErrorDownloading", SourceUrl, flattenedMessage); 132Log.LogMessage(MessageImportance.Low, actualException.ToString()); 138return !_cancellationTokenSource.IsCancellationRequested && !Log.HasLoggedErrors; 174Log.LogErrorWithCodeFromResources("DownloadFile.ErrorUnknownFileName", SourceUrl, nameof(DestinationFileName)); 185Log.LogMessageFromResources(MessageImportance.Normal, "DownloadFile.DidNotDownloadBecauseOfFileMatch", SourceUrl, destinationFile.FullName, nameof(SkipUnchangedFiles), "true"); 193Log.LogErrorFromResources("DownloadFile.Downloading", SourceUrl, destinationFile.FullName, response.Content.Headers.ContentLength); 203Log.LogMessageFromResources(MessageImportance.High, "DownloadFile.Downloading", SourceUrl, destinationFile.FullName, response.Content.Headers.ContentLength);
Error.cs (1)
47Log.LogError(null, Code, HelpKeyword, HelpLink, File, 0, 0, 0, 0, Text ?? TaskResources.GetString("ErrorAndWarning.EmptyMessage"));
ErrorFromResources.cs (4)
53string message = ResourceUtilities.ExtractMessageCode(false /* all codes */, Log.FormatResourceString(Resource, Arguments), out string errorCode); 58Log.LogError(null, Code, HelpKeyword, File, 0, 0, 0, 0, message); 62Log.LogErrorWithCodeFromResources("ErrorFromResources.LogErrorFailure", Resource, e.Message); 66return !Log.HasLoggedErrors;
FileIO\GetFileHash.cs (5)
71Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashAlgorithm", Algorithm); 77Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashEncoding", HashEncoding); 90Log.LogErrorWithCodeFromResources("FileHash.FileNotFound", file.ItemSpec); 106if (Log.HasLoggedErrors) 118return !Log.HasLoggedErrors;
FileIO\ReadLinesFromFile.cs (1)
69Log.LogErrorWithCodeFromResources("ReadLinesFromFile.ErrorOrWarning", File.ItemSpec, e.Message);
FileIO\VerifyFileHash.cs (5)
44Log.LogErrorWithCodeFromResources("FileHash.FileNotFound", File); 50Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashAlgorithm", Algorithm); 56Log.LogErrorWithCodeFromResources("FileHash.UnrecognizedHashEncoding", HashEncoding); 67Log.LogErrorWithCodeFromResources("VerifyFileHash.HashMismatch", File, Algorithm, Hash, actualHash); 71return !Log.HasLoggedErrors;
FileIO\WriteLinesToFile.cs (6)
92Log.LogErrorWithCodeFromResources("General.InvalidValue", "Encoding", "WriteLinesToFile"); 118Log.LogMessageFromResources(MessageImportance.Low, "WriteLinesToFile.SkippingUnchangedFile", File.ItemSpec); 124Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorReadingFile", File.ItemSpec); 132Log.LogMessageFromResources(MessageImportance.Low, "WriteLinesToFile.ErrorReadingFile", File.ItemSpec); 143Log.LogMessageFromResources(MessageImportance.Normal, "WriteLinesToFile.UnusedWriteOnlyWhenDifferent", File.ItemSpec); 153Log.LogErrorWithCodeFromResources("WriteLinesToFile.ErrorOrWarning", File.ItemSpec, e.Message, lockedFileMessage);
FindAppConfigFile.cs (2)
137Log.LogMessageFromResources(MessageImportance.Low, "FindInList.Found", AppConfigFile.ItemSpec); 145Log.LogMessageFromResources(MessageImportance.Low, "FindInList.InvalidPath", item.ItemSpec, ex.Message);
FindInList.cs (2)
113Log.LogMessageFromResources(MessageImportance.Low, "FindInList.Found", path); 121Log.LogMessageFromResources(MessageImportance.Low, "FindInList.InvalidPath", item.ItemSpec, ex.Message);
FindInvalidProjectReferences.cs (1)
97Log.LogWarningWithCodeFromResources("FindInvalidProjectReferences.WarnWhenVersionIsIncompatible", TargetPlatformIdentifier, TargetPlatformVersion, referenceIdentity, referencePlatformMoniker);
FormatVersion.cs (1)
76Log.LogErrorWithCodeFromResources("General.InvalidValue", "FormatType", "FormatVersion");
GenerateLauncher.cs (6)
46Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateLauncher)); 62Log.LogErrorWithCodeFromResources("GenerateLauncher.InvalidInput"); 89Log.LogError(null, message.HelpCode, message.HelpKeyword, null, 0, 0, 0, 0, message.Message); 92Log.LogWarning(null, message.HelpCode, message.HelpKeyword, null, 0, 0, 0, 0, message.Message); 95Log.LogMessage(null, message.HelpCode, message.HelpKeyword, null, 0, 0, 0, 0, message.Message); 104return !Log.HasLoggedErrors;
GetAssemblyIdentity.cs (3)
68Log.LogErrorWithCodeFromResources("GetAssemblyIdentity.CouldNotGetAssemblyName", item.ItemSpec, e.Message); 73Log.LogErrorWithCodeFromResources("GetAssemblyIdentity.CouldNotGetAssemblyName", item.ItemSpec, e.Message); 97return !Log.HasLoggedErrors;
GetCompatiblePlatform.cs (3)
64string? buildProjectReferenceAs = PlatformNegotiation.GetNearestPlatform(projectReferenceOverridePlatformNegotiationMetadata, referencedProjectPlatform, projectReferencePlatformsMetadata, projectReferenceLookupTableMetadata, PlatformLookupTable, AssignedProjectsWithPlatform[i].ItemSpec, CurrentProjectPlatform, Log); 67Log.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.DisplayChosenPlatform", AssignedProjectsWithPlatform[i].ItemSpec, buildProjectReferenceAs); 70return !Log.HasLoggedErrors;
GetInstalledSDKLocations.cs (9)
129Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GetInstalledSDKLocations)); 136Log.LogErrorWithCodeFromResources("GetInstalledSDKs.TargetPlatformInformationMissing"); 145Log.LogMessageFromResources("GetInstalledSDKs.SearchingForSDKs", _targetPlatformIdentifier, _targetPlatformVersion); 152Log.LogErrorWithCodeFromResources("GetInstalledSDKs.CouldNotGetSDKList", e.Message); 159Log.LogMessageFromResources(MessageImportance.Low, "GetInstalledSDKs.FoundSDKs", installedSDKs.Count); 160Log.LogMessageFromResources(MessageImportance.Low, "GetInstalledSDKs.ListInstalledSDKs"); 165Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", sdkInfo); 183Log.LogWarningWithCodeFromResources("GetInstalledSDKs.NoSDksFound", TargetPlatformIdentifier, TargetPlatformVersion); 204return !Log.HasLoggedErrors;
GetReferenceAssemblyPaths.cs (5)
191Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.InvalidTargetFrameworkMoniker", TargetFrameworkMoniker, e.Message); 221Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.ProblemGeneratingReferencePaths", TargetFrameworkMoniker, e.Message); 232return !Log.HasLoggedErrors; 257Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.OutOfDateSDK", frameworkmoniker.ToString()); 261Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.NoReferenceAssemblyDirectoryFound", frameworkmoniker.ToString());
GetSDKReferenceFiles.cs (20)
232Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GetSDKReferenceFiles)); 266Log.LogErrorWithCodeFromResources("GetSDKReferenceFiles.CannotHaveEmptyTargetConfiguration", resolvedSDKReference.ItemSpec); 272Log.LogErrorWithCodeFromResources("GetSDKReferenceFiles.CannotHaveEmptyTargetArchitecture", resolvedSDKReference.ItemSpec); 286Log.LogMessageFromText(exceptionMessage, MessageImportance.High); 292Log.LogErrorWithCodeFromResources("GetSDKReferenceFiles.CouldNotGetSDKReferenceFiles", e.Message); 295return !Log.HasLoggedErrors; 316Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandRedistFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty)); 337Log.LogMessageFromResources("GetSDKReferenceFiles.AddingRedistFile", redist.RedistFile.Replace(redist.SDKReferenceItem.ItemSpec, String.Empty), redist.TargetPath); 346Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistDifferentSDK", winner.TargetPath, winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), redist.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile, redist.RedistFile); 351Log.LogWarningWithCodeFromResources("GetSDKReferenceFiles.ConflictBetweenFiles", message); 364Log.LogMessageFromResources("GetSDKReferenceFiles.GetSDKReferences", sdkName, rootDirectory); 390Log.LogMessageFromResources(MessageImportance.Low, "GetSDKReferenceFiles.ExpandReferencesFrom", path.Replace(resolvedSDKReference.ItemSpec, String.Empty)); 411Log.LogMessageFromResources("GetSDKReferenceFiles.AddingReference", reference.AssemblyLocation.Replace(reference.SDKReferenceItem.ItemSpec, String.Empty)); 427Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceDifferentSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), reference.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation, reference.AssemblyLocation); 432Log.LogWarningWithCodeFromResources("GetSDKReferenceFiles.ConflictBetweenFiles", message); 440Log.LogMessageFromResources("GetSDKReferenceFiles.NotExpanding", sdkName); 599Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictReferenceSameSDK", winner.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.AssemblyLocation.Replace(winner.SDKReferenceItem.ItemSpec, String.Empty), resolvedReference.AssemblyLocation.Replace(resolvedReference.SDKReferenceItem.ItemSpec, String.Empty)); 604Log.LogWarningWithCodeFromResources("GetSDKReferenceFiles.ConflictBetweenFiles", message); 639Log.LogMessageFromResources("GetSDKReferenceFiles.ConflictRedistSameSDK", redistFile.TargetPath, redistFile.SDKReferenceItem.GetMetadata("OriginalItemSpec"), winner.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty), redistFile.RedistFile.Replace(redistFile.SDKReferenceItem.ItemSpec, String.Empty)); 644Log.LogWarningWithCodeFromResources("GetSDKReferenceFiles.ConflictBetweenFiles", message);
ListOperators\FindUnderPath.cs (3)
67Log.LogErrorWithCodeFromResources(null, "", 0, 0, 0, 0, 74Log.LogMessageFromResources(MessageImportance.Low, "FindUnderPath.ComparisonPath", Path.ItemSpec); 87Log.LogErrorWithCodeFromResources(null, "", 0, 0, 0, 0,
MakeDir.cs (4)
66Log.LogErrorFromResources("MakeDir.Comment", directory.ItemSpec); 71Log.LogMessageFromResources(MessageImportance.Normal, "MakeDir.Comment", directory.ItemSpec); 82Log.LogErrorWithCodeFromResources("MakeDir.Error", directory.ItemSpec, e.Message); 92return !Log.HasLoggedErrors;
Message.cs (4)
65Log.LogErrorWithCodeFromResources("Message.InvalidImportance", Importance); 74Log.LogCriticalMessage(null, Code, HelpKeyword, File, 0, 0, 0, 0, "{0}", Text); 80Log.LogMessage(null, Code, HelpKeyword, File, 0, 0, 0, 0, messageImportance, "{0}", Text); 84Log.LogMessage(messageImportance, "{0}", Text);
Move.cs (10)
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); 238Log.LogMessageFromResources(MessageImportance.Normal, "Move.CreatesDirectory", destinationFolder); 243Log.LogMessageFromResources(MessageImportance.Normal, "Move.FileComment", sourceFile, destinationFile);
MSBuild.cs (11)
214if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable)) 223Log.LogMessageFromResources(MessageImportance.Low, "General.UndefineProperties"); 227Log.LogMessageFromText($" {property}", MessageImportance.Low); 238Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NotBuildingInParallel"); 248Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NoStopOnFirstFailure"); 287Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingProjects"); 312Log.LogErrorWithCodeFromResources("MSBuild.ProjectUpgradeNeededToVcxProj", project.ItemSpec); 331Log, 348Log.LogMessageFromResources(MessageImportance.High, "MSBuild.ProjectFileNotFoundMessage", project.ItemSpec); 353Log.LogErrorWithCodeFromResources("MSBuild.ProjectFileNotFound", project.ItemSpec); 395Log,
MSBuildInternalMessage.cs (9)
62Log.LogErrorWithCodeFromResources(ResourceName, FormatArguments); 63return !Log.HasLoggedErrors; 66Log.LogWarningWithCodeFromResources(ResourceName, FormatArguments); 67return !Log.HasLoggedErrors; 71Log.LogMessageFromResources(importance, ResourceName, FormatArguments); 72return !Log.HasLoggedErrors; 75return !Log.HasLoggedErrors; 79Log.LogErrorFromResources("CommonTarget.SpecifiedSeverityDoesNotExist", Severity); 81return !Log.HasLoggedErrors;
RemoveDir.cs (8)
60Log.LogWarningWithCodeFromResources("RemoveDir.EmptyPath"); 68Log.LogErrorFromResources("RemoveDir.Removing", directory.ItemSpec); 73Log.LogMessageFromResources(MessageImportance.Normal, "RemoveDir.Removing", directory.ItemSpec); 102Log.LogMessageFromResources(MessageImportance.Normal, "RemoveDir.SkippingNonexistentDirectory", directory.ItemSpec); 110return !Log.HasLoggedErrors; 131Log.LogErrorWithCodeFromResources("RemoveDir.Error", directory, e.Message); 137Log.LogErrorWithCodeFromResources("RemoveDir.Error", directory.ItemSpec, e.Message); 175Log.LogErrorWithCodeFromResources("RemoveDir.Error", directory, e.Message);
ResolveCodeAnalysisRuleSet.cs (2)
51return !Log.HasLoggedErrors; 125Log.LogWarningWithCodeFromResources("Compiler.UnableToFindRuleSet", CodeAnalysisRuleSet);
ResolveKeySource.cs (5)
103Log.LogErrorWithCodeFromResources("ResolveKeySource.InvalidKeyName", KeyFile, ex.Message); 161Log.LogErrorWithCodeFromResources("ResolveKeySource.PfxUnsupported"); 200Log.LogWarningWithCodeFromResources("ResolveKeySource.ResolvedThumbprintEmpty"); 269Log.LogErrorWithCodeFromResources("ResolveKeySource.PfxUnsupported"); 275Log.LogErrorWithCodeFromResources("ResolveKeySource.CertificateNotInStore");
ResolveManifestFiles.cs (9)
183Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 191Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 199Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 207Log.LogErrorWithCodeFromResources("GenerateManifest.ManifestsSignedHashExcluded"); 246Log.LogErrorWithCodeFromResources("General.InvalidValue", "TargetCulture", "ResolveManifestFiles"); 441Log.LogWarningWithCodeFromResources("ResolveManifestFiles.PublishFileNotFound", publishInfo.key); 565Log.LogWarningWithCodeFromResources("ResolveManifestFiles.PublishFileNotFound", publishInfo.key); 626Log.LogWarningWithCodeFromResources("ResolveManifestFiles.PublishFileNotFound", publishInfo.key); 730Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "FileType", item.ItemSpec);
ResolveNonMSBuildProjectOutput.cs (5)
100Log.LogMessageFromResources(MessageImportance.Low, "ResolveNonMSBuildProjectOutput.ProjectReferenceResolutionStarting", projectRef.ItemSpec); 124Log.LogMessageFromResources(MessageImportance.Low, "ResolveNonMSBuildProjectOutput.ProjectReferenceResolutionSuccess", projectRef.ItemSpec, resolvedPath.ItemSpec); 130Log.LogWarningWithCodeFromResources("ResolveNonMSBuildProjectOutput.ProjectReferenceResolutionFailure", projectRef.ItemSpec); 139Log.LogMessageFromResources(MessageImportance.Low, "ResolveNonMSBuildProjectOutput.ProjectReferenceUnresolved", projectRef.ItemSpec); 148Log.LogErrorWithCodeFromResources("General.ErrorExecutingTask", this.GetType().Name, e.Message);
ResolveProjectBase.cs (2)
92Log.LogErrorWithCodeFromResources("General.MissingOrUnknownProjectReferenceAttribute", reference.ItemSpec, missingAttribute); 97Log.LogWarningWithCodeFromResources("General.MissingOrUnknownProjectReferenceAttribute", reference.ItemSpec, missingAttribute);
ResolveSDKReference.cs (15)
270Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(ResolveSDKReference)); 278Log.LogMessageFromResources("ResolveSDKReference.NoSDKLocationsSpecified"); 423Log.LogErrorWithCodeFromResources("ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", notCompatibleReference.SDKName, incompatibleReferencesDelimited, notCompatibleReference.ProductFamilyName); 427Log.LogWarningWithCodeFromResources("ResolveSDKReference.CannotReferenceTwoSDKsSameFamily", notCompatibleReference.SDKName, incompatibleReferencesDelimited, notCompatibleReference.ProductFamilyName); 452Log.LogErrorWithCodeFromResources("ResolveSDKReference.CannotReferenceTwoSDKsSameName", notCompatibleReference.SDKName, incompatibleReferencesDelimited); 456Log.LogWarningWithCodeFromResources("ResolveSDKReference.CannotReferenceTwoSDKsSameName", notCompatibleReference.SDKName, incompatibleReferencesDelimited); 462AddMetadataToReferences(Log, sdkReferenceItems, _runtimeReferenceOnlyDependenciesByName, "RuntimeReferenceOnly", "true"); 467VerifySDKDependsOn(Log, sdkReferenceItems); 469return !Log.HasLoggedErrors; 599Log.LogMessageFromResources(MessageImportance.Low, "ResolveSDKReference.SearchingForSDK", reference.ReferenceItem.ItemSpec); 603Log.LogMessageFromResources(MessageImportance.Low, "ResolveSDKReference.FoundSDK", reference.ResolvedPath); 609Log.LogMessage(" " + formattedMessage); 624Log.LogWarningWithCodeFromResources(warning.Item1, warning.Item2); 645Log.LogWarningWithCodeFromResources(errorOrWarning.Item1, errorOrWarning.Item2); 649Log.LogErrorWithCodeFromResources(errorOrWarning.Item1, errorOrWarning.Item2);
TaskRequiresFramework.cs (1)
25Log.LogErrorWithCodeFromResources("TaskRequiresFrameworkFailure", TaskName);
Telemetry.cs (3)
44Log.LogMessageFromResources(MessageImportance.Low, "Telemetry.IllegalEventDataString", pair, EventData); 54Log.LogTelemetry(EventName, properties); 56return !Log.HasLoggedErrors;
Touch.cs (11)
83Log.LogErrorWithCodeFromResources("Touch.TimeSyntaxIncorrect", e.Message); 146Log.LogErrorWithCodeFromResources("Message.InvalidImportance", Importance); 178Log.LogErrorWithCodeFromResources("Touch.CannotCreateFile", file, e.Message); 206Log.LogWarningFromResources("Touch.CreatingFile", file, "AlwaysCreate"); 210Log.LogMessageFromResources(messageImportance, "Touch.CreatingFile", file, "AlwaysCreate"); 220Log.LogErrorWithCodeFromResources("Touch.FileDoesNotExist", file); 227Log.LogWarningFromResources("Touch.Touching", file); 231Log.LogMessageFromResources(messageImportance, "Touch.Touching", file); 251Log.LogErrorWithCodeFromResources("Touch.CannotMakeFileWritable", file, e.Message, lockedFileMessage); 267Log.LogErrorWithCodeFromResources("Touch.CannotTouch", file, e.Message, lockedFileMessage); 282Log.LogErrorWithCodeFromResources("Touch.CannotRestoreAttributes", file, e.Message);
Unzip.cs (16)
94Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", DestinationFolder.ItemSpec, e.Message); 105if (!Log.HasLoggedErrors) 111Log.LogErrorWithCodeFromResources("Unzip.ErrorFileDoesNotExist", sourceFile.ItemSpec); 129Log.LogErrorFromException(e, showStackTrace: true); 143Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotOpenFile", sourceFile.ItemSpec, e.Message); 153return !_cancellationToken.IsCancellationRequested && !Log.HasLoggedErrors; 169Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFilter", zipArchiveEntry.FullName); 191Log.LogErrorFromResources("Unzip.ErrorExtractingResultsInFilesOutsideDestination", destinationPath.FullName, destinationDirectory.FullName); 197Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFileMatch", zipArchiveEntry.FullName, destinationPath.FullName, nameof(SkipUnchangedFiles), "true"); 202Log.LogErrorFromResources("Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName); 212Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotCreateDestinationDirectory", destinationPath.DirectoryName, e.Message); 225Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotMakeFileWriteable", zipArchiveEntry.FullName, destinationPath.FullName, e.Message, lockedFileMessage); 232Log.LogMessageFromResources(MessageImportance.Normal, "Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName); 273Log.LogErrorWithCodeFromResources("Unzip.ErrorCouldNotExtractFile", zipArchiveEntry.FullName, destinationPath.FullName, e.Message); 328Log.LogErrorWithCodeFromResources("Unzip.ErrorParsingPatternPropertyReferences", pattern); 332Log.LogErrorWithCodeFromResources("Unzip.ErrorParsingPatternInvalidPath", pattern);
Warning.cs (1)
47Log.LogWarning(null, Code, HelpKeyword, HelpLink, File, 0, 0, 0, 0, Text ?? TaskResources.GetString("ErrorAndWarning.EmptyMessage"));
WriteCodeFragment.cs (16)
83Log.LogErrorWithCodeFromResources("General.InvalidValue", nameof(Language), "WriteCodeFragment"); 89Log.LogErrorWithCodeFromResources("WriteCodeFragment.MustSpecifyLocation"); 95if (Log.HasLoggedErrors) 102Log.LogMessageFromResources(MessageImportance.Low, "WriteCodeFragment.NoWorkToDo"); 124Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotWriteOutput", itemSpec, ex.Message, lockedFileMessage); 128Log.LogMessageFromResources(MessageImportance.Low, "WriteCodeFragment.GeneratedFile", OutputFile.ItemSpec); 130return !Log.HasLoggedErrors; 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 */); 491Log.LogMessageFromResources("WriteCodeFragment.MultipleConstructorsFound"); 538Log.LogErrorWithCodeFromResources("WriteCodeFragment.ParameterTypeNotFound", typeName); 550Log.LogErrorWithCodeFromResources("WriteCodeFragment.CouldNotConvertValue", rawValue, typeName, ex.Message); 568Log.LogMessageFromResources("WriteCodeFragment.CouldNotInferParameterType", parameterName); 580Log.LogMessageFromResources("WriteCodeFragment.CouldNotConvertToInferredType", parameterName, inferredType.Name, ex.Message);
XmlPeek.cs (7)
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); 156Log.LogMessageFromResources(MessageImportance.Low, "XmlPeek.Found", item); 162Log.LogMessageFromResources("XmlPeek.NotFound");
XmlPoke.cs (7)
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); 128Log.LogMessageFromResources(MessageImportance.Low, "XmlPoke.Replaced", iter.Current.Name, Value.ItemSpec); 132Log.LogErrorWithCodeFromResources("XmlPoke.PokeError", Value.ItemSpec, e.Message); 137Log.LogMessageFromResources(MessageImportance.Normal, "XmlPoke.Count", count);
XslTransformation.cs (10)
106xsltinput = new XsltInput(XslInputPath, XslContent, XslCompiledDllPath, Log, PreserveWhitespace); 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); 164Log.LogMessageFromResources(MessageImportance.High, "XslTransform.SecuritySettingsViaUseTrustedSettings"); 183Log.LogErrorWithCodeFromResources("XslTransform.TransformError", flattenedMessage); 184Log.LogMessage(MessageImportance.Low, e.ToString());
ZipDirectory.cs (7)
45Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorDirectoryDoesNotExist", sourceDirectory.FullName); 59Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFileExists", destinationFile.FullName); 71Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, lockedFileMessage); 81Log.LogErrorFromResources("ZipDirectory.Comment", sourceDirectory.FullName, destinationFile.FullName); 85Log.LogMessageFromResources(MessageImportance.High, "ZipDirectory.Comment", sourceDirectory.FullName, destinationFile.FullName); 91Log.LogErrorWithCodeFromResources("ZipDirectory.ErrorFailed", sourceDirectory.FullName, destinationFile.FullName, e.Message, string.Empty); 99return !Log.HasLoggedErrors;
Microsoft.Build.Tasks.UnitTests (7)
Copy_Tests.cs (1)
2758Tasks.NativeMethods.MakeHardLink(destLink, sourceFile, ref linkError, t.Log);
CreateCSharpManifestResourceName_Tests.cs (1)
763log: c.Log);
GetCompatiblePlatform_Tests.cs (2)
272task.Log.HasLoggedErrors.ShouldBeFalse(); 295task.Log.HasLoggedErrors.ShouldBeFalse();
ResolveSDKReference_Tests.cs (3)
567string errorMessage = t.Log.FormatResourceString("ResolveSDKReference.SDKReferenceIncorrectFormat", referenceInclude.ItemSpec); 672string errorMessage = t.Log.FormatResourceString("ResolveSDKReference.Prefer32BitNotSupportedWithNeutralProject", item.ItemSpec); 895string errorMessage = t.Log.FormatResourceString("ResolveSDKReference.Prefer32BitNotSupportedWithNeutralProject", item.ItemSpec);