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