107 references to Log
Microsoft.NET.Build.Tasks (102)
CheckForDuplicateFrameworkReferences.cs (2)
48
Log
.LogWarning(Strings.FrameworkReferenceOverrideWarning, item.ItemSpec, MoreInformationLink);
58
Log
.LogError(Strings.FrameworkReferenceDuplicateError, duplicateItemGroup.Key);
CheckForDuplicateItems.cs (1)
54
Log
.LogError(message);
CheckForImplicitPackageReferenceOverrides.cs (1)
40
Log
.LogWarning(Strings.PackageReferenceOverrideWarning, item.ItemSpec, MoreInformationLink);
CheckForUnsupportedWinMDReferences.cs (2)
63
Log
.LogError(Strings.WinMDTransitiveReferenceNotSupported, Path.GetFileName(referencePath.ItemSpec));
73
Log
.LogError(Strings.WinMDReferenceNotSupportedOnTargetFramework, TargetFrameworkMoniker, Path.GetFileName(winMDReference.ItemSpec));
CreateAppHost.cs (1)
121
Log
.LogWarning(
CreateComHost.cs (4)
35
Log
.LogError(error);
48
Log
.LogError(Strings.TypeLibraryDoesNotExist, ex.Path);
52
Log
.LogError(Strings.InvalidTypeLibraryId, ex.Id.ToString(), ex.Path);
56
Log
.LogError(Strings.InvalidTypeLibrary, ex.Path);
CreateWindowsSdkKnownFrameworkReferences.cs (2)
45
Log
.LogError(Strings.CantSpecifyBothProperties, nameof(WindowsSdkPackageVersion), nameof(WindowsSdkPackageMinimumRevision));
50
Log
.LogError(Strings.CantSpecifyBothProperties, nameof(UseWindowsSDKPreview), nameof(WindowsSdkPackageMinimumRevision));
GenerateBundle.cs (1)
125
Log
.LogMessage(MessageImportance.High, $"Unable to access file during bundling. Retrying {RetryCount} more times...");
GenerateClsidMap.cs (4)
34
Log
.LogError(Strings.ClsidMapInvalidAssembly, IntermediateAssembly);
43
Log
.LogError(Strings.ClsidMapExportedTypesRequireExplicitGuid, missingGuid.TypeName);
47
Log
.LogError(Strings.ClsidMapConflictingGuids, conflictingGuid.TypeName1, conflictingGuid.TypeName2, conflictingGuid.Guid.ToString());
51
Log
.LogError(Strings.ClsidMapInvalidAssembly, IntermediateAssembly);
GenerateDepsFile.cs (1)
287
Log
.LogWarning(Strings.NonPortableRuntimeIdentifierDetected, string.Join(", ", affectedRids.Distinct()), string.Join(", ", affectedLibs.Distinct()));
GenerateRegFreeComManifest.cs (3)
38
Log
.LogError(error);
52
Log
.LogError(Strings.TypeLibraryDoesNotExist, ex.Path);
56
Log
.LogError(Strings.InvalidTypeLibrary, ex.Path);
GenerateRuntimeConfigurationFiles.cs (2)
86
Log
.LogWarning(Strings.SkippingAdditionalProbingPaths);
94
Log
.LogError(Strings.InvalidRollForwardValue, RollForward, string.Join(", ", RollForwardValues));
GenerateShims.cs (1)
126
Log
.LogWarning(Strings.AppHostCustomizationRequiresWindowsHostWarning);
GetAssemblyVersion.cs (1)
34
Log
.LogError(Strings.InvalidNuGetVersionString, NuGetVersion);
GetPackagesToPrune.cs (1)
116
PackagesToPrune = LoadPackagesToPrune(key, TargetingPackRoots, PrunePackageDataRoot,
Log
, AllowMissingPrunePackageData);
LockFileCache.cs (1)
20
_log = task.
Log
;
NETSdkError.cs (1)
22
Log
.LogError(message);
NETSdkInformation.cs (1)
24
Log
.LogMessage(MessageImportance.High, message);
NETSdkWarning.cs (1)
22
Log
.LogWarning(message);
PickBestRid.cs (2)
42
Log
.LogError(Strings.RuntimeGraphFileDoesNotExist, RuntimeGraphPath);
51
Log
.LogError(Strings.UnableToFindMatchingRid, TargetRid, string.Join(",", SupportedRids), RuntimeGraphPath);
PrepareForReadyToRunCompilation.cs (1)
110
Log
.LogError(Strings.Crossgen5CannotEmitSymbolsInCompositeMode);
ProcessFrameworkReferences.cs (33)
195
Log
.LogMessage(MessageImportance.Low, $"Found {frameworkReferenceMap.Count} known framework references for target framework {TargetFrameworkIdentifier}");
196
Log
.LogMessage(MessageImportance.Low, $"Found {knownRuntimePacksForTargetFramework.Count} known runtime packs for target framework {TargetFrameworkIdentifier}");
213
Log
.LogError(Strings.WindowsDesktopFrameworkRequiresWindows);
216
Log
.LogMessage(MessageImportance.Low, $"Ignoring framework reference to {knownFrameworkReference.Name} as it is Windows-only and the current platform is not Windows.");
241
Log
.LogMessage(MessageImportance.Low, $"Selected {selectedPack.Name} with RIDs '{selectedPack.RuntimePackRuntimeIdentifiers}'");
245
Log
.LogMessage(MessageImportance.Low, $"No runtime pack found for {knownFrameworkReference.Name}.");
305
Log
.LogMessage(MessageImportance.Low, $"Selected targeting pack '{targetingPack.ItemSpec}@{targetingPackVersion}'");
411
Log
.LogMessage(MessageImportance.Low, $"Added runtime framework '{runtimeFramework.ItemSpec}@{runtimeFrameworkVersion}'");
454
Log
.LogError(Strings.ReadyToRunNoValidRuntimePackageError);
464
Log
.LogError(Strings.AotUnsupportedTargetFramework);
467
Log
.LogError(Strings.AotUnsupportedHostRuntimeIdentifier, NETCoreSdkRuntimeIdentifier);
470
Log
.LogError(Strings.AotUnsupportedTargetRuntimeIdentifier, EffectiveRuntimeIdentifier!);
487
Log
.LogError(Strings.AotUnsupportedTargetFramework);
492
Log
.LogWarning(Strings.IsAotCompatibleUnsupported, MinNonEolTargetFrameworkForAot!);
496
Log
.LogError(Strings.PublishTrimmedRequiresVersion30);
501
Log
.LogWarning(Strings.IsTrimmableUnsupported, MinNonEolTargetFrameworkForTrimming!);
508
Log
.LogWarning(Strings.EnableSingleFileAnalyzerUnsupported, MinNonEolTargetFrameworkForSingleFile!);
515
Log
.LogError(Strings.ILLinkNoValidRuntimePackageError);
530
Log
.LogWarning(Strings.AspNetCorePackUnsupportedTargetFramework);
655
Log
.LogError(Strings.ConflictingRuntimePackInformation, runtimePackDescriptionForErrorMessage,
678
Log
.LogMessage(MessageImportance.Low, $"Finding best RID match for pack {selectedRuntimePack.Name}@{runtimePackVersion} for target RID '{runtimeIdentifier}' from '{selectedRuntimePack.RuntimePackRuntimeIdentifiers}' excluding '{selectedRuntimePack.RuntimePackExcludedRuntimeIdentifiers}'");
702
Log
.LogError(Strings.RuntimeIdentifierNotRecognized, runtimeIdentifier);
790
Log
.LogMessage(MessageImportance.Low, $"Adding tool pack {toolPackType} for runtime {normalizedTargetFrameworkVersion}");
811
Log
.LogMessage(MessageImportance.Low, $"Found {toolPackType} pack '{knownPack.ItemSpec}@{packVersion}'");
828
Log
.LogMessage(MessageImportance.Low, $"Determining best RID for '{knownPack.ItemSpec}@{packVersion}' for '{hostRuntimeIdentifier}' from among '{knownPack.GetMetadata(packName + "RuntimeIdentifiers")}'");
836
Log
.LogMessage(MessageImportance.Low, $"Best RID for '{knownPack.ItemSpec}@{packVersion}' is '{hostRuntimeIdentifier}'");
856
Log
.LogMessage(MessageImportance.Low, $"Added {toolPackType} runtime pack '{runtimePackName}@{packVersion}'");
869
Log
.LogMessage(MessageImportance.Low, $"Checking for cross-targeting compilation packs");
892
Log
.LogMessage(MessageImportance.Low, $"Added {targetIlcPackName}@{packVersion} for cross-targeting compilation");
909
Log
.LogMessage(MessageImportance.Low, $"No cross-targeting compilation packs required.");
957
Log
.LogMessage(MessageImportance.Low, $"Added {knownPack.ItemSpec}@{packVersion} for build-time targets");
975
Log
.LogMessage(MessageImportance.Low, $"Added {analyzerPackage.ItemSpec}@{packVersion} for linker analyzers");
1096
Log
.LogError(Strings.CouldNotGetPackVersionFromWorkloadManifests, packID);
ProduceContentAssets.cs (2)
141
Log
.LogWarning(Strings.DuplicatePreprocessorToken, duplicatedPreprocessorKey, preprocessorValues[duplicatedPreprocessorKey]);
233
Log
.LogWarning(Strings.ContentItemDoesNotProvideOutputPath, pathToFinalAsset, MetadataKeys.CopyToOutput, MetadataKeys.OutputPath, MetadataKeys.PPOutputPath);
ResolveAppHosts.cs (5)
261
Log
.LogError(Strings.NoAppHostAvailable, runtimeIdentifier);
265
Log
.LogMessage(Strings.NoAppHostAvailable, runtimeIdentifier);
273
Log
.LogError(Strings.RuntimeIdentifierNotRecognized, runtimeIdentifier);
277
Log
.LogMessage(Strings.RuntimeIdentifierNotRecognized, runtimeIdentifier);
306
Log
.LogError(
ResolvePackageAssets.cs (6)
413
Log
.Log(
549
task.
Log
.LogMessage(MessageImportance.High, Strings.UnableToUsePackageAssetsCache_Info);
1651
_task.
Log
.LogWarning(Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1658
_task.
Log
.LogMessage(MessageImportance.Low, Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale);
1668
_task.
Log
.LogWarning(Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
1675
_task.
Log
.LogMessage(MessageImportance.Low, Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName);
ResolvePackageFileConflicts.cs (1)
60
var log =
Log
;
ResolvePublishOutputConflicts.cs (1)
35
using (var conflictResolver = new ConflictResolver<ConflictItem>(packageRanks, packageOverrides,
Log
))
ResolveReadyToRunCompilers.cs (7)
59
Log
.LogError(Strings.ReadyToRunNoValidRuntimePackageError);
90
Log
.LogError(Strings.ReadyToRunNoValidRuntimePackageError);
97
Log
.LogError(Strings.ReadyToRunNoValidRuntimePackageError);
106
Log
.LogError(Strings.ReadyToRunTargetNotSupportedError);
147
Log
.LogError(Strings.ReadyToRunNoValidRuntimePackageError);
156
Log
.LogError(Strings.ReadyToRunNoValidRuntimePackageError);
175
Log
.LogError(Strings.ReadyToRunTargetNotSupportedError);
ResolveRuntimePackAssets.cs (4)
53
Log
.LogError(Strings.NoRuntimePackAvailable, unavailableRuntimePack.ItemSpec,
126
Log
.LogError(Strings.RuntimePackNotRestored_TransitiveDisabled, runtimePack.ItemSpec);
130
Log
.LogError(Strings.RuntimePackNotDownloaded, runtimePack.ItemSpec,
241
Log
.LogError(Strings.DuplicateRuntimePackAsset, assetSubPath);
ResolveTargetingPackAssets.cs (1)
89
Log
.LogError(error);
RuntimeGraphCache.cs (1)
19
_log = task.
Log
;
ShowMissingWorkloads.cs (2)
61
Log
.LogError(errorMessage);
65
Log
.LogError(Strings.WorkloadNotAvailable, string.Join(" ", unsatisfiablePacks));
ShowPreviewMessage.cs (1)
23
Log
.LogMessage(MessageImportance.High, Strings.UsingPreviewSdk);
TaskBase.cs (2)
40
Log
.LogError(e.Message);
48
return !
Log
.HasLoggedErrors;
ValidateExecutableReferences.cs (2)
108
Log
.LogError(Strings.SelfContainedExeCannotReferenceNonSelfContained, project.ItemSpec);
112
Log
.LogError(Strings.NonSelfContainedExeCannotReferenceSelfContained, project.ItemSpec);
Microsoft.NET.Build.Tasks.UnitTests (5)
GivenATaskBase.cs (5)
24
task.
Log
.Log(new Message(MessageLevel.HighImportance, "high", code: "code1", file: "file1"));
25
task.
Log
.Log(new Message(MessageLevel.LowImportance, "low", code: "code2", file: "file2"));
26
task.
Log
.Log(new Message(MessageLevel.NormalImportance, "normal", code: "code3", file: "file3"));
27
task.
Log
.Log(new Message(MessageLevel.Warning, "warning", code: "code4", file: "file4"));
28
task.
Log
.Log(new Message(MessageLevel.Error, "error", code: "code5", file: "file5"));