1 write to Log
Microsoft.Build.Utilities.Core (1)
1589 references to Log
Aspire.Hosting.Tasks (11)
ResolveAspireCliInvocation.cs (4)
95Log.LogMessage(MessageImportance.Low, "DNX command '{0}' could not be mapped to an executable host.", dnxPath);
182Log.LogMessage(MessageImportance.Low, "'{0} --list-sdks' timed out after 5 seconds.", dotnetPath);
191Log.LogMessage(MessageImportance.Low, "'{0} --list-sdks' failed with exit code {1}: {2}", dotnetPath, process.ExitCode, error);
207Log.LogMessage(MessageImportance.Low, "Failed to inspect SDKs through '{0}': {1}", dotnetPath, ex.Message);
Crossgen2Tasks (19)
RunReadyToRunCompiler.cs (18)
93Log.LogError(Strings.CrossgenToolMissingInPDBCompilationMode);
101Log.LogError(Strings.Crossgen2ToolMissingWhenUseCrossgen2IsSet);
106Log.LogError(Strings.Crossgen2ToolExecutableNotFound, Crossgen2Tool.ItemSpec);
112Log.LogError(Strings.DotNetHostExecutableNotFound, hostPath);
120Log.LogError(Strings.JitLibraryNotFound, jitPath);
127Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.JitPath);
135Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetOS);
140Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetArch);
149Log.LogError(Strings.CrossgenToolMissingWhenUseCrossgen2IsNotSet);
154Log.LogError(Strings.CrossgenToolExecutableNotFound, CrossgenTool.ItemSpec);
159Log.LogError(Strings.JitLibraryNotFound, MetadataKeys.JitPath);
172Log.LogError(Strings.DiaSymReaderLibraryNotFound, DiaSymReader);
179Log.LogError(Strings.MissingOutputPDBImagePath);
184Log.LogError(Strings.PDBGeneratorInputExecutableNotFound, _outputR2RImage);
197Log.LogError(Strings.InputAssemblyNotFound, _inputAssembly);
208Log.LogError(Strings.MissingOutputR2RImageFileName);
214Log.LogError(Strings.MissingOutputPDBImagePath);
423Log.LogMessage(MessageImportance.Normal, singleLine);
DotNetWatchTasks (1)
HelixTestTasks (6)
ComputeBatchTimeout.cs (5)
57Log.LogWarning("{0} must be positive but was {1}; falling back to default 20.", nameof(MinutesPerSuite), MinutesPerSuite);
62Log.LogWarning("{0} must be positive but was {1}; falling back to default 30.", nameof(MinimumMinutes), MinimumMinutes);
67Log.LogWarning("{0} must be in the range [1, 1439] but was {1}; falling back to default 1439.", nameof(MaximumMinutes), MaximumMinutes);
72Log.LogWarning("{0} ({1}) exceeds {2} ({3}); clamping {0} to {3}.", nameof(MinimumMinutes), MinimumMinutes, nameof(MaximumMinutes), MaximumMinutes);
106return !Log.HasLoggedErrors;
ILCompiler.Build.Tasks (1)
ILLink.Tasks (13)
installer.tasks (5)
Microsoft.AspNetCore.Components.Testing.Tasks (5)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
Microsoft.Build.Tasks.CodeAnalysis (45)
src\roslyn\src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (9)
44Log.LogErrorWithCodeFromResources("General_ExpectedFileMissing", SourcePath);
57Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadSource3", SourcePath, e.Message, e.StackTrace);
62Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_SourceNotRef1", SourcePath);
72Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_SkippingCopy1", DestinationPath);
76Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_Changed", SourcePath, TaskEnvironment.GetLastWriteTimeUtc(fullSourcePath).ToString("O"), source, DestinationPath, TaskEnvironment.GetLastWriteTimeUtc(fullDestinationPath).ToString("O"), destination);
80Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadDestination1", DestinationPath);
92Log.LogMessageFromResources(MessageImportance.Normal, "CopyRefAssembly_Copying", SourcePath, DestinationPath);
100Log.LogErrorWithCodeFromResources("Compiler_UnexpectedException");
101Log.LogErrorFromException(e, showStackTrace: true, showDetail: true, file: null);
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (8)
184Log.LogMessageFromText(trimmedMessage, messageImportance);
243commandLine.AppendSwitchUnquotedIfNotNull("/define:", GetDefineConstantsSwitch(DefineConstants, Log));
563Log.LogErrorWithCodeFromResources("General_CouldNotSetHostObjectParameter", param, e.Message);
584CheckHostObjectSupport(param = nameof(DefineConstants), cscHostObject.SetDefineConstants(GetDefineConstantsSwitch(DefineConstants, Log)));
697Log.LogErrorWithCodeFromResources("General_CouldNotSetHostObjectParameter", param, e.Message);
719Log.LogError(null, "CS" + errorCode.ToString("D4", CultureInfo.InvariantCulture), null, null, 0, 0, 0, 0, errorMessage);
723Log.LogWarning(null, "CS" + errorCode.ToString("D4", CultureInfo.InvariantCulture), null, null, 0, 0, 0, 0, errorMessage);
812Log.LogErrorWithCodeFromResources("General_IncorrectHostObject", "Csc", "ICscHostObject");
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (8)
112Log.LogErrorFromResources("MapSourceRoots.PathMustEndWithSlashOrBackslash", Names.SourceRoot, sourceRoot.ItemSpec);
130if (Log.HasLoggedErrors)
152Log.LogErrorFromResources("MapSourceRoots.ContainsDuplicate", Names.SourceRoot, localPath);
174Log.LogErrorFromResources("MapSourceRoots.NoTopLevelSourceRoot", Names.SourceRoot, Names.DeterministicSourcePaths);
207Log.LogErrorFromResources("MapSourceRoots.NoSuchTopLevelSourceRoot", Names.SourceRoot + "." + Names.ContainingRoot, Names.SourceRoot, containingRoot);
220if (!Log.HasLoggedErrors)
225return !Log.HasLoggedErrors;
240Log.LogWarningFromResources("MapSourceRoots.ContainsDuplicate", Names.SourceRoot, left.ItemSpec, metadataName, leftValue, rightValue);
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (7)
284return !Log.HasLoggedErrors;
338Log.LogErrorWithCodeFromResources("VBC_RenamePDB", PdbFile, e.Message);
636Log.LogErrorWithCodeFromResources("Vbc_EnumParameterHasInvalidValue", "Verbosity", this.Verbosity, "Quiet, Normal, Verbose");
724Log.LogMessageFromText(originalVBErrorString, originalVBError.MessageImportance);
737Log.LogMessageFromText(newLine, originalVBError.MessageImportance);
992Log.LogErrorWithCodeFromResources("General_CouldNotSetHostObjectParameter", param, e.Message);
1115Log.LogErrorWithCodeFromResources("General_IncorrectHostObject", "Vbc", "IVbcHostObject");
Microsoft.Build.Tasks.Core (42)
GenerateManifestBase.cs (15)
200Log.LogErrorWithCodeFromResources("GenerateManifest.NoIdentity");
286Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateManifestBase));
293Log.LogErrorWithCodeFromResources("GenerateManifest.General", "Dynamic code generation is not supported in this runtime environment.");
392Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "AssemblyType", item.ItemSpec);
396Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "AssemblyType", item.ItemSpec);
423Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "DependencyType", item.ItemSpec);
427Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "DependencyType", item.ItemSpec);
481Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message);
488Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidInputManifest");
579Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "AssemblyName");
584Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "AssemblyVersion");
589Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "TargetCulture");
597Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "Platform");
618Log.LogWarningWithCodeFromResources("GenerateManifest.TargetPathTooLong", manifestFileName, MaxTargetPath);
648Log.LogErrorWithCodeFromResources("GenerateManifest.WriteOutputManifestFailed", OutputManifest.ItemSpec, ex.Message, lockedFileMessage);
Microsoft.Build.Tasks.Git (10)
Microsoft.Build.Utilities.Core (13)
Microsoft.DotNet.ApiCompat.Task (1)
Microsoft.DotNet.Arcade.Sdk (82)
Microsoft.DotNet.Build.Tasks.Feed (23)
src\PushToBuildStorage.cs (23)
181collection.TryAddSingleton<IFileSystem>(provider => new PushToBuildStorageFileSystem(UseHardlinksIfPossible, Log));
184collection.TryAddSingleton(Log);
193Log.LogError($"Invalid publishing version '{PublishingVersion}'");
202Log.LogError($"ItemsToPush is not specified.");
214Log.LogError("AssetsLocalStorageDir, ShippingPackagesLocalStorageDir, NonShippingPackagesLocalStorageDir, PdbArtifactsLocalStorageDir and AssetManifestsLocalStorageDir need " +
225Log.LogError($"Publishing version '{_publishingVersion}' is not supported.");
231Log.LogError($"FutureArtifactName and FutureArtifactPublishBasePath are not supported in publishing version '{_publishingVersion}'.");
239Log.LogError($"FutureArtifactName and FutureArtifactPublishBasePath must be both be specified if either is specified.");
249Log.LogMessage(MessageImportance.High, "Performing push to local artifacts storage.");
253Log.LogMessage(MessageImportance.High, "Performing push to Azure DevOps artifacts storage.");
291Log.LogError($"Failed to construct build model from input artifacts.");
299Log.LogError($"Could not find file {package.OriginalFile}.");
310Log.LogError($"Could not find file {blobArtifact.OriginalFile}.");
323Log.LogError($"PdbArtifactsLocalStorageDir must be specified if PDBs are present.");
331Log.LogError($"Could not find file {pdbArtifact.OriginalFile}.");
340Log.LogMessage(MessageImportance.High,
345Log.LogMessage(MessageImportance.High, $"Writing build manifest file '{AssetManifestPath}'...");
358Log.LogErrorFromException(e, true);
361return !Log.HasLoggedErrors;
391Log.LogError($"Could not determine relative path from '{FutureArtifactPublishBasePath}' to '{artifactDestinationPath}'.");
471Log.LogMessage(MessageImportance.High,
475Log.LogMessage(MessageImportance.High,
479Log.LogMessage(MessageImportance.High,
Microsoft.DotNet.Build.Tasks.FileCatalog (5)
Microsoft.DotNet.Build.Tasks.Installers (40)
src\GenerateCurrentVersion.cs (6)
72Log.LogWarning("The specified Padding '{0}' has to be equal to or greater than 5. Using 5 as a default now.", Padding);
82Log.LogError("The seed date '{0}' is not valid. Please specify a date in the short format.({1})", SeedDate, DateFormat);
91Log.LogError("The date '{0}' is not valid. Please pass in a date after {1}.", SeedDate, ComparisonDate);
107Log.LogError("The OfficialBuildId doesn't follow the expected({0}.rr) format: '{1}'", dateFormat, match.Groups[1].Value);
115Log.LogError("Error: Invalid OfficialBuildId was passed: '{0}'", buildId);
135Log.LogError("The comparison date '{0}' is not valid. Please specify a date in the short format.({1})", comparisonDate, DateFormat);
Microsoft.DotNet.Build.Tasks.Packaging (168)
GeneratePackageReport.cs (8)
100NuGetAssetResolver.ExamineAssets(Log, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder);
126NuGetAssetResolver.ExamineAssets(Log, "Runtime", package, target, runtimeAssets, out hasRuntimeAsset, out hasRuntimePlaceHolder);
179return !Log.HasLoggedErrors;
212Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}");
218Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework.");
299Log.LogError($"{packageItem.TargetPath} is missing TargetPath metadata");
312Log.LogError($"Could not parse File {file.ItemSpec}. {ex}");
329Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}.");
GenerateRuntimeDependencies.cs (10)
52Log.LogError("Dependencies argument must be specified");
58Log.LogError("PackageID argument must be specified");
64Log.LogError("RuntimeJson argument must be specified");
86Log.LogMessage(MessageImportance.Low, "Aliasing {0} -> {1}", alias, dependency.ItemSpec);
99Log.LogMessage(MessageImportance.Low, "Skipping dependencies {0} since they don't have a TargetRuntime.", String.Join(", ", runtimeGroup.Select(d => d.ItemSpec)));
157Log.LogWarning("Dependency {0} specified TargetPackageAlias {1} but no package was found defining this alias.", dependency.ItemSpec, targetPackageAlias);
161Log.LogMessage(MessageImportance.Low, "Using {0} for TargetPackageAlias {1}", targetPackageId, targetPackageAlias);
166Log.LogMessage(MessageImportance.Low, "Dependency {0} has no parent so will assume {1}.", dependency.ItemSpec, PackageId);
180Log.LogWarning("Dependency {0} has no version", dependency.ItemSpec);
185Log.LogError("Dependency {0} has invalid version {1}", dependency.ItemSpec, dependencyVersionString);
HarvestPackage.cs (18)
138return !Log.HasLoggedErrors;
188Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}");
194Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework.");
201NuGetAssetResolver.ExamineAssets(Log, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder);
208Log.LogMessage(MessageImportance.Low, $"Skipping {fx} because it is not supported.");
219NuGetAssetResolver.ExamineAssets(Log, "Runtime", package, target, runtimeAssets, out hasRuntimeAsset, out hasRuntimePlaceHolder);
226Log.LogMessage(MessageImportance.Low, $"Skipping {fx} because it is not supported on {target}.");
257Log.LogMessage(MessageImportance.Low, $"Validating version {version} for {supportedFramework.ItemSpec} because it was supported by {PackageId}/{PackageVersion}.");
281Log.LogError($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}.");
312Log.LogMessage(MessageImportance.Low, $"Excluding package path {harvestPackagePath} because it is specifically excluded.");
319Log.LogMessage(MessageImportance.Low, $"Excluding package path {harvestPackagePath} because it is not included in {nameof(PathsToInclude)}.");
358Log.LogMessage(MessageImportance.Low, $"Preferring live build of package path {livePackagePath} over the asset from last stable package because the file is not versioned.");
402Log.LogMessage($"Using reference {livePackagePath} from last stable package {PackageId}/{PackageVersion} rather than the built reference {liveFile.SourcePath} since it is the same API version. Set <Preserve>true</Preserve> on {liveFile.SourceProject} if you'd like to avoid this..");
413Log.LogMessage(MessageImportance.Low, $"Including {livePackagePath} from last stable package {PackageId}/{PackageVersion}.");
458Log.LogError($"Path '{pathNotIncluded}' was specified in {nameof(PathsToInclude)} but was not found in the package {PackageId}/{PackageVersion}.");
488Log.LogError($"Cannot locate package '{PackageId}' version '{PackageVersion}' under '{string.Join(", ", PackagesFolders)}'. Harvesting is needed to redistribute assets and ensure compatibility with the previous release. You can disable this by setting HarvestStablePackage=false.");
497Log.LogMessage(MessageImportance.Low, $"Preferring live build of package path {packagePath} over the asset from last stable package{reason}.");
501Log.LogError($"Package path {packagePath} was specified to be harvested but it conflicts with live build{reason}.");
ValidatePackage.cs (37)
97return !Log.HasLoggedErrors;
124Log.LogError($"Invalid generation {compileAsset.TargetFramework.Version} for {compileAsset.LocalPath}, must be at least {minSupportedGeneration} based on the implementations in the package. If you meant to target the lower generation you may be missing an implementation for a framework on that lower generation. If not you should raise the generation of the reference assembly to match that of the lowest supported generation of all implementations/placeholders.");
142Log.LogError($"Missing target {fx.ToString()} from validation report {ReportFile}");
148NuGetAssetResolver.ExamineAssets(Log, "Compile", ContractName, fx.ToString(), compileAssetPaths, out hasCompileAsset, out hasCompilePlaceHolder);
158Log.LogError($"Missing target {target} from validation report {ReportFile}");
165NuGetAssetResolver.ExamineAssets(Log, "Runtime", ContractName, target, runtimeAssetPaths, out hasRuntimeAsset, out hasRuntimePlaceHolder);
174Log.LogError($"{ContractName} should not be supported on {target} but has both compile and runtime assets.");
178Log.LogError($"{ContractName} should not be supported on {target} but has runtime assets.");
183Log.LogError($"{ContractName} should not be supported on {target} but has placeholders for both compile and runtime which will permit the package to install.");
192Log.LogError($"Framework {fx} should support {ContractName} inbox but was missing a placeholder for compile-time. You may need to add <InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> to your project.");
196Log.LogError($"Framework {fx} should support {ContractName} inbox but contained a reference assemblies: {String.Join(", ", compileAssetPaths)}. You may need to add <InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> to your project.");
201Log.LogError($"Framework {fx} should support {ContractName} inbox but was missing a placeholder for run-time. You may need to add <InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> to your project.");
205Log.LogError($"Framework {fx} should support {ContractName} inbox but contained a implementation assemblies: {String.Join(", ", runtimeAssetPaths)}. You may need to add <InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> to your project.");
215Log.LogError($"{ContractName} should be supported on {target} but has a compile placeholder. You may need to remove InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> from your project.");
219Log.LogError($"{ContractName} should be supported on {target} but has no compile assets.");
231Log.LogError($"{ContractName} should only contain a single compile asset for {target}.");
240Log.LogError($"{ContractName} should support API version {supportedVersion} on {target} but {referenceAssembly.LocalPath} was found to support {referenceAssemblyVersion?.ToString() ?? "<unknown version>"}.");
250Log.LogMessage($"Suppressed: {ContractName} should be supported on {target} but has no runtime assets.");
255Log.LogError($"{ContractName} should be supported on {target} but has no runtime assets.");
269Log.LogError($"{ContractName} should support API version {supportedVersion} on {target} but {implementationAssembly.LocalPath} was found to support {implementationVersion?.ToString() ?? "<unknown version>"}.");
278Log.LogError($"{ContractName} has mismatched compile ({referenceAssemblyVersion}) and runtime ({implementationVersion}) versions on {target}.");
285Log.LogError($"{ContractName} has a higher runtime version ({implementationVersion}) than compile version ({referenceAssemblyVersion}) on .NET Desktop framework {target}. This will break bindingRedirects. If the live reference was replaced with a harvested reference you may need to set <Preserve>true</Preserve> on your reference assembly ProjectReference.");
292Log.LogError($"{ContractName} includes both {implementationAssembly.LocalPath} and {implementationFiles[fileName].LocalPath} an on {target} which have the same name and will clash when both packages are used.");
312Log.LogError($"When targeting {target} {ContractName} will use {implementationAssembly.LocalPath} which targets {implementationAssembly.TargetFramework.GetShortFolderName()} but {String.Join(";", matchingFxAssets.Select(i => i.PackagePath))} targets {fx.GetShortFolderName()} specifically.");
343Log.LogError($"PackageIndex from {String.Join(", ", PackageIndexes.Select(i => i.ItemSpec))} is missing an entry for package {PackageId}. Please run /t:UpdatePackageIndex on this project to commit an update.");
360Log.LogError($"PackageIndex from {String.Join(", ", PackageIndexes.Select(i => i.ItemSpec))} is missing an assembly version entry for {fileVersion} for package {PackageId}. Please run /t:UpdatePackageIndex on this project to commit an update.");
367Log.LogError($"PackageIndex from {String.Join(", ", PackageIndexes.Select(i => i.ItemSpec))} indicates that assembly version {fileVersion} is contained in non-stable package version {packageVersion} which differs from this package version {thisPackageVersion}.");
377Log.LogError($"PackageIndex from {String.Join(", ", PackageIndexes.Select(i => i.ItemSpec))} is has an assembly version entry(s) for {String.Join(", ", orphanedAssemblyVersions)} which are no longer in package {PackageId}. Please run /t:UpdatePackageIndex on this project to commit an update.");
390Log.LogError($"PackageIndex from {String.Join(", ", PackageIndexes.Select(i => i.ItemSpec))} is missing an baseline entry(s) for native module {PackageId}. Please run /t:UpdatePackageIndex on this project to commit an update.");
401Log.LogError($"PackageIndex from {String.Join(", ", PackageIndexes.Select(i => i.ItemSpec))} is missing ModulesToPackages entry(s) for {String.Join(", ", missingModuleNames)} to package {PackageId}. Please add a an entry for the appropriate package.");
427Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}");
433Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework.");
441Log.LogError($"Framework {fx} has been listed in Frameworks more than once.");
473Log.LogError($"Could not parse TargetFramework {fxString} as a SupportedFramework. {ex}");
479Log.LogError($"Did not recognize TargetFramework {fxString} as a SupportedFramework.");
491Log.LogError($"Could not parse Version {version} on SupportedFramework item {supportedFramework.ItemSpec}. {ex}");
498Log.LogError($"SupportedFramework {fx} was specified but is not part of the Framework list to use for validation.");
Microsoft.DotNet.Build.Tasks.TargetFramework (5)
Microsoft.DotNet.Build.Tasks.Templating (7)
GenerateFileFromTemplate.cs (7)
82Log.LogError($"File {TemplateFile} does not exist");
86IDictionary<string, string> values = MSBuildListSplitter.GetNamedProperties(Properties, Log);
97Log.LogMessage(MessageImportance.Low, $"Skipping unchanged file {ResolvedOutputPath}");
98return !Log.HasLoggedErrors;
109return !Log.HasLoggedErrors;
199Log.LogWarning(null, null, null, TemplateFile,
211Log.LogWarning(null, null, null, TemplateFile,
Microsoft.DotNet.Build.Tasks.VisualStudio (17)
Microsoft.DotNet.CMake.Sdk (19)
src\GetCMakeArtifactsFromFileApi.cs (17)
56Log.LogError("CMake File API reply directory does not exist: {0}", replyDir);
64Log.LogError("No CMake File API index files found.");
69Log.LogMessage(MessageImportance.Low, "Reading CMake File API index: {0}", indexFile);
82Log.LogError("No 'codemodel-v2' found in File API index reply.");
90Log.LogError("Codemodel file not found: {0}", codeModelFile);
94Log.LogMessage(MessageImportance.Low, "Reading codemodel: {0}", codeModelFile);
101Log.LogError("Failed to deserialize codemodel.");
120Log.LogError("Configuration '{0}' not found in CMake File API response.", Configuration);
124Log.LogMessage(MessageImportance.Low, "Found configuration: {0}", Configuration);
128Log.LogError("Configuration '{0}' has no directories or targets.", Configuration);
149Log.LogError("Source directory '{0}' not found in CMake File API response.", SourceDirectory);
153Log.LogMessage(MessageImportance.Low, "Found matching directory: {0}", SourceDirectory);
180Log.LogMessage(MessageImportance.Low, "Reading target file: {0}", targetFile);
202Log.LogMessage(MessageImportance.Low, "Found artifact: {0}", fullPath);
211Log.LogWarning("No artifacts found for source directory '{0}' in configuration '{1}'.", SourceDirectory, Configuration);
215Log.LogMessage(MessageImportance.Normal, "Found {0} artifact(s) for source directory '{1}' in configuration '{2}'", Artifacts.Length, SourceDirectory, Configuration);
221Log.LogErrorFromException(ex, showStackTrace: false);
Microsoft.DotNet.GenFacades (10)
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (3)
Microsoft.DotNet.NuGetRepack.Tasks (18)
Microsoft.DotNet.PackageTesting (19)
Microsoft.DotNet.SharedFramework.Sdk (28)
Microsoft.DotNet.SourceBuild.Tasks (13)
Microsoft.DotNet.XliffTasks (4)
Microsoft.Maui.Resizetizer (41)
GenerateSplashAndroidResources.cs (10)
31 Log.LogMessage(MessageImportance.Low, $"Splash Screen: Intermediate Path " + IntermediateOutputPath);
36 Log.LogMessage(MessageImportance.Low, $"Splash Screen: No images found.");
51 return !Log.HasLoggedErrors;
55 Log.LogError(null, "MAUI0000", null, null, 0, 0, 0, 0, ex.ToString());
71 Log.LogMessage(MessageImportance.Low, $"Splash Screen Resize: " + dpi);
79 Log.LogMessage(MessageImportance.Low, $"Splash Screen Copy: " + dpi);
91 Log.LogMessage(MessageImportance.Low, $"Splash Screen Colors: " + colorsFile);
115 Log.LogMessage(MessageImportance.Low, $"Splash Screen Drawable: " + drawableFile);
141 Log.LogMessage(MessageImportance.Low, $"Splash Screen Drawable (v31): " + drawableFile);
163 Log?.LogMessage(message);
GenerateSplashStoryboard.cs (8)
26 Log.LogMessage(MessageImportance.Low, $"Splash Screen: Intermediate Path " + IntermediateOutputPath);
47 return !Log.HasLoggedErrors;
51 Log.LogError(null, "MAUI0000", null, null, 0, 0, 0, 0, ex.ToString());
62 Log.LogMessage(MessageImportance.Low, $"Splash Screen Resize: " + dpi);
70 Log.LogMessage(MessageImportance.Low, $"Splash Screen Copy: " + dpi);
80 Log.LogMessage(MessageImportance.Low, $"Splash Screen Storyboard: " + storyboardFile);
101 Log.LogMessage(MessageImportance.Low, $"Splash Screen Storyboard (empty): " + storyboardFile);
145 Log?.LogMessage(message);
Microsoft.NET.Build.Containers (80)
Tasks\ComputeDotnetBaseImageAndTag.cs (12)
117return !Log.HasLoggedErrors;
134Log.LogError(Resources.Strings.InvalidTargetRuntimeIdentifiers);
158Log.LogMessage("Computed base version tag of {0} from TFM {1} and SDK {2}", baseVersionPart, TargetFrameworkVersion, SdkVersion);
172Log.LogMessage("Chose base image repository {0}", detectedRepository);
181Log.LogMessage("Using user-provided ContainerFamily");
193Log.LogMessage("Using extra variant because the application needs globalization");
208Log.LogMessage("Selected base image tag {0}", tag);
231Log.LogMessage("Selected base image tag {0}", tag);
264Log.LogError(Resources.Strings.InvalidSdkVersion, SdkVersion);
304Log.LogError(Resources.Strings.InvalidSdkPrereleaseVersion, channel);
309Log.LogError(Resources.Strings.InvalidSdkPrereleaseVersion, channel);
361Log.LogTelemetry("sdk/container/inference", telemetryProperties);
Tasks\CreateNewImage.cs (32)
46Log.LogWarningFromException(ex);
50Log.LogWarningFromException(ex);
52return !Log.HasLoggedErrors;
59using MSBuildLoggerProvider loggerProvider = new(Log);
65Log.LogErrorWithCodeFromResources(nameof(Strings.PublishDirectoryDoesntExist), nameof(PublishDirectory), PublishDirectory);
66return !Log.HasLoggedErrors;
70VSHostObject hostObj = new(HostObject, Log);
81Log.LogMessage(MessageImportance.Low, Resource.GetString(nameof(Strings.HostObjectNotDetected)));
113var telemetry = new Telemetry(sourceImageReference, destinationImageReference, Log);
131Log.LogErrorWithCodeFromResources(nameof(Strings.RepositoryNotFound), BaseImageName, BaseImageTag, BaseImageDigest, registry.RegistryName);
132return !Log.HasLoggedErrors;
137Log.LogErrorWithCodeFromResources(nameof(Strings.UnableToAccessRepository), BaseImageName, registry.RegistryName);
138return !Log.HasLoggedErrors;
142Log.LogErrorFromException(e, showStackTrace: false, showDetail: true, file: null);
143return !Log.HasLoggedErrors;
148Log.LogErrorFromException(e, showStackTrace: false, showDetail: true, file: null);
149return !Log.HasLoggedErrors;
159Log.LogErrorWithCodeFromResources(nameof(Strings.BaseImageNotFound), sourceImageReference, ContainerRuntimeIdentifier);
160return !Log.HasLoggedErrors;
166Log.LogMessage(MessageImportance.High, message, parameters);
177Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidContainerImageFormat), ImageFormat, string.Join(",", Enum.GetValues<KnownImageFormats>()));
224Log.LogMessageFromResources(nameof(Strings.GenerateDigestLabelWithoutGenerateLabels));
238if (Log.HasLoggedErrors)
262await ImagePublisher.PublishImageAsync(builtImage, sourceImageReference, destinationImageReference, NoCache, Log, telemetry, cancellationToken)
266return !Log.HasLoggedErrors;
285Log.LogErrorWithCodeFromResources(nameof(Strings.MissingPortNumber), port.ItemSpec);
291Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidPort_NumberAndType), portNo, portType);
295Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidPort_Number), portNo);
299Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidPort_Type), portType);
330logWarning: s => Log.LogWarningWithCodeFromResources(s),
331logError: (s, a) => { if (a is null) Log.LogErrorWithCodeFromResources(s); else Log.LogErrorWithCodeFromResources(s, a); });
Tasks\ParseContainerProperties.cs (23)
91Log.LogErrorWithCodeFromResources(nameof(Strings.AmbiguousTags), nameof(ContainerImageTag), nameof(ContainerImageTags));
92return !Log.HasLoggedErrors;
104Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidTag), nameof(ContainerImageTag), ContainerImageTag);
112Log.LogErrorWithCodeFromResources(nameof(Strings.InvalidTags), nameof(ContainerImageTags), String.Join(",", invalidTags));
113return !Log.HasLoggedErrors;
123Log.LogErrorWithCodeFromResources(nameof(Strings.CouldntRecognizeRegistry), ContainerRegistry);
124return !Log.HasLoggedErrors;
131Log.LogWarningWithCodeFromResources(nameof(Strings.BaseImageNameWithSpaces), nameof(FullyQualifiedBaseImageName));
142Log.LogErrorWithCodeFromResources(nameof(Strings.BaseImageNameParsingFailed), nameof(FullyQualifiedBaseImageName), FullyQualifiedBaseImageName);
143return !Log.HasLoggedErrors;
148Log.LogWarningWithCodeFromResources(nameof(Strings.BaseImageNameRegistryFallback), nameof(FullyQualifiedBaseImageName), ContainerHelpers.DockerRegistryAlias);
158Log.LogMessageFromResources(warningMessageKey, warningParams);
163Log.LogErrorWithCodeFromResources(errorMessageKey, errorParams);
164return !Log.HasLoggedErrors;
176Log.LogMessage(MessageImportance.Low, "Parsed the following properties. Note: Spaces are replaced with dashes.");
177Log.LogMessage(MessageImportance.Low, "Host: {0}", ParsedContainerRegistry);
178Log.LogMessage(MessageImportance.Low, "Image: {0}", ParsedContainerImage);
179Log.LogMessage(MessageImportance.Low, "Tag: {0}", ParsedContainerTag);
180Log.LogMessage(MessageImportance.Low, "Digest: {0}", ParsedContainerDigest);
181Log.LogMessage(MessageImportance.Low, "Image Name: {0}", NewContainerRepository);
182Log.LogMessage(MessageImportance.Low, "Image Tags: {0}", string.Join(", ", NewContainerTags));
185return !Log.HasLoggedErrors;
197Log.LogWarningWithCodeFromResources(nameof(Strings.InvalidEnvVar), nameof(ContainerEnvironmentVariables), badEnvVar.ItemSpec);
Microsoft.NET.Build.Extensions.Tasks (1)
Microsoft.NET.Build.Tasks (26)
RunReadyToRunCompiler.cs (18)
97Log.LogError(Strings.CrossgenToolMissingInPDBCompilationMode);
105Log.LogError(Strings.Crossgen2ToolMissingWhenUseCrossgen2IsSet);
110Log.LogError(Strings.Crossgen2ToolExecutableNotFound, Crossgen2Tool.ItemSpec);
116Log.LogError(Strings.DotNetHostExecutableNotFound, hostPath);
124Log.LogError(Strings.JitLibraryNotFound, jitPath);
131Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.JitPath);
139Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetOS);
144Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetArch);
153Log.LogError(Strings.CrossgenToolMissingWhenUseCrossgen2IsNotSet);
158Log.LogError(Strings.CrossgenToolExecutableNotFound, CrossgenTool.ItemSpec);
163Log.LogError(Strings.JitLibraryNotFound, MetadataKeys.JitPath);
176Log.LogError(Strings.DiaSymReaderLibraryNotFound, DiaSymReader);
183Log.LogError(Strings.MissingOutputPDBImagePath);
188Log.LogError(Strings.PDBGeneratorInputExecutableNotFound, _outputR2RImage);
201Log.LogError(Strings.InputAssemblyNotFound, _inputAssembly);
212Log.LogError(Strings.MissingOutputR2RImageFileName);
218Log.LogError(Strings.MissingOutputPDBImagePath);
448Log.LogMessage(MessageImportance.Normal, singleLine);
Microsoft.NET.ProjectData.Tasks (33)
MergeProjectDataSlicesTask.cs (8)
79 this.Log.LogError(
101 this.Log.LogMessage(MessageImportance.Low,
134 this.Log.LogMessage(MessageImportance.Low, "ProjectData: no slice files found matching {0}; skipping merge.", this.SliceGlob);
141 this.Log.LogMessage(MessageImportance.Low, "ProjectData: merged {0} slices into {1}.", count, this.ResolvedOutputPath);
154 this.Log.LogWarning(
187 this.Log.LogMessage(MessageImportance.Low, "ProjectData: {0}", message);
191 this.Log.LogMessage(MessageImportance.Low, "ProjectData: failed to update donor index for {0}: {1}", this.ProjectFilePath, message);
209 this.Log.LogWarning("ProjectData: failed to delete stale output {0}: {1}", this.ResolvedOutputPath, ex.Message);
WriteProjectDataSliceTask.cs (9)
109 this.Log.LogMessage(MessageImportance.Low,
125 this.Log.LogMessage(MessageImportance.Low,
141 this.Log.LogMessage(MessageImportance.Low,
174 this.Log.LogMessage(MessageImportance.Low,
187 this.Log.LogWarning(
221 this.Log.LogMessage(MessageImportance.Low, "ProjectData: {0}", message);
225 this.Log.LogMessage(MessageImportance.Low, "ProjectData: failed to update donor index for {0}: {1}", this.ProjectFilePath, message);
231 this.Log.LogWarning(
269 this.Log.LogWarning("ProjectData: failed to delete stale output {0}: {1}", path, ex.Message);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (19)
BrotliCompress.cs (3)
97Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because compressed file '{1}' does not exist.", file.ItemSpec, outputRelativePath);
102Log.LogMessage(MessageImportance.Low, "Skipping '{0}' because '{1}' is newer than '{2}'.", file.ItemSpec, outputRelativePath, file.ItemSpec);
107Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because file is newer than '{1}'.", inputFullPath, outputRelativePath);
GZipCompress.cs (6)
60Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because compressed file '{1}' does not exist.", file.ItemSpec, outputRelativePath);
65Log.LogMessage(MessageImportance.Low, "Skipping '{0}' because '{1}' is newer than '{2}'.", file.ItemSpec, outputRelativePath, file.ItemSpec);
70Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because file is newer than '{1}'.", inputFullPath, outputRelativePath);
88Log.LogMessage(MessageImportance.Low,
95Log.LogErrorFromException(e);
101return !Log.HasLoggedErrors;
Microsoft.NET.Sdk.Publish.Tasks (75)
MsDeploy\CommonUtility.cs (3)
1837task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYVERSIONLOAD, task.ToString(), MSWebDeploymentAssembly.DynamicAssembly?.AssemblyFullName));
1838task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_MSDEPLOYVERSIONLOAD, task.ToString(), MSWebDelegationAssembly.DynamicAssembly?.AssemblyFullName));
1843task.Log.LogMessage(Framework.MessageImportance.Low, string.Format(CultureInfo.CurrentCulture, Resources.BUILDTASK_FailedToLoadThisVersionMsDeployTryingTheNext, versionArray[i], e.Message));
Tasks\Kudu\KuduDeploy.cs (13)
78Log.LogError(Resources.KUDUDEPLOY_DeployOutputPathEmpty);
85Log.LogError(Resources.KUDUDEPLOY_ConnectionInfoMissing);
93Log.LogMessage(Framework.MessageImportance.High, Resources.KUDUDEPLOY_PublishSucceeded);
97Log.LogError(Resources.KUDUDEPLOY_PublishFailed);
105KuduVfsDeploy fileDeploy = new(connectionInfo, Log);
121Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout));
126Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message));
136KuduZipDeploy zipDeploy = new(connectionInfo, Log);
145Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout));
150Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message));
169Log.LogMessage(Framework.MessageImportance.High, string.Format(Resources.KUDUDEPLOY_CopyingToTempLocation, zipFileFullPath));
177Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, e.Message));
182Log.LogMessage(Framework.MessageImportance.High, Resources.KUDUDEPLOY_CopyingToTempLocationCompleted);
Tasks\MsDeploy\CreateParameterFile.cs (4)
291WriteDeclareParametersToFile(Log, m_parameters, DeclareParameterFile, OptimisticParameterDefaultValue);
295WriteSetParametersToFile(Log, m_parameters, SetParameterFile, OptimisticParameterDefaultValue);
302WriteDeclareSetParametersToFile(Log, m_parameters, DeclareSetParameterFile, true /*OptimisticParameterDefaultValue */);
306WriteDeclareSetParametersToFile(Log, m_parameters, DeclareSetParameterFile, OptimisticParameterDefaultValue);
Tasks\MsDeploy\MSDeploy.cs (10)
550Log.LogMessage(Framework.MessageImportance.Low, Resources.MSDEPLOY_EXE_PreviewOnly);
556Log.LogMessage(Framework.MessageImportance.Normal, Resources.MSDEPLOY_EXE_Start);
559Log.LogMessage(Framework.MessageImportance.Normal, Resources.MSDEPLOY_EXE_Succeeded);
564Log.LogMessage(Framework.MessageImportance.High, Resources.MSDEPLOY_EXE_Failed);
565Log.LogErrorFromException(ex);
587Utility.MsDeployExeEndOfExecuteMessage(bSuccess, type, path, Log);
1021Log.LogMessage(Framework.MessageImportance.Low, string.Concat("\"", GenerateFullPathToTool(), "\" ", m_lastCommandLine));
1059Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidSourceCount, Source.GetLength(0)), null);
1065Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidDestinationCount, Destination.GetLength(0)), null);
1105Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.MSDEPLOY_InvalidVerbForTheInput, Verb, Source?[0].ItemSpec, (fNullDestination) ? null : Destination?[0].ItemSpec), null);
Tasks\MsDeploy\VsMsdeploy.cs (15)
798Log.LogErrorFromException(exception);
803if (!Utility.CheckMSDeploymentVersion(Log, out errorMessage))
811Log.LogError("Source must be 1 item");
821Log.LogError("Destination must be 1 item");
827VSHostObject hostObj = new(HostObject, Log);
873Log.LogMessageFromText(Resources.VSMSDEPLOY_Canceled, MessageImportance.High);
878Utility.LogVsMsDeployException(Log, e);
883Log.LogError(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, e.Message));
896Utility.MsDeployEndOfExecuteMessage(Result, dest.Provider, dest.Root, Log);
914return Log;
940VSHostObject hostObject = new(HostObject, Log);
958Utility.AddSkipDirectiveToBaseOptions(srcVsMsDeployobject.BaseOptions, srcSkipItems, enableSkipDirectiveList, disableSkipDirectiveList, Log);
959Utility.AddSkipDirectiveToBaseOptions(destVsMsDeployobject.BaseOptions, destSkipsItems, enableSkipDirectiveList, disableSkipDirectiveList, Log);
963Utility.AddSkipDirectiveToBaseOptions(srcVsMsDeployobject.BaseOptions, srcSkipItems, enableSkipDirectiveList, disableSkipDirectiveList, Log);
964Utility.AddSkipDirectiveToBaseOptions(destVsMsDeployobject.BaseOptions, destSkipsItems, enableSkipDirectiveList, disableSkipDirectiveList, Log);
Tasks\ZipDeploy\ZipDeploy.cs (9)
41Log.LogError(Resources.ZIPDEPLOY_FailedToRetrieveCred);
79Log.LogError(Resources.ZIPDEPLOY_InvalidSiteNamePublishUrl);
87Log.LogMessage(MessageImportance.High, string.Format(Resources.ZIPDEPLOY_PublishingZip, zipToPublishPath, zipDeployPublishUrl));
99Log.LogError(string.Format(Resources.ZIPDEPLOY_FailedDeploy, zipDeployPublishUrl, response?.StatusCode));
108Log.LogMessage(Resources.ZIPDEPLOY_Uploaded);
114ZipDeploymentStatus deploymentStatus = new(client, userAgent, Log, logMessages);
119Log.LogMessage(MessageImportance.High, Resources.ZIPDEPLOY_Succeeded);
124Log.LogError(string.Format(Resources.ZIPDEPLOY_FailedDeployWithLogs,
139VSHostObject hostObj = new(HostObject, Log);
Microsoft.NET.Sdk.Razor.Tasks (26)
DotnetToolTask.cs (13)
90Log.LogMessage(MessageImportance.High, "Waiting for debugger in pid: {0}", processId);
115Log.LogMessage(MessageImportance.High, message);
147Log.LogMessage(StandardOutputLoggingImportance, "Server execution started.");
150Log.LogMessage(StandardOutputLoggingImportance, $"CommandLine = '{commandLineCommands}'");
151Log.LogMessage(StandardOutputLoggingImportance, $"ServerResponseFile = '{responseFileCommands}'");
176Log.LogMessage(StandardOutputLoggingImportance, $"Server execution completed with return code {result}.");
193Log.LogMessage(StandardOutputLoggingImportance, $"Server execution completed with return code {result}. For more info, check the server log file in the location specified by the RAZORBUILDSERVER_LOG environment variable.");
209Log.LogMessage(StandardOutputLoggingImportance, $"Server execution completed with return code {result}. For more info, check the server log file in the location specified by the RAZORBUILDSERVER_LOG environment variable.");
215Log.LogMessage(
228Log.LogMessage(StandardOutputLoggingImportance, "Fallback to in-process execution.");
242Log.LogMessageFromText(trimmedMessage, messageImportance);
255Log.LogError(trimmedMessage);
287Log.LogError($"{toolCommand} exited with code {ExitCode}.");
Microsoft.NET.Sdk.StaticWebAssets.Tasks (306)
ApplyCompressionNegotiation.cs (21)
48Log.LogMessage("Processing compressed asset: {0}", compressedAsset.Identity);
56Log.LogMessage(MessageImportance.Low, " Skipping endpoint '{0}' since it already has a Content-Encoding selector", compressedEndpoint.Route);
71Log.LogMessage(MessageImportance.Low, " Updated endpoint '{0}' with Content-Encoding and Vary headers", compressedEndpoint.Route);
89Log.LogMessage(MessageImportance.Low, " Adding Vary response header to related endpoint '{0}'", relatedEndpointCandidate.Route);
123Log.LogMessage(MessageImportance.Low, " Skipping endpoint '{0}' since and endpoint for the same asset was updated.", endpointToSkip.Route);
137Log.LogMessage(MessageImportance.Low, "Processing route '{0}'", route);
140Log.LogMessage(MessageImportance.Low, " Found endpoints for route '{0}'", route);
143Log.LogMessage(MessageImportance.Low, " Adding endpoint '{0}'", endpoint.AssetFile);
247Log.LogMessage(MessageImportance.Low, "Processing related endpoint '{0}'", relatedEndpointCandidate.Route);
254Log.LogMessage(MessageImportance.Low, " Created Content-Encoding selector for compressed asset '{0}' with size '{1}' is '{2}'", encodingSelector.Value, encodingSelector.Quality, relatedEndpointCandidate.Route);
265Log.LogMessage(MessageImportance.Low, " Adding original-resource endpoint property for related endpoint '{0}'", relatedEndpointCandidate.Route);
293Log.LogMessage(MessageImportance.Low, " Updated related endpoint '{0}' with Content-Encoding selector '{1}={2}'", relatedEndpointCandidate.Route, encodingSelector.Value, encodingSelector.Quality);
332Log.LogWarning("Related asset not found for compressed asset: {0}", compressedAsset.Identity);
338Log.LogWarning("Endpoints not found for compressed asset: {0} {1}", compressedAsset.RelativePath, compressedAsset.Identity);
344Log.LogWarning("Endpoints not found for related asset: {0}", relatedAsset.Identity);
379Log.LogMessage(MessageImportance.Low, " Skipping Content-Type header for related endpoint '{0}'", relatedEndpointCandidateRoute);
385Log.LogMessage(MessageImportance.Low, " Adding header '{0}' to related endpoint '{1}'", header.Name, relatedEndpointCandidateRoute);
399Log.LogMessage(MessageImportance.Low, " Adding header '{0}' to related endpoint '{1}'", header.Name, relatedEndpointCandidate.Route);
411Log.LogMessage(MessageImportance.Low, " Updating ETag header for related endpoint '{0}'", relatedEndpointCandidate.Route);
419Log.LogMessage(MessageImportance.Low, "Adding Content-Type '{1}' header to related endpoint '{0}'", relatedEndpointCandidate.Route, header.Value);
425Log.LogMessage(MessageImportance.Low, " Skipping header '{0}' for related endpoint '{1}'", header.Name, relatedEndpointCandidate.Route);
CollectStaticWebAssetsToCopy.cs (8)
36Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' since source type is '{1}'", asset.Identity, asset.SourceType);
42Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' since asset mode is '{1}'", asset.Identity, asset.AssetMode);
54Log.LogMessage(MessageImportance.Low, "Source for asset '{0}' is '{1}' since the identity points to the output path.", asset.Identity, asset.OriginalItemSpec);
60Log.LogMessage(MessageImportance.Low, "Source for asset '{0}' is '{0}' since the asset exists.", asset.Identity);
65Log.LogMessage(MessageImportance.Low, "Source for asset '{0}' is '{1}' since the asset does not exist.", asset.Identity, asset.OriginalItemSpec);
83Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' since copy to output directory option is '{1}'", asset.Identity, asset.CopyToOutputDirectory);
91Log.LogError(ex.ToString());
94return !Log.HasLoggedErrors;
Compression\BrotliCompress.cs (5)
82Log.LogMessage(MessageImportance.Low, "Created directory '{0}'.", outputDirectory);
91if (!AssetToCompress.TryFindInputFilePath(file, Log, out var inputFullPath))
98Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because compressed file '{1}' does not exist.", inputFullPath, outputRelativePath);
103Log.LogMessage(MessageImportance.Low, "Skipping '{0}' because '{1}' is newer than '{2}'.", inputFullPath, outputRelativePath, inputFullPath);
108Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because file is newer than '{1}'.", inputFullPath, outputRelativePath);
Compression\GZipCompress.cs (7)
27Log.LogMessage(MessageImportance.Low, "Created directory '{0}'.", outputDirectory);
35if (!AssetToCompress.TryFindInputFilePath(file, Log, out var inputFullPath))
42Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because compressed file '{1}' does not exist.", inputFullPath, outputRelativePath);
47Log.LogMessage(MessageImportance.Low, "Skipping '{0}' because '{1}' is newer than '{2}'.", inputFullPath, outputRelativePath, inputFullPath);
52Log.LogMessage(MessageImportance.Low, "Compressing '{0}' because file is newer than '{1}'.", inputFullPath, outputRelativePath);
65Log.LogErrorFromException(e);
70return !Log.HasLoggedErrors;
ComputeEndpointsForReferenceStaticWebAssets.cs (3)
47Log.LogMessage(MessageImportance.Low, "Skipping endpoint '{0}' because route '{1}' is already updated.", asset.Identity, oldRoute);
66Log.LogMessage(MessageImportance.Low, "Adding endpoint {0} for asset {1} with updated route {2}.", candidateEndpoint.Route, candidateEndpoint.AssetFile, candidateEndpoint.Route);
73Log.LogMessage(MessageImportance.Low, "Skipping endpoint {0} because the asset {1} was not found.", candidateEndpoint.Route, candidateEndpoint.AssetFile);
ComputeReferenceStaticWebAssetItems.cs (8)
84Log.LogMessage(MessageImportance.Low, groupReason);
89Log.LogError("More than one compatible asset found for target path '{0}' -> {1}.",
112Log.LogMessage(MessageImportance.Low, reason);
122Log.LogMessage(MessageImportance.Low, "Skipping pattern '{0}' because is not defined in the current project.", pattern.ItemSpec);
126Log.LogMessage(MessageImportance.Low, "Including pattern '{0}' because is defined in the current project.", pattern.ToString());
137Log.LogErrorFromException(ex, showStackTrace: true, showDetail: true, file: null);
140return !Log.HasLoggedErrors;
182Log.LogMessage(
DefineStaticWebAssets.cs (44)
99Log.LogMessage(MessageImportance.Low, "Parsed {0} group definition source(s).", groupDefinitions.Count);
123var fingerprintPatternMatcher = new FingerprintPatternMatcher(Log, FingerprintCandidates ? (FingerprintPatterns ?? []) : []);
149Log.LogMessage(MessageImportance.Low, "FullPath '{0}' starts with content root '{1}' for candidate '{2}'. Using '{3}' as relative path.", normalizedAssetPath, normalizedDirectoryPath, candidate.ItemSpec, result);
160Log.LogMessage(MessageImportance.Low, "Rejected asset '{0}' for pattern '{1}'", candidateMatchPath, RelativePathPattern);
164Log.LogMessage(MessageImportance.Low, "Accepted asset '{0}' for pattern '{1}' with relative path '{2}'", candidateMatchPath, RelativePathPattern, match.Stem);
179Log.LogMessage(
195Log.LogMessage(
242Log.LogMessage(MessageImportance.Low, "Computing fingerprint and integrity for asset '{0}'", candidate.ItemSpec);
246Log.LogMessage(MessageImportance.Low, "Computing fingerprint for asset '{0}'", candidate.ItemSpec);
250Log.LogMessage(MessageImportance.Low, "Computing integrity for asset '{0}'", candidate.ItemSpec);
256if (Log.HasLoggedErrors)
332if (Log.HasLoggedErrors)
358Log.LogErrorFromException(ex);
362return !Log.HasLoggedErrors;
389Log.LogMessage(MessageImportance.Low, "Identity for candidate '{0}' is '{1}' because content root is not defined.", candidate.ItemSpec, candidateFullPath);
396Log.LogMessage(MessageImportance.Low, "Identity for candidate '{0}' is '{1}' because it starts with content root '{2}'.", candidate.ItemSpec, candidateFullPath, normalizedContentRoot);
425Log.LogMessage(MessageImportance.Low, "Identity for candidate '{0}' is '{1}' because it did not start with the content root '{2}'", candidate.ItemSpec, finalIdentity, normalizedContentRoot);
430Log.LogMessage(MessageImportance.Low, "Identity for candidate '{0}' is '{1}' because it didn't match the relative path pattern", candidate.ItemSpec, candidateFullPath);
437Log.LogMessage(MessageImportance.Low, "Computed identity '{0}' for candidate '{1}'", assetIdentity, candidate.ItemSpec);
456Log.LogError("No metadata '{0}' was present for item '{1}' and no default value was provided.",
479Log.LogMessage(MessageImportance.Low, "RelativePath '{0}' normalized to '{1}' found for candidate '{2}' and will be used for matching.", relativePath, normalizedPath, candidate.ItemSpec);
487Log.LogMessage(MessageImportance.Low, "TargetPath '{0}' normalized to '{1}' found for candidate '{2}' and will be used for matching.", targetPath, normalizedPath, candidate.ItemSpec);
495Log.LogMessage(MessageImportance.Low, "Link '{0}' normalized to '{1}' found for candidate '{2}' and will be used for matching.", linkPath, normalizedPath, candidate.ItemSpec);
508Log.LogMessage(MessageImportance.Low, "FullPath '{0}' starts with content root '{1}' for candidate '{2}'. Using '{3}' as relative path.", normalizedAssetPath, normalizedContentRoot, candidate.ItemSpec, result);
513Log.LogMessage("No relative path, target path or link was found for candidate '{0}'. FullPath '{0}' does not start with content root '{1}' for candidate '{2}'. Using item spec '{2}' as relative path.", normalizedAssetPath, normalizedContentRoot, candidate.ItemSpec);
543Log.LogError(
564Log.LogError(
578Log.LogMessage(MessageImportance.Low,
585Log.LogMessage(MessageImportance.Low,
598Log.LogMessage(MessageImportance.Low,
605Log.LogMessage(MessageImportance.Low,
623Log.LogMessage(
722Log.LogError("Group definition '{0}' is missing required metadata 'Value'.", name);
729Log.LogError("Group definition '{0}' is missing required metadata 'SourceId'.", name);
736Log.LogError("Group definition '{0}' has invalid or missing 'Order' value '{1}'. Order must be an integer.", name, orderStr);
743Log.LogError("Group definition '{0}' is missing required metadata 'IncludePattern'.", name);
782Log.LogError(
832Log.LogMessage(MessageImportance.Low, "Asset '{0}' excluded from group '{1}={2}' by ExcludePattern.", asset.Identity, def.Name, def.Value);
841Log.LogError("Asset '{0}' matched group definitions for '{1}' with conflicting values '{2}' and '{3}'. Glob patterns must be non-overlapping for the same group name with different values.",
850Log.LogMessage(MessageImportance.Low, "Tagged asset '{0}' with group '{1}={2}'.", asset.Identity, def.Name, def.Value);
865Log.LogMessage(MessageImportance.Low, "Group '{0}' prepended RelativePathPrefix '{1}' to relative path.", def.Name, def.RelativePathPrefix);
868Log.LogMessage(MessageImportance.Low, "Group '{0}' transformed RelativePath from '{1}' to '{2}'.",
880Log.LogMessage(MessageImportance.Low, "Group '{0}' prepended RelativePathPrefix '{1}' to relative path.", def.Name, def.RelativePathPrefix);
908Log.LogMessage(MessageImportance.Low,
GenerateStaticWebAssetEndpointsManifest.cs (11)
53Log.LogMessage(MessageImportance.Low, "Skipping manifest generation because manifest file '{0}' is up to date.", ManifestPath);
58Log.LogMessage(MessageImportance.Low, "Generating manifest file '{0}' because exclusion patterns changed from '{1}' to '{2}'.", ManifestPath,
65Log.LogMessage(MessageImportance.Low, "Generating manifest file '{0}' because manifest file is missing or out of date.", ManifestPath);
95Log.LogMessage(MessageImportance.Low, "Skipping endpoint '{0}' because the asset '{1}' is not part of the manifest", endpoint.Route, endpoint.AssetFile);
113Log.LogMessage(MessageImportance.Low, "Updating manifest timestamp '{0}'.", ManifestPath);
116Log.LogMessage(MessageImportance.Low, "Excluding endpoint '{0}' based on exclusion patterns", route);
129Log.LogMessage(MessageImportance.Low, "Including endpoint '{0}' for asset '{1}' with final location '{2}'", endpoint.Route, endpoint.AssetFile, asset.TargetPath);
143Log.LogErrorFromException(ex, showStackTrace: true, showDetail: true, null);
147return !Log.HasLoggedErrors;
241Log.LogMessage(MessageImportance.Low, "Skipping candidate asset '{0}' because it is not a '{1}' or 'All' asset.", group.Key, kind);
247Log.LogMessage(MessageImportance.Low, "Skipping candidate asset '{0}' because asset mode is '{1}'",
GenerateStaticWebAssetsDevelopmentManifest.cs (9)
44Log.LogMessage(MessageImportance.Low, "Skipping manifest generation because manifest file '{0}' is up to date.", ManifestPath);
52Log.LogMessage(MessageImportance.Low, "Skipping manifest generation because no assets nor discovery patterns were found.");
64Log.LogErrorFromException(ex, showStackTrace: true, showDetail: true, file: null);
66return !Log.HasLoggedErrors;
116Log.LogMessage(MessageImportance.Low, "Skipping candidate asset '{0}' because it is a 'Publish' asset.", group.Key);
122Log.LogMessage(MessageImportance.Low, "Skipping candidate asset '{0}' because asset mode is '{1}'",
153Log.LogMessage(MessageImportance.Low, "Creating manifest because manifest file '{0}' does not exist.", ManifestPath);
158Log.LogMessage(
167Log.LogMessage(
GenerateStaticWebAssetsManifest.cs (9)
61Log.LogMessage(MessageImportance.Low, "Generating manifest for '{0}' assets and '{1}' endpoints", assets.Length, endpoints.Length);
69Log.LogError(reason);
96Log.LogErrorFromException(ex, showStackTrace: true, showDetail: true, file: null);
98return !Log.HasLoggedErrors;
115Log.LogMessage(MessageImportance.Low, $"Accepted endpoint: Route='{endpoint.Route}', AssetFile='{endpoint.AssetFile}'");
119Log.LogMessage(MessageImportance.Low, $"Filtered out endpoint: Endpoint='{endpoint.Route}' AssetFile='{endpoint.AssetFile}'");
146Log.LogMessage(MessageImportance.Low, $"Creating manifest because manifest file '{ManifestPath}' does not exist.");
150Log.LogMessage(MessageImportance.Low, $"Updating manifest because manifest version '{manifest.Hash}' is different from existing manifest hash '{existingManifestHash}'.");
160Log.LogMessage(MessageImportance.Low, $"Skipping manifest updated because manifest version '{manifest.Hash}' has not changed.");
JSModules\ApplyJsModules.cs (4)
69Log.LogError(null, "BLAZOR105", "", component, 0, 0, 0, 0, $"More than one JS module files were found for the razor component '{component}'. " +
82Log.LogError(null, "RZ1007", "", view, 0, 0, 0, 0, $"More than one JS module files were found for the razor view '{view}'. " +
92Log.LogError(null, "BLAZOR106", "", unmatched.ItemSpec, 0, 0, 0, 0, $"The JS module file '{unmatched.ItemSpec}' was defined but no associated razor component or view was found for it.");
97return !Log.HasLoggedErrors;
ReadPackageAssetsManifest.cs (9)
38Log.LogError("IntermediateOutputPath is required.");
54Log.LogError("Package manifest file '{0}' not found.", manifestPath);
97return !Log.HasLoggedErrors;
124asset, IntermediateOutputPath, ProjectPackageId, ProjectBasePath, Log);
125if (materialized is null || Log.HasLoggedErrors)
167Log.LogError("Failed to read package manifest '{0}': {1}", manifestPath, ex.Message);
173Log.LogError("Package manifest '{0}' deserialized to null.", manifestPath);
179Log.LogError("Unsupported package manifest version {0} in '{1}'. Expected version {2}.", manifest.Version, manifestPath, StaticWebAssetPackageManifest.CurrentVersion);
185Log.LogError("Unexpected manifest type '{0}' in '{1}'. Expected '{2}'.", manifest.ManifestType, manifestPath, StaticWebAssetPackageManifest.PackageManifestType);
ResolveStaticWebAssetsEmbeddedProjectConfiguration.cs (11)
61Log.LogMessage("Evaluating rules for target framework: '{0}'", targetFramework);
64Log.LogMessage("Evaluate rule: '{0}'", rule.Id);
67Log.LogMessage("Rule matches target framework: '{0}'", rule.Id);
89Log.LogMessage($"Removing configuration '{configurationsToRemove.GetMetadata("AdditonalProperties")}' because it is embedded.");
101return !Log.HasLoggedErrors;
110Log.LogMessage("Project configuration not applicable due to framework mismatch: '{0}' != '{1}'", rule.TargetFramework, configuration.TargetFramework);
118Log.LogMessage("Project configuration not applicable due to framework identifier mismatch: '{0}' != '{1}'", rule.TargetFrameworkIdentifier, configuration.TargetFrameworkIdentifier);
126Log.LogMessage("Project configuration not applicable due to framework version mismatch: '{0}' != '{1}'", rule.TargetFrameworkVersion, configuration.TargetFrameworkVersion);
134Log.LogMessage("Project configuration not applicable due to platform mismatch: '{0}' != '{1}'", rule.Platform, configuration.Platform);
142Log.LogMessage("Project configuration not applicable due to platform version mismatch: '{0}' != '{1}'", rule.PlatformVersion, configuration.PlatformVersion);
146Log.LogMessage("Project configuration applicable: '{0}'", configuration.TargetFramework);
ScopedCss\ApplyCssScopes.cs (4)
72Log.LogError(null, "BLAZOR101", "", component, 0, 0, 0, 0, $"More than one scoped css files were found for the razor component '{component}'. " +
85Log.LogError(null, "RZ1007", "", view, 0, 0, 0, 0, $"More than one scoped css files were found for the razor view '{view}'. " +
103Log.LogError(null, "BLAZOR102", "", unmatched.ItemSpec, 0, 0, 0, 0, $"The scoped css file '{unmatched.ItemSpec}' was defined but no associated razor component or view was found for it.");
109return !Log.HasLoggedErrors;
Microsoft.SourceLink.AzureDevOpsServer.Git (16)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.AzureRepos.Git (16)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.Bitbucket.Git (17)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.Common (10)
GenerateSourceLinkFile.cs (10)
37return !Log.HasLoggedErrors;
58Log.LogError(Resources.MustEndWithDirectorySeparator, isMapped ? Names.SourceRoot.MappedPathFullName : Names.SourceRoot.Name, localPath);
65Log.LogError(Resources.MustNotContainWildcard, isMapped ? Names.SourceRoot.MappedPathFullName : Names.SourceRoot.Name, localPath);
80Log.LogError(Resources.MustContainSingleWildcard, Names.SourceRoot.SourceLinkUrlFullName, url);
113Log.LogWarning(Resources.SourceControlInformationIsNotAvailableGeneratedSourceLinkEmpty);
130Log.LogMessage(Resources.SourceLinkEmptyDeletingExistingFile, OutputFile);
140Log.LogMessage(Resources.SourceLinkFileUpToDate, OutputFile);
150Log.LogMessage(Resources.SourceLinkEmptyNoExistingFile, OutputFile);
154Log.LogMessage(Resources.SourceLinkFileUpdated, OutputFile);
160Log.LogError(Resources.ErrorWritingToSourceLinkFile, OutputFile, e.Message);
Microsoft.SourceLink.Gitea (15)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.Gitee (15)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.GitHub (15)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.GitLab (16)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.SourceLink.GitWeb (15)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (10)
65return !Log.HasLoggedErrors;
94Log.LogWarning(CommonResources.UnableToDetermineRepositoryUrl);
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl);
107if (Log.HasLoggedErrors)
114Log.LogError(CommonResources.AtLeastOneRepositoryHostIsRequired, HostsItemGroupName, ProviderDisplayName);
130Log.LogError(CommonResources.ValueOfWithIdentityIsNotValidCommitHash, Names.SourceRoot.RevisionIdFullName, SourceRoot.ItemSpec, revisionId);
181Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidDomainName, nameof(Hosts), item.ItemSpec);
194Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(Hosts), contentUrl);
215Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidHostUri, nameof(RepositoryUrl), RepositoryUrl);
220Log.LogError(CommonResources.ValuePassedToTaskParameterNotValidUri, nameof(RepositoryUrl), RepositoryUrl);
Microsoft.TestPlatform.Build (11)
NuGet.Build.Tasks (24)
NuGet.Build.Tasks.Pack (2)
PresentationBuildTasks (85)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (6)
76TaskHelper.DisplayLogo(Log, nameof(FileClassifier));
109errorId = Log.ExtractMessageCode(e.Message, out message);
117Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null);
124Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
270Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), targetType);
281Log.LogErrorWithCodeFromResources(nameof(SR.InvalidCulture), Culture);
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (24)
90TaskHelper.DisplayLogo(Log, nameof(MarkupCompilePass1));
122Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir);
129Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting));
143Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.AnalysisResult), CompilerAnalyzer.AnalyzeResult);
153Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.RecompiledXaml), CompilerAnalyzer.RecompileMarkupPages[i]);
173Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone));
182errorId = Log.ExtractMessageCode(e.Message, out message);
190Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null);
196Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
209Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompileSucceed_Pass1));
898Log.LogErrorWithCodeFromResources(nameof(SR.MultipleSplashScreenImages));
919Log.LogErrorWithCodeFromResources(nameof(SR.AppDefIsNotRequired));
934Log.LogErrorWithCodeFromResources(nameof(SR.MutlipleApplicationFiles));
939Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ApplicationDefinitionFile), ApplicationFile);
943Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), ApplicationFile);
978Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType);
996Log.LogErrorWithCodeFromResources(nameof(SR.WrongLocalizationPropertySetting_Pass1));
1038Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), filePath);
1130Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReferenceFile), refpath);
1200Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation));
1201Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType);
1223compilerWrapper.TaskLogger = Log;
1475Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec);
1484Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (18)
73TaskHelper.DisplayLogo(Log, nameof(MarkupCompilePass2));
84Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir);
91Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting));
128Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone));
136errorId = Log.ExtractMessageCode(e.Message, out message);
144Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null);
151Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
200Log.LogMessageFromResources(nameof(SR.CompileSucceed_Pass2));
559Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.PreparingCompile));
560Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType);
572Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefAppDefFile), localApplicationFile);
587Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefMarkupPage), localPageFile);
622Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation));
636compilerWrapper.TaskLogger = Log;
678Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.InternalTypeHelperNotRequired), _internalTypeHelperFile);
725Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);
744Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);
822Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType);
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (10)
140TaskHelper.DisplayLogo(Log, nameof(ResourcesGenerator));
156Log.LogErrorWithCodeFromResources(nameof(SR.MoreResourcesFiles));
170Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerating), resourcesFile);
184Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReadResourceFile), resFileName);
185Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourceId), resourceId);
192Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerated), resourcesFile);
203string errorId = Log.ExtractMessageCode(e.Message, out message);
211Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null);
217Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
296Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), strFileName);
Microsoft\Build\Tasks\Windows\UidManager.cs (15)
69TaskHelper.DisplayLogo(Log, nameof(UidManager));
73Log.LogErrorWithCodeFromResources(nameof(SR.SourceFileNameNeeded));
83Log.LogErrorWithCodeFromResources(nameof(SR.BadUidTask), _taskAsString);
104errorId = Log.ExtractMessageCode(e.Message, out message);
112Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null);
119Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
207Log.LogMessageFromResources(nameof(SR.CheckingUids), inputFile.ItemSpec);
335Log.LogMessageFromResources(nameof(SR.FilesRemovedUid), countGoodFiles);
339Log.LogMessageFromResources(nameof(SR.FilesUpdatedUid), countGoodFiles);
343Log.LogMessageFromResources(nameof(SR.FilesPassedUidCheck), countGoodFiles);
347Log.LogErrorWithCodeFromResources(nameof(SR.FilesFailedUidCheck), _markupFiles.Length - countGoodFiles);
399Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath);
405Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath);
434Log.LogErrorWithCodeFromResources(
451Log.LogErrorWithCodeFromResources(
RepoTasks (23)
sdk-tasks (68)
ZipFileCreateFromDirectory.cs (6)
48Log.LogMessage(MessageImportance.Low, "{0} already existed, deleting before zipping...", DestinationArchive);
53Log.LogWarning("'{0}' already exists. Did you forget to set '{1}' to true?", DestinationArchive, nameof(OverwriteDestination));
57Log.LogMessage(MessageImportance.High, "Compressing {0} into {1}...", SourceDirectory, DestinationArchive);
93Log.LogMessage(MessageImportance.Low, "Excluding {0} from archive.", file);
107Log.LogError("An exception has occurred while trying to compress '{0}' into '{1}'.", SourceDirectory, DestinationArchive);
108Log.LogMessage(MessageImportance.Low, e.ToString());