1 write to Log
Microsoft.Build.Utilities.Core (1)
Task.cs (1)
24Log = new TaskLoggingHelper(this);
759 references to Log
Crossgen2Tasks (19)
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
25_logger ??= new LogAdapter(base.Log);
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); 402Log.LogMessage(MessageImportance.Normal, singleLine);
ILLink.Tasks (13)
CreateRuntimeRootDescriptorFile.cs (12)
104 Log.LogError ($"File '{namespaceFilePath}' doesn't exist."); 110 Log.LogError ($"File '{mscorlibFilePath}' doesn't exist."); 116 Log.LogError ($"File '{cortypeFilePath}' doesn't exist."); 122 Log.LogError ($"File '{rexcepFilePath}' doesn't exist."); 130 Log.LogError ($"File '{iLLinkTrimXmlFilePath}' doesn't exist."); 178 DefineTracker defineTracker = new DefineTracker (defineConstants, Log, typeFile); 189 Log.LogError ($"Could not figure out feature switch status in '{typeFile}' for line {def}."); 194 Log.LogError ($"BEGIN_ILLINK_FEATURE_SWITCH is not formatted correctly '{typeFile}' for line {def}."); 205 Log.LogError ($"Could not figure out feature switch status in '{typeFile}' for line {def}."); 261 DefineTracker defineTracker = new DefineTracker (defineConstants, Log, corTypeFile); 282 DefineTracker defineTracker = new DefineTracker (defineConstants, Log, excTypeFile); 471 Log.LogError ($"Unknown namespace '{classNamespace}'.");
LinkTask.cs (1)
290 Log.LogMessage(MessageImportance.Normal, $"ILLink.Tasks path: {path}");
installer.tasks (5)
GenerateRunScript.cs (5)
30Log.LogError("Please provide at least one test command to execute via the RunCommands property."); 36Log.LogError($"Runner script template {TemplatePath} was not found."); 43Log.LogMessage($"Run commands = {string.Join(Environment.NewLine, RunCommands)}"); 54Log.LogError($"Generating runner scripts with extension '{extension}' is not supported."); 132Log.LogMessage($"Wrote {extension} run script to {OutputPath}");
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
50return !Log.HasLoggedErrors;
Microsoft.Build.CommandLine.UnitTests (8)
MSBuildServer_Tests.cs (1)
40return !Log.HasLoggedErrors;
ValidateAssemblyLoadContext.cs (4)
30Log.LogError($"Unexpected AssemblyLoadContext name: \"{thisLoadContext.Name}\", but the current executing assembly was {typeof(ValidateAssemblyLoadContext).Assembly.GetName().Name}"); 34Log.LogMessage(MessageImportance.High, $"Task {nameof(ValidateAssemblyLoadContext)} loaded in AssemblyLoadContext named {thisLoadContext.Name}"); 39Log.LogError($"Load context was a {thisLoadContext.GetType().AssemblyQualifiedName} instead of an {typeof(MSBuildLoadContext).AssemblyQualifiedName}"); 42return !Log.HasLoggedErrors;
XMake_Tests.cs (3)
2625bool shouldLogHigh = Log.LogsMessagesOfImportance(MessageImportance.High); 2626bool shouldLogNormal = Log.LogsMessagesOfImportance(MessageImportance.Normal); 2627bool shouldLogLow = Log.LogsMessagesOfImportance(MessageImportance.Low);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildManager_Tests.cs (1)
4384return Log.IsTaskInputLoggingEnabled == ExpectedTaskInputLoggingEnabled;
BackEnd\CustomLogAndReturnTask.cs (3)
31Log.LogWarning(null, WarningCode, null, null, 0, 0, 0, 0, "Warning Logged!", null); 36Log.LogError(null, ErrorCode, null, null, 0, 0, 0, 0, "Error Logged!", null); 38return ReturnHasLoggedErrors ? !Log.HasLoggedErrors : Return;
Definition\ItemDefinitionGroup_Tests.cs (1)
1902Log.LogMessage("In ItemDefinitionGroup task.");
EscapingInProjects_Tests.cs (1)
58Log.LogMessageFromText("Received TaskItemParam: " + TaskItemParam.ItemSpec, MessageImportance.High);
FixPathOnUnix_Tests.cs (2)
67Log.LogMessage($"Item: {item.ItemSpec}"); 70Log.LogMessage($"ItemMetadata: {name} = {item.GetMetadata(name)}");
Microsoft.Build.Tasks.CodeAnalysis (36)
CopyRefAssembly.cs (9)
38Log.LogErrorWithCodeFromResources("General_ExpectedFileMissing", SourcePath); 51Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadSource3", SourcePath, e.Message, e.StackTrace); 56Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_SourceNotRef1", SourcePath); 66Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_SkippingCopy1", DestinationPath); 70Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_Changed", SourcePath, File.GetLastWriteTimeUtc(SourcePath).ToString("O"), source, DestinationPath, File.GetLastWriteTimeUtc(DestinationPath).ToString("O"), destination); 74Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadDestination1", DestinationPath); 86Log.LogMessageFromResources(MessageImportance.Normal, "CopyRefAssembly_Copying", SourcePath, DestinationPath); 91Log.LogErrorWithCodeFromResources("Compiler_UnexpectedException"); 92Log.LogErrorFromException(e, showStackTrace: true, showDetail: true, file: null);
Csc.cs (2)
181Log.LogMessageFromText(trimmedMessage, messageImportance); 215commandLine.AppendSwitchUnquotedIfNotNull("/define:", GetDefineConstantsSwitch(DefineConstants, Log));
GenerateMSBuildEditorConfig.cs (1)
131Log.LogErrorFromException(ex);
ManagedCompiler.cs (8)
577Log.LogErrorWithCodeFromResources("Compiler_UnexpectedException"); 578Log.LogErrorFromException(e); 809Log.LogError(message); 814Log.LogMessage(message); 1063if (!Log.HasLoggedErrors && UsedCommandLineTool) 1117Log.LogMessageFromResources(MessageImportance.Normal, "General_ParameterUnsupportedOnHostCompiler", parameterName); 1153Log.LogErrorWithCodeFromResources("General_ReferenceDoesNotExist", reference.ItemSpec); 1214Log.LogMessageFromResources
MapSourceRoots.cs (8)
101Log.LogErrorFromResources("MapSourceRoots.PathMustEndWithSlashOrBackslash", Names.SourceRoot, sourceRoot.ItemSpec); 116if (Log.HasLoggedErrors) 138Log.LogErrorFromResources("MapSourceRoots.ContainsDuplicate", Names.SourceRoot, localPath); 160Log.LogErrorFromResources("MapSourceRoots.NoTopLevelSourceRoot", Names.SourceRoot, Names.DeterministicSourcePaths); 181Log.LogErrorFromResources("MapSourceRoots.NoSuchTopLevelSourceRoot", Names.SourceRoot + "." + Names.ContainingRoot, Names.SourceRoot, containingRoot); 194if (!Log.HasLoggedErrors) 199return !Log.HasLoggedErrors; 214Log.LogWarningFromResources("MapSourceRoots.ContainsDuplicate", Names.SourceRoot, left.ItemSpec, metadataName, leftValue, rightValue);
ShowMessageForImplicitlySkipAnalyzers.cs (1)
21Log.LogMessage(MessageImportance.High, ErrorString.ImplicitlySkipAnalyzersMessage);
Vbc.cs (7)
282return !Log.HasLoggedErrors; 334Log.LogErrorWithCodeFromResources("VBC_RenamePDB", PdbFile, e.Message); 607Log.LogErrorWithCodeFromResources("Vbc_EnumParameterHasInvalidValue", "Verbosity", this.Verbosity, "Quiet, Normal, Verbose"); 695Log.LogMessageFromText(originalVBErrorString, originalVBError.MessageImportance); 708Log.LogMessageFromText(newLine, originalVBError.MessageImportance); 963Log.LogErrorWithCodeFromResources("General_CouldNotSetHostObjectParameter", param, e.Message); 1086Log.LogErrorWithCodeFromResources("General_IncorrectHostObject", "Vbc", "IVbcHostObject");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (11)
MapSourceRootTests.cs (11)
268"ERROR : " + string.Format(task.Log.FormatResourceString( 270"ERROR : " + string.Format(task.Log.FormatResourceString( 329"WARNING : " + string.Format(task.Log.FormatResourceString( 331"WARNING : " + string.Format(task.Log.FormatResourceString( 333"WARNING : " + string.Format(task.Log.FormatResourceString( 335"WARNING : " + string.Format(task.Log.FormatResourceString( 337"WARNING : " + string.Format(task.Log.FormatResourceString( 339"WARNING : " + string.Format(task.Log.FormatResourceString( 377AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 406AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 440AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString(
Microsoft.Build.Tasks.Core (41)
GenerateApplicationManifest.cs (10)
117Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateApplicationManifest)); 175Log.LogErrorWithCodeFromResources("GenerateManifest.NoEntryPoint"); 192Log.LogErrorWithCodeFromResources("GenerateManifest.HostInBrowserInvalidFrameworkVersion"); 344Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "ManifestType"); 349Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "ManifestType"); 359Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "ClrVersion"); 364Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "OSVersion"); 369Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "TargetFrameworkVersion"); 377Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidRequestedExecutionLevel", requestedExecutionLevel); 479Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message);
GenerateDeploymentManifest.cs (7)
159Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateDeploymentManifest)); 184Log.LogErrorWithCodeFromResources("GenerateManifest.NoEntryPoint"); 269Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "MinimumRequiredVersion"); 280Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateMode"); 285Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateMode"); 297Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateUnit"); 302Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "UpdateUnit");
GenerateManifestBase.cs (14)
193Log.LogErrorWithCodeFromResources("GenerateManifest.NoIdentity"); 277Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(GenerateManifestBase)); 373Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "AssemblyType", item.ItemSpec); 377Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "AssemblyType", item.ItemSpec); 404Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "DependencyType", item.ItemSpec); 408Log.LogWarningWithCodeFromResources("GenerateManifest.InvalidItemValue", "DependencyType", item.ItemSpec); 459Log.LogErrorWithCodeFromResources("GenerateManifest.ReadInputManifestFailed", InputManifest.ItemSpec, ex.Message); 466Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidInputManifest"); 557Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "AssemblyName"); 562Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "AssemblyVersion"); 567Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "TargetCulture"); 575Log.LogErrorWithCodeFromResources("GenerateManifest.InvalidValue", "Platform"); 596Log.LogWarningWithCodeFromResources("GenerateManifest.TargetPathTooLong", manifestFileName, MaxTargetPath); 623Log.LogErrorWithCodeFromResources("GenerateManifest.WriteOutputManifestFailed", OutputManifest.ItemSpec, ex.Message, lockedFileMessage);
ManifestUtil\OutputMessage.cs (2)
146task.Log.LogWarningWithCodeFromResources(message.Name, message.GetArguments()); 149task.Log.LogErrorWithCodeFromResources(message.Name, message.GetArguments());
SignFile.cs (8)
48Log.LogErrorWithCodeFromResources("General.TaskRequiresWindows", nameof(SignFile)); 64Log.LogErrorWithCodeFromResources("SignFile.CertNotInStore"); 69Log.LogErrorWithCodeFromResources("SignFile.TargetFileNotFound", ex.FileName); 74Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim()); 79Log.LogWarningWithCodeFromResources("SignFile.SignToolWarning", ex.Message.Trim()); 84Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim()); 89Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim()); 94Log.LogErrorWithCodeFromResources("SignFile.SignToolError", ex.Message.Trim());
Microsoft.Build.Utilities.Core (15)
Task.cs (6)
34Log.TaskResources = taskResources; 48Log.HelpKeywordPrefix = helpKeywordPrefix; 131get => Log.TaskResources; 132set => Log.TaskResources = value; 144get => Log.HelpKeywordPrefix; 145set => Log.HelpKeywordPrefix = value;
ToolTask.cs (9)
293protected virtual bool HasLoggedErrors => Log.HasLoggedErrors || LogPrivate.HasLoggedErrors || LogShared.HasLoggedErrors; 385Log.LogWarningWithCodeFromResources("ToolTask.InvalidTerminationTimeout", TaskProcessTerminationTimeout); 850Log.LogMessageFromText($"Preserving temporary file '{fileName}'", MessageImportance.Low); 1124Log.LogError(errorOrOutMessage); 1147protected virtual void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) => Log.LogMessageFromText(singleLine, messageImportance); 1281Log.LogErrorWithCodeFromResources("Message.InvalidImportance", StandardErrorImportance); 1301Log.LogErrorWithCodeFromResources("Message.InvalidImportance", StandardOutputImportance); 1350if (!Log.HasLoggedErrors) 1672Log.LogMessage(MessageImportance.Low, " {0}={1}", key, value);
Microsoft.Build.Utilities.UnitTests (35)
MockTask.cs (1)
27private void RegisterResources() => Log.TaskResources = new ResourceManager("Microsoft.Build.Utilities.UnitTests.strings", typeof(MockTask).GetTypeInfo().Assembly);
TaskLoggingHelper_Tests.cs (33)
26string code = t.Log.ExtractMessageCode("AL001: This is a message.", out messageOnly); 31code = t.Log.ExtractMessageCode(" AL001: This is a message.", out messageOnly); 36code = t.Log.ExtractMessageCode("AL001 : This is a message.", out messageOnly); 41code = t.Log.ExtractMessageCode(" RESGEN7905001: This is a message.", out messageOnly); 46code = t.Log.ExtractMessageCode("R7: This is a message.", out messageOnly); 51code = t.Log.ExtractMessageCode("alink3456: This is a message.", out messageOnly); 56code = t.Log.ExtractMessageCode(" RES 7905: This is a message.", out messageOnly); 61code = t.Log.ExtractMessageCode("7905: This is a message.", out messageOnly); 66code = t.Log.ExtractMessageCode("ALINK: This is a message.", out messageOnly); 71code = t.Log.ExtractMessageCode("6780ALINK: This is a message.", out messageOnly); 76code = t.Log.ExtractMessageCode("LNK658A: This is a message.", out messageOnly); 98t.Log.LogMessagesFromStream(sr, MessageImportance.High).ShouldBeTrue(); 102t.Log.LogMessagesFromStream(sr, MessageImportance.Low).ShouldBeFalse(); 106t.Log.LogMessagesFromStream(sr, MessageImportance.High).ShouldBeFalse(); 116t.Log.LogCommandLine("MySuperCommand"); 132t.Log.LogMessage("echo {"); 133t.Log.LogMessageFromText("{1", MessageImportance.High); 134t.Log.LogCommandLine("{2"); 135t.Log.LogWarning("{3"); 136t.Log.LogError("{4"); 153t.Log.LogErrorFromResources("MySubcategoryResource", null, 156t.Log.LogErrorFromResources("MyErrorResource", "foo"); 158t.Log.LogWarningFromResources("MySubcategoryResource", null, 161t.Log.LogWarningFromResources("MyWarningResource", "foo"); 191t.Log.LogMessagesFromFile(file, MessageImportance.High); 200t.Log.LogMessagesFromFile(file); 224t.Log.FormatResourceString("bogus"); 256task.Log.LogErrorFromException(e); 264task.Log.LogWarningFromException(e); 271task.Log.LogErrorFromException(e, true); 279task.Log.LogWarningFromException(e, true); 285task.Log.LogErrorFromException(e, true, true, "foo.cs"); 308task.Log.LogErrorFromException(aggregateException);
ToolTask_Tests.cs (1)
98Log.LogError(singleLine);
Microsoft.DotNet.Arcade.Sdk (79)
src\CalculateAssemblyAndFileVersions.cs (6)
39return !Log.HasLoggedErrors; 50Log.LogError($"VersionPrefix is not a valid 3-part version: {VersionPrefix}"); 56Log.LogError("Invalid value of VersionBaseShortDate"); 73Log.LogError($"The minor version specified in {nameof(VersionPrefix)} must be at most {MaxMinor}: {VersionPrefix}"); 79Log.LogError($"The patch version specified in {nameof(VersionPrefix)} must be at most {MaxBuild}: {VersionPrefix}"); 98Log.LogError($"Invalid format of {nameof(BuildNumber)}: {BuildNumber}");
src\CheckRequiredDotNetVersion.cs (7)
40Log.LogError($"Invalid version: {SdkVersion}"); 52Log.LogError($"Error accessing file '{globalJsonPath}': {e.Message}"); 62Log.LogMessage(MessageImportance.Low, $"Previous .NET Core SDK version check failed."); 77Log.LogError($"Error reading file '{globalJsonPath}': {e.Message}"); 85Log.LogError($"Unable to determine dotnet version from file '{globalJsonPath}'."); 92Log.LogError($"DotNet version specified in '{globalJsonPath}' is invalid: {minSdkVersionStr}."); 98Log.LogError($"The .NET Core SDK version {currentSdkVersion} is below the minimum required version {minSdkVersion}. You can install newer .NET Core SDK from https://www.microsoft.com/net/download.");
src\CompareVersions.cs (3)
24return !Log.HasLoggedErrors; 31Log.LogError($"Invalid version: '{Left}'"); 37Log.LogError($"Invalid version: '{Right}'");
src\DownloadFile.cs (13)
51Log.LogError($"Invalid task parameter value: Retries={Retries}"); 57Log.LogError($"Invalid task parameter value: RetryDelayMilliseconds={RetryDelayMilliseconds}"); 67Log.LogError($"Invalid task parameter value: {nameof(Uri)} and {nameof(Uris)} are empty."); 101Log.LogError($"Download from all targets failed. List of attempted targets: {string.Join(", ", Uris.Select(m => m.ItemSpec))}"); 104Log.LogError($"Failed to download file using addresses in {nameof(Uri)} and/or {nameof(Uris)}."); 115Log.LogMessage($"Copying '{filePath}' to '{DestinationPath}'"); 119Log.LogMessage($"'{filePath}' does not exist."); 124Log.LogMessage($"Downloading '{uri}' to '{DestinationPath}'"); 137Log.LogMessage($"Download of '{uri}' to '{DestinationPath}' has been cancelled."); 162Log.LogMessage($"Problems downloading file from '{uri}'. Does the resource exist on the storage? {httpResponse.StatusCode} : {httpResponse.ReasonPhrase}"); 187Log.LogMessage($"Failed to download '{uri}' to '{DestinationPath}': {e.Message}"); 191Log.LogMessage($"Retrying download of '{uri}' to '{DestinationPath}' due to failure: '{e.Message}' ({attempt}/{Retries})"); 192Log.LogErrorFromException(e, true, true, null);
src\GenerateChecksums.cs (8)
30Log.LogError($"Metadata 'DestinationPath' is missing for item '{item.ItemSpec}'."); 31return !Log.HasLoggedErrors; 36Log.LogError($"The file '{item.ItemSpec}' does not exist."); 37return !Log.HasLoggedErrors; 40Log.LogMessage(MessageImportance.High, $"Generating checksum for '{item.ItemSpec}' into '{destinationPath}'..."); 54Log.LogErrorFromException(e); 55return !Log.HasLoggedErrors; 59return !Log.HasLoggedErrors;
src\GenerateResxSource.cs (5)
79Log.LogError("ResourceName not specified"); 98Log.LogError($"GenerateResxSource doesn't support language: '{Language}'"); 111Log.LogError("Missing resource name"); 118Log.LogError($"Missing resource value: '{name}'"); 124Log.LogError($"Empty resource name");
src\GenerateSourcePackageSourceLinkTargetsFile.cs (5)
32return !Log.HasLoggedErrors; 53Log.LogError($"Directory '{ProjectDirectory}' contains source roots (e.g. git submodules), which is not supported."); 75Log.LogError($"No SourceRoot with SourceLinkUrl contains directory '{ProjectDirectory}'."); 81Log.LogError($"SourceLinkUrl must contain exactly one '*': '{innerMostRootSourceLinkUrl}'"); 87Log.LogError($"SourceRoot must end with a directory separator: '{innerMostRootItemSpec}'");
src\GetLicenseFilePath.cs (3)
33return !Log.HasLoggedErrors; 68Log.LogError($"No license file found in '{Directory}'."); 72Log.LogError($"Multiple license files found in '{Directory}': '{string.Join("', '", matches)}'.");
src\InstallDotNetCore.cs (11)
47Log.LogWarning($"Unable to find global.json file '{GlobalJsonPath} exiting"); 52Log.LogError($"Unable to find dotnet install script '{DotNetInstallScript} exiting"); 53return !Log.HasLoggedErrors; 86Log.LogError($"Unable to find translation file {VersionsPropsPath}"); 87return !Log.HasLoggedErrors; 104Log.LogMessage(MessageImportance.Low, "Skipping installing x86 runtimes because this is a non-Windows platform and .NET Core x86 is not currently supported on any non-Windows platform."); 118Log.LogError($"Unable to find '{item.Key}' in properties defined in '{VersionsPropsPath}'"); 122Log.LogError($"Unable to parse '{item.Key}' from properties defined in '{VersionsPropsPath}'"); 145Log.LogMessage(MessageImportance.Low, $"Executing: {DotNetInstallScript} {arguments}"); 175Log.LogError("dotnet-install failed"); 184return !Log.HasLoggedErrors;
src\LocateDotNet.cs (4)
40return !Log.HasLoggedErrors; 53Log.LogMessage(MessageImportance.Low, $"Reused cached value."); 64Log.LogError($"Unable to determine dotnet version from file '{globalJsonPath}'."); 75Log.LogError($"Unable to find dotnet with SDK version '{sdkVersion}'");
src\SaveItems.cs (1)
54return !Log.HasLoggedErrors;
src\SetCorFlags.cs (3)
44return !Log.HasLoggedErrors; 68Log.LogError($"Invalid flags: '{value}'"); 75if (Log.HasLoggedErrors)
src\SingleError.cs (2)
23Log.LogMessage(MessageImportance.Low, Text); 28Log.LogError(Text);
src\SourceBuild\AddSourceToNuGetConfig.cs (1)
79return !Log.HasLoggedErrors;
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (4)
69Log.LogError($"Dependency SourceBuild RepoName null or empty in '{VersionDetailsXmlFile}' element {d}"); 77Log.LogError($"Dependency Name does not contain '{SourceBuildIntermediateNupkgPrefix}' in '{VersionDetailsXmlFile}' element {d}. Only place <SourceBuild> elements on source-build intermediate nupkgs."); 91Log.LogError($"Dependency Version null or empty in '{VersionDetailsXmlFile}' element {d}"); 122return !Log.HasLoggedErrors;
src\Unsign.cs (1)
35return !Log.HasLoggedErrors;
src\ValidateLicense.cs (2)
33return !Log.HasLoggedErrors; 43Log.LogError($"License file content '{LicensePath}' doesn't match the expected license '{ExpectedLicensePath}'.");
Microsoft.DotNet.Build.Tasks.Feed (42)
src\common\AzureConnectionStringBuildTask.cs (3)
35Log.LogError("If the ConnectionString property is set, you must not provide AccountKey / AccountName. These values will be deprecated in the future."); 50Log.LogError("Error parsing connection string. Please review its value."); 56Log.LogError("Error, must provide either ConnectionString or AccountName with AccountKey");
src\common\CreateAzureContainer.cs (3)
50Log.LogMessage(MessageImportance.High, $"Created blob storage container {StorageUri}"); 54Log.LogErrorFromException(e); 57return !Log.HasLoggedErrors;
src\common\UploadToAzure.cs (5)
72Log.LogError("No items were provided for upload."); 76Log.LogMessage("Begin uploading blobs to Azure account {0} in container {1}.", 128Log.LogMessage("Upload to Azure is complete, a total of {0} items were uploaded.", Items.Length); 132Log.LogErrorFromException(e, true); 135return !Log.HasLoggedErrors;
src\ConfigureInputFeed.cs (2)
20GenerateNugetConfig(EnableFeeds, RepoRoot, Log); 21return !Log.HasLoggedErrors;
src\CreateAzureDevOpsFeed.cs (7)
85Log.LogError($"The CommitSHA should be at least {ShaUsableLength} characters long: CommitSha is '{CommitSha}'. Aborting feed creation."); 114Log.LogMessage(MessageImportance.High, $"Creating the new Azure DevOps artifacts feed '{baseFeedName}'..."); 118Log.LogError($"The name of the new feed ({baseFeedName}) exceeds the maximum feed name size of 64 chars. Aborting feed creation."); 168Log.LogError($"The name of the new feed ({baseFeedName}) exceeds the maximum feed name size of 64 chars. Aborting feed creation."); 182Log.LogMessage(MessageImportance.High, $"Feed '{TargetFeedURL}' created successfully!"); 186Log.LogErrorFromException(e, true); 189return !Log.HasLoggedErrors;
src\GenerateBuildManifest.cs (5)
114collection.TryAddSingleton(Log); 128Log.LogError($"Could not parse '{PublishingVersion}' as a valid publishing infrastructure version."); 150Log.LogMessage(MessageImportance.High, $"Writing build manifest file '{OutputPath}'..."); 155Log.LogErrorFromException(e, true); 158return !Log.HasLoggedErrors;
src\PublishSignedAssets.cs (3)
73Log.LogErrorFromException(e, true); 76return !Log.HasLoggedErrors; 101Log.LogError($"Could not locate '{package.Id}.{package.Version}' at '{localPackagePath}'");
src\PushToBuildStorage.cs (14)
101collection.TryAddSingleton(Log); 122Log.LogMessage(MessageImportance.High, "Performing push to local artifacts storage."); 126Log.LogMessage(MessageImportance.High, "Performing push to Azure DevOps artifacts storage."); 131Log.LogMessage(MessageImportance.High, $"It's no longer necessary to specify a value for the {nameof(AssetsTemporaryDirectory)} property. " + 137Log.LogError($"No items to push. Please check ItemGroup ItemsToPush."); 156Log.LogError($"Could not find file {blobItem.ItemSpec}."); 198Log.LogError($"Could not find file {packagePath.ItemSpec}."); 209Log.LogError($"Could not find file {blobItem.ItemSpec}."); 234Log.LogError($"Could not parse publishing infra version '{PublishingVersion}'"); 260Log.LogErrorFromException(e, true); 263return !Log.HasLoggedErrors; 314Log.LogMessage(MessageImportance.High, 319Log.LogMessage(MessageImportance.High, 324Log.LogMessage(MessageImportance.High,
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
PublishArtifactsInManifestTests.cs (1)
153expectedFailure.Should().Be(task.Log.HasLoggedErrors);
Microsoft.DotNet.Build.Tasks.Packaging (4)
GenerateNuSpec.cs (4)
102Log.LogError(ex.ToString()); 103Log.LogErrorFromException(ex); 106return !Log.HasLoggedErrors; 115Log.LogMessage("Skipping generation of .nuspec because contents are identical.");
Microsoft.DotNet.Build.Tasks.Templating (5)
GenerateFileFromTemplate.cs (5)
63Log.LogError($"File {TemplateFile} does not exist"); 67IDictionary<string, string> values = MSBuildListSplitter.GetNamedProperties(Properties, Log); 74return !Log.HasLoggedErrors; 129Log.LogWarning(null, null, null, TemplateFile, 141Log.LogWarning(null, null, null, TemplateFile,
Microsoft.DotNet.Build.Tasks.VisualStudio (17)
OptProf\FindLatestDrop.cs (2)
34return !Log.HasLoggedErrors; 45Log.LogError($"Error parsing file '{DropListPath}': {e.Message}");
OptProf\GenerateTrainingInputFiles.cs (6)
42return !Log.HasLoggedErrors; 54Log.LogError($"Unable to open the config file '{ConfigurationFile}': {e.Message}"); 60Log.LogError($"Invalid configuration file format: missing 'products' element in '{ConfigurationFile}'."); 65Log.LogError($"Invalid configuration file format: missing 'assemblies' element in '{ConfigurationFile}'."); 70Log.LogError($"Directory specified in InsertionDirectory does not exist: '{InsertionDirectory}'."); 73if (Log.HasLoggedErrors)
OptProf\GenerateTrainingPropsFile.cs (2)
38return !Log.HasLoggedErrors; 46Log.LogError($"Invalid value of vsDropName argument: must start with '{ProductDropNamePrefix}'.");
OptProf\GetRunSettingsSessionConfiguration.cs (2)
47return !Log.HasLoggedErrors; 70Log.LogError(e.Message);
Vsix\FinalizeInsertionVsixFile.cs (4)
34return !Log.HasLoggedErrors; 82Log.LogError($"PackageManifest.Installation element not found in manifest of '{VsixFilePath}'"); 89Log.LogWarning($"PackageManifest.Installation element of the manifest does not have Experimental=\"true\": '{VsixFilePath}'"); 98Log.LogWarning($"PackageManifest.Installation element of the manifest specifies SystemComponent attribute: '{VsixFilePath}'");
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
36return !Log.HasLoggedErrors;
Microsoft.DotNet.Build.Tasks.Workloads (15)
CreateVisualStudioWorkload.wix.cs (9)
150string.IsNullOrWhiteSpace(ManifestMsiVersion) ? null : new Version(ManifestMsiVersion), ShortNames, Log, EnableSideBySideManifests); 156Log.LogMessage(MessageImportance.Low, $"Setting {nameof(_supportsMachineArch)} to {manifestPackage.SupportsMachineArch} for {Path.GetFileName(manifestPackage.PackageFileName)}"); 163Log.LogWarning($"{_supportsMachineArch} was previously set to {_supportsMachineArch[manifestPackage.SdkFeatureBand]}"); 182Log.LogError(Strings.ManifestPackageGroupExists, manifestPackage.Id, packageGroup.Name); 238Log.LogMessage($"Pack {sourcePackage} - {string.Join(",", platforms)} could not be found, it will be skipped."); 251ShortNames, Log)); 321Log.LogError(Strings.WorkloadComponentExists, workload.Id, component.Name); 326Log.LogError(Strings.WorkloadComponentExists, workload.Id, previewComponent.Name); 338Log.LogMessage(MessageImportance.Low, string.Format(Strings.BuildExtractingPackage, data.Package.PackagePath));
CreateVisualStudioWorkloadSet.wix.cs (3)
49msiVersion, shortNames: null, Log); 62Log.LogError(Strings.ManifestPackageGroupExists, workloadSetPackage.Id, packageGroup.Name); 65Log.LogMessage(MessageImportance.High, "Extracting workload set");
VisualStudioWorkloadTaskBase.wix.cs (2)
109Log.LogError(e.ToString()); 112return !Log.HasLoggedErrors;
Wix\LinkerToolTask.cs (1)
69Log?.LogMessage(MessageImportance.High, $"Light exited with: {ExitCode}, HasLoggedErrors: {HasLoggedErrors}");
Microsoft.DotNet.Deployment.Tasks.Links (10)
Microsoft.DotNet.Helix.Sdk (148)
AzureDevOpsTask.cs (11)
52Log.LogError(FailureCategory.Build, "This task must be run inside an Azure Pipelines Build"); 78Log.LogErrorFromException(FailureCategory.Helix, ex, true); 81return !Log.HasLoggedErrors; 95ex => Log.LogMessage(MessageImportance.Low, $"Azure Dev Ops Operation failed: {ex}\nRetrying..."), 100Log.LogError(FailureCategory.Helix, ex.ToString()); 111ex => Log.LogMessage(MessageImportance.Normal, $"Azure Dev Ops Operation failed: {ex}\nRetrying..."), 116Log.LogError(FailureCategory.Helix, ex.ToString()); 125Log.LogError( 136Log.LogError(FailureCategory.Build, message); 141Log.LogMessage(MessageImportance.Normal, message); 162Log.LogError(FailureCategory.Helix, $"Request to {req.RequestUri} returned unexpected response: {responseContent}");
CancelHelixJob.cs (11)
28Log.LogMessage($"Attempting to cancel {Jobs.Count()} Helix jobs"); 34Log.LogMessage(MessageImportance.High, $"Cancelling Helix Job {correlationId}"); 45Log.LogMessage(MessageImportance.High, $"Successfully cancelled Helix Job {correlationId} via cancellation token."); 50Log.LogMessage(MessageImportance.High, "'HelixJobCancellationToken' metadata not supplied, will attempt to cancel using Access token. (Token must match user id that started the work)"); 52Log.LogMessage(MessageImportance.High, $"Successfully cancelled Helix Job {correlationId} via access token."); 56Log.LogError($"Cannot cancel job '{job}'; please supply either the Job's cancellation token or the job creator's access token"); 62Log.LogMessage($"Job '{correlationId}' was already cancelled."); 68Log.LogError($"Job '{correlationId}' was not found. Check if you are mixing and matching authenticated and anonymous access, or accessing instantly after job creation"); 72Log.LogErrorFromException(toLog, false); 76if (!Log.HasLoggedErrors) 78Log.LogMessage(MessageImportance.High, $"Successfully cancelled {Jobs.Count()} Helix jobs");
CheckAzurePipelinesTestResults.cs (11)
69Log.LogWarning($"Test run {testRunId} is not in completed state. Will check back in 10 seconds."); 85Log.LogMessage(MessageImportance.Low, $"Test run {testRunId} has not failed."); 122Log.LogError(FailureCategory.Test, $"Test run {testRunId} has one or more failing tests based on run statistics, but I couldn't find the failures."); 150Log.LogError(FailureCategory.Test, $"Test {name} has failed. Check the Test tab or this console log: {workItem.GetMetadata("ConsoleOutputUri")}"); 154Log.LogError(FailureCategory.Test, $"Test {name} has failed. Check the Test tab for details."); 187Log.LogError(FailureCategory.Test, message); 191Log.LogMessage(MessageImportance.High, message); 197Log.LogError(FailureCategory.Helix, "Unable to get test report from build."); 230Log.LogMessage($"TestRun {runId}: Test {testName} has failed and was expected to fail."); 234Log.LogError(FailureCategory.Test, $"TestRun {runId}: Test {testName} has failed and is not expected to fail."); 240Log.LogError(FailureCategory.Test, $"TestRun {runId}: Test {expectedFailure} was expected to fail but did not fail.");
CheckHelixJobStatus.cs (2)
44Log.LogError(FailureCategory.Test, $"Work item {workItemName} in job {jobName} has failed.\nFailure log: {consoleUri}{accessTokenSuffix}"); 51Log.LogMessage($"Mission Control is deprecated. Please set FailOnMissionControlTestFailure to false.");
CreateXHarnessAndroidWorkItems.cs (6)
50collection.TryAddSingleton(Log); 64return !Log.HasLoggedErrors; 78Log.LogError($"App package not found in {apkPath}"); 87Log.LogError($"Unsupported payload file `{fileSystem.GetFileName(apkPath)}`; expecting .apk or .zip"); 102Log.LogError($"{MetadataNames.AndroidPackageName} metadata must be specified when not supplying custom commands"); 189Log.LogMessage(MessageImportance.Low, $"Generated XHarness command: {xharnessRunCommand}");
CreateXHarnessAppleWorkItems.cs (6)
69collection.TryAddSingleton(Log); 86return !Log.HasLoggedErrors; 113Log.LogError($"App bundle not found in {appFolderPath}"); 133Log.LogError($"'{MetadataNames.Target}' metadata must be specified - " + 146Log.LogError($"Invalid value \"{launchTimeoutProp}\" provided in <{MetadataNames.LaunchTimeout}>"); 162Log.LogWarning($"The {MetadataName.ExpectedExitCode} property is ignored in the `apple test` scenario");
CreateXUnitWorkItems.cs (8)
68return !Log.HasLoggedErrors; 93if (!xunitProject.GetRequiredMetadata(Log, "PublishDirectory", out string publishDirectory)) 97if (!xunitProject.GetRequiredMetadata(Log, "TargetPath", out string targetPath)) 101if (!xunitProject.GetRequiredMetadata(Log, "RuntimeTargetFramework", out string runtimeTargetFramework)) 121Log.LogMessage("Adding dotnet cli roll-forward policy."); 131Log.LogMessage($"Adding runtimeconfig and depsfile parameters for assembly {assemblyBaseName}."); 137Log.LogMessage($"Creating work item with properties Identity: {assemblyName}, PayloadDirectory: {publishDirectory}, Command: {command}"); 144Log.LogWarning($"Invalid value \"{XUnitWorkItemTimeout}\" provided for XUnitWorkItemTimeout; falling back to default value of \"00:05:00\" (5 minutes)");
DownloadFromResultsContainer.cs (6)
47if (Log.HasLoggedErrors) 52Log.LogMessage(MessageImportance.High, $"Downloading result files for job {JobId}"); 84Log.LogMessage(MessageImportance.Normal, $"Downloading {file} => {destinationFile} ..."); 95Log.LogWarning($"Work item {workItemName} in Job {JobId} did not upload a result file with path '{file}' "); 125Log.LogWarning($"Failed to download file '{file}' from results container for work item '{workItemName}': {rfe.Message}"); 134Log.LogError(FailureCategory.Build, $"Required parameter {parameter} string was null or empty");
FindDotNetCliPackage.cs (18)
64collection.TryAddSingleton(Log); 72return !Log.HasLoggedErrors; 98Log.LogMessage($"Could not retrieve dotnet cli {PackageType} version {Version} package uri from feed {feed}"); 102Log.LogMessage($"Retrieved dotnet cli {PackageType} version {Version} package uri {SanitizeString(downloadUrl)} from feed {feed}, testing..."); 111Log.LogMessage($"Unable to find dotnet cli {PackageType} version {Version} from feed {feed}"); 121Log.LogMessage($"Unable to access dotnet cli {PackageType} version {Version} from feed {feed}, {SanitizeString(ex.Message)}"); 127Log.LogError(FailureCategory.Build, $"Unable to find dotnet cli {PackageType} version {Version} from any of the specified feeds."); 131if (!Log.HasLoggedErrors) 133Log.LogMessage($"Url {SanitizeString(finalDownloadUrl)} is valid."); 163Log.LogWarning($"Unable to resolve download link from feed {feed}; {SanitizeString(ex.Message)}"); 195Log.LogMessage($"Switched to effective .NET Core version '{productVersionText}' from matching productVersion.txt"); 205Log.LogMessage(MessageImportance.Low, $"Checking for productVersion.txt files under {baseUri}"); 219Log.LogMessage(MessageImportance.Low, $"No *productVersion.txt files found for {Version} under {SanitizeString(baseUri)}"); 248Log.LogMessage(MessageImportance.Low, $"Hit exception in GetAsync(); will retry up to 10 times ({SanitizeString(toLog.Message)})"); 272Log.LogMessage(MessageImportance.Low, $"Hit exception in SendAsync(); will retry up to 10 times ({SanitizeString(toLog.Message)})"); 326Log.LogMessage(MessageImportance.Low, "Resolving latest dotnet cli version."); 334Log.LogMessage(MessageImportance.Low, $"Resolving latest version from url {latestVersionUrl}"); 342Log.LogMessage(MessageImportance.Low, $"Got latest dotnet cli version {version}");
GetHelixWorkItems.cs (3)
41Log.LogMessage($"Getting status of job {jobName}"); 47Log.LogError( 113Log.LogWarningFromException(ex);
HelixTask.cs (9)
42Log.LogMessage(MessageImportance.Low, "No AccessToken provided, using anonymous access to helix api."); 46Log.LogMessage(MessageImportance.Low, "Authenticating to helix api using provided AccessToken"); 65Log.LogError(FailureCategory.Build, "Helix operation returned 'Unauthorized'. Did you forget to set HelixAccessToken?"); 69Log.LogError(FailureCategory.Build, "Helix operation returned 'Forbidden'."); 80Log.LogError(FailureCategory.Build, argEx.Message); 84Log.LogWarning($"{argEx.Message} (FailOnMissingTargetQueue is false, so this is just a warning.)"); 89Log.LogErrorFromException(FailureCategory.Helix, ex, true, true, null); 92return !Log.HasLoggedErrors; 99Log.LogMessage(MessageImportance.Low, $"Checking for job completion failed with: {ex}\nRetrying...");
InstallDotNetTool.cs (7)
85collection.TryAddSingleton(Log); 92Log.LogError("InstallDotNetTool task doesn't accept * in the version"); 112Log.LogMessage($"{Name} v{Version} is already installed"); 122Log.LogMessage($"Installing {Name} v{Version}..."); 160Log.LogMessage($"Executing {DotnetPath} {string.Join(" ", args)}"); 173Log.LogError( 179Log.LogMessage($"{Name} v{Version} installed");
SendHelixJob.cs (34)
169Log.LogError(FailureCategory.Build, "Creator is required when using anonymous access."); 175Log.LogError(FailureCategory.Build, "Creator is forbidden when using authenticated access."); 191Log.LogMessage($"Initialized job definition with type '{Type}', and target queue '{TargetQueue}'"); 196Log.LogMessage($"Setting creator to '{Creator}'"); 201Log.LogMessage($"No Correlation Payloads for Job on {TargetQueue} set"); 205Log.LogMessage($"Adding Correlation Payloads for Job on {TargetQueue}..."); 222Log.LogError(FailureCategory.Build, "SendHelixJob given no WorkItems to send."); 262if (Log.HasLoggedErrors) 267Log.LogMessage(MessageImportance.High, $"Sending Job to {TargetQueue}..."); 270ISentJob job = await def.SendAsync(msg => Log.LogMessageFromText(msg, MessageImportance.Normal), cancellationToken); 292Log.LogMessage($"Added build variable property '{key}' (value: '{value}') to job definition."); 303if (!property.GetRequiredMetadata(Log, MetadataNames.Identity, out string key)) 308if (!property.GetRequiredMetadata(Log, MetadataNames.Value, out string value)) 314Log.LogMessage($"Added property '{key}' (value: '{value}') to job definition."); 320if (!workItem.GetRequiredMetadata(Log, MetadataNames.Identity, out string name)) 327Log.LogWarning($"Work Item named '{name}' contains encoded characters which is not recommended."); 334Log.LogWarning($"Work Item named '{name}' contains unsupported characters and has been renamed to '{cleanedName}'."); 339if (!workItem.GetRequiredMetadata(Log, MetadataNames.Command, out string command)) 344Log.LogMessage(MessageImportance.Low, $"Adding work item '{name}'"); 353Log.LogMessage(MessageImportance.Low, $" Command: '{commands[0]}'"); 361Log.LogMessage(MessageImportance.Low, $" Command File: '{commandFile}'"); 364Log.LogMessage(MessageImportance.Low, $" {c}"); 375Log.LogMessage(MessageImportance.Low, $" Uri Payload: '{payloadUri}'"); 380Log.LogMessage(MessageImportance.Low, $" Directory Payload: '{payloadDirectory}'"); 385Log.LogMessage(MessageImportance.Low, $" Archive Payload: '{payloadArchive}'"); 390Log.LogMessage(MessageImportance.Low, " Empty Payload"); 400Log.LogMessage(MessageImportance.Low, $" Timeout: '{timeout}'"); 404Log.LogWarning($"Timeout value '{timeoutString}' could not be parsed."); 409Log.LogMessage(MessageImportance.Low, " Default Timeout"); 514Log.LogMessage(MessageImportance.Low, $"Adding Correlation Payload URI '{uri}', destination '{destination}'"); 534Log.LogMessage( 554Log.LogMessage( 561Log.LogMessage( 568Log.LogError(FailureCategory.Build, $"Correlation Payload '{path}' not found.");
StopAzurePipelinesTestRun.cs (1)
26Log.LogMessage(MessageImportance.High, $"Stopping Azure Pipelines Test Run {TestRunName} (Results: {CollectionUri}{TeamProject}/_build/results?buildId={BuildId}&view=ms.vss-test-web.build-test-results-tab )");
WaitForHelixJobCompletion.cs (8)
45Log.LogMessage(MessageImportance.High, $"Waiting for completion of job {jobName} on {queueName}{detailsUrlWhereApplicable}"); 60Log.LogError($"Helix encountered job-level error(s) for this job ({errorMsgs}). Please contact dnceng with this information."); 69Log.LogMessage(MessageImportance.High, $"Job {jobName} on {queueName} is completed with {pf.Total} finished work items."); 73Log.LogMessage($"Job {jobName} on {queueName} is not yet completed with Pending: {pf.Working}, Finished: {pf.Total - pf.Working}"); 84Log.LogWarning($"{nameof(CancelHelixJobsOnTaskCancellation)} is set to 'true', but no value was provided for {nameof(helixJobCancellationToken)}"); 87Log.LogWarning($"Build task was cancelled while waiting on job '{jobName}'. Attempting to cancel this job in Helix..."); 91Log.LogWarning($"Successfully cancelled job '{jobName}'"); 96Log.LogWarning($"Job '{jobName}' was already cancelled.");
XharnessTaskBase.cs (7)
69Log.LogError($"Invalid value \"{testTimeoutProp}\" provided in <{MetadataName.TestTimeout}>"); 79Log.LogError($"Invalid value \"{workItemTimeoutProp}\" provided in <{MetadataName.WorkItemTimeout}>"); 91Log.LogWarning( 107Log.LogMessage($"Creating work item with properties Identity: {workItemName}, Payload: {payloadArchivePath}, Command: {command}"); 140Log.LogMessage($"Zip archive '{outputZipPath}' already exists, overwriting.."); 155Log.LogMessage($"App payload '{workItemName}` has already been zipped"); 159Log.LogMessage($"Adding the XHarness job scripts into the payload archive");
Microsoft.DotNet.NuGetRepack.Tasks (18)
src\ReplacePackageParts.cs (13)
76return !Log.HasLoggedErrors; 92Log.LogError($"{nameof(Parts)} and {nameof(ReplacementFiles)} lists must have the same length."); 137Log.LogError($"'{SourcePackage}' has multiple .nuspec files in the root"); 158Log.LogError($"'{SourcePackage}' has invalid nuspec: missing 'metadata' element"); 165Log.LogError($"'{SourcePackage}' has invalid nuspec: missing 'id' element"); 173Log.LogError($"'{SourcePackage}' has invalid nuspec: missing 'version' element"); 179Log.LogError($"Package NuSpec specifies an invalid package version: '{packageVersion}'"); 198Log.LogError($"Failed to open replacement file '{replacementFilePath}': {e.Message}"); 209Log.LogMessage(MessageImportance.Low, $"Part '{relativePath}' of package '{SourcePackage}' replaced with '{replacementFilePath}'."); 216Log.LogError($"'{SourcePackage}' has no .nuspec file in the root"); 227Log.LogWarning($"File '{partName}' not found in package '{SourcePackage}'"); 257Log.LogError($"Invalid package version specified in {nameof(NewVersion)} parameter: '{NewVersion}'"); 267Log.LogError($"Invalid package version suffix specified in {nameof(NewVersionSuffix)} parameter: '{NewVersionSuffix}'");
src\UpdatePackageVersionTask.cs (5)
42return !Log.HasLoggedErrors; 69Log.LogError($"Invalid value for task argument {nameof(VersionKind)}: '{VersionKind}'. Specify 'release' or 'prerelease' or leave empty."); 81Log.LogMessage(MessageImportance.High, $"Package '{packageId}' depends on a pre-release package '{dependencyId}, {dependencyVersion}'"); 98Log.LogErrorFromException(inner); 103Log.LogErrorFromException(e);
Microsoft.DotNet.SignTool (36)
src\SignToolTask.cs (36)
176return !Log.HasLoggedErrors; 183Log.LogMessage(MessageImportance.High, "SignToolTask execution finished."); 191Log.LogWarning(subcategory: null, 208Log.LogError($"MSBuild was not found at this path: '{MSBuildPath}'."); 214Log.LogError($"DotNet was not found at this path: '{DotNetPath}'."); 220Log.LogWarning($"TempDir ('{TempDir}' is not rooted, this can cause unexpected behavior in signtool. Please provide a fully qualified 'TempDir' path."); 226Log.LogError($"An incorrect full path to 'sn.exe' was specified: {SNBinaryPath}"); 232Log.LogError($"WixToolsPath ('{WixToolsPath}') does not exist."); 238if (Log.HasLoggedErrors) return; 245if (Log.HasLoggedErrors) return; 248var signTool = DryRun ? new ValidationOnlySignTool(signToolArgs, Log) : (SignTool)new RealSignTool(signToolArgs, Log); 261Log, 267Log.LogError($"Existing signing container cache no longer supported."); 273if (Log.HasLoggedErrors) return; 277Log, 288if (Log.HasLoggedErrors) return; 300Log.LogMessage(MessageImportance.High, "SignToolTask starting."); 301Log.LogMessage(MessageImportance.High, $"DryRun: {DryRun}"); 302Log.LogMessage(MessageImportance.High, $"Signing mode: { (TestSign ? "Test" : "Real") }"); 303Log.LogMessage(MessageImportance.High, $"MicroBuild signing logs will be in (Signing*.binlog): {LogDir}"); 304Log.LogMessage(MessageImportance.High, $"MicroBuild signing configuration will be in (Round*.proj): {TempDir}"); 328Log.LogError($"Paths specified in {nameof(ItemsToSign)} must be absolute: '{itemToSign}'."); 344Log.LogError($"All {nameof(ItemsToSign)} must be within the cone of a single directory."); 386Log.LogError($"Value of {nameof(FileExtensionSignInfo)} is invalid: '{extension}'"); 392Log.LogError($"CertificateName metadata of {nameof(FileExtensionSignInfo)} is invalid: '{certificate}'"); 404Log.LogError($"Multiple certificates for extension '{extension}' defined for CollisionPriorityId '{signInfo.CollisionPriorityId}'. There should be one certificate per extension per collision priority id."); 433Log.LogError($"An invalid strong name was specified in {nameof(StrongNameSignInfo)}: '{strongName}'"); 439Log.LogError($"PublicKeyToken metadata of {nameof(StrongNameSignInfo)} is invalid: '{publicKeyToken}'"); 445Log.LogMessage($"CertificateName metadata of {nameof(StrongNameSignInfo)} is invalid or empty: '{certificateName}'"); 452Log.LogWarning($"CertificateName & ItemSpec metadata of {nameof(StrongNameSignInfo)} shouldn't be both '{SignToolConstants.IgnoreFileCertificateSentinel}'"); 490Log.LogError($"{nameof(FileSignInfo)} should specify file name and extension, not a full path: '{fileName}'"); 496Log.LogError($"TargetFramework metadata of {nameof(FileSignInfo)} is invalid: '{targetFramework}'"); 502Log.LogError($"CertificateName metadata of {nameof(FileSignInfo)} is invalid: '{certificateName}'"); 508Log.LogError($"PublicKeyToken metadata for {nameof(FileSignInfo)} is invalid: '{publicKeyToken}'"); 515Log.LogError($"Duplicate entries in {nameof(FileSignInfo)} with the same key ('{fileName}', '{publicKeyToken}', '{targetFramework}'): '{existingCert}', '{certificateName}'.");
Microsoft.DotNet.SourceBuild.Tasks (18)
src\ReadNuGetPackageInfos.cs (1)
42return !Log.HasLoggedErrors;
src\UsageReport\ValidateUsageAgainstBaseline.cs (5)
68return !Log.HasLoggedErrors; 90Log.LogError( 107Log.LogMessage( 116Log.LogMessage( 144Log.LogMessage(
src\UsageReport\WritePackageUsageData.cs (10)
87Log.LogMessage(MessageImportance.High, "Writing package usage data..."); 100Log.LogMessage(MessageImportance.Low, "Finding set of RIDs..."); 107Log.LogMessage(MessageImportance.Low, "Reading package identities..."); 138Log.LogMessage(MessageImportance.Low, "Finding project.assets.json files..."); 148Log.LogMessage(MessageImportance.Low, "Archiving project.assets.json files..."); 174Log.LogMessage(MessageImportance.Low, "Reading usage info..."); 224Log.LogMessage(MessageImportance.Low, "Searching for unused packages..."); 242Log.LogMessage(MessageImportance.Low, $"Writing data to '{DataFile}'..."); 257Log.LogMessage( 261return !Log.HasLoggedErrors;
src\UsageReport\WriteUsageReports.cs (2)
165return !Log.HasLoggedErrors; 196Log.LogError($"No creation time property found in snapshot {snapshot.Path}");
Microsoft.DotNet.SwaggerGenerator.MSBuild (8)
GenerateSwaggerCode.cs (8)
44Log.LogErrorFromException(ex, true, true, null); 47return !Log.HasLoggedErrors; 59Log.LogMessage(MessageImportance.Low, $"Reading swagger document {SwaggerDocumentUri}"); 65Log.LogWarning(null, null, null, error.Pointer, 0, 0, 0, 0, error.Message); 70Log.LogMessage(MessageImportance.Low, $"Generating client code model"); 74Log.LogMessage(MessageImportance.Low, $"Generating code files for language '{options.LanguageName}'"); 78Log.LogMessage(MessageImportance.High, $"Generating {SwaggerDocumentUri} -> {OutputDirectory}"); 88Log.LogMessage(MessageImportance.Normal, $"Writing file '{file.FullName}'");
Microsoft.DotNet.VersionTools.Tasks (12)
BaseDependenciesTask.cs (3)
75Trace.Listeners.MsBuildListenedInvoke(Log, TraceListenedExecute); 77return !Log.HasLoggedErrors; 296Log.LogError(
LocalUpdatePublishedVersions.cs (1)
47Trace.Listeners.MsBuildListenedInvoke(Log, () =>
SubmitPullRequest.cs (2)
90Trace.Listeners.MsBuildListenedInvoke(Log, TraceListenedExecute); 91return !Log.HasLoggedErrors;
UpdatePublishedVersions.cs (1)
39Trace.Listeners.MsBuildListenedInvoke(Log, () =>
UpdateToRemoteDependencies.cs (3)
30Log.LogMessage( 49Log.LogMessage( 55Log.LogMessage(MessageImportance.Normal, "No changes performed.");
VerifyDependencies.cs (2)
23Log.LogError( 32Log.LogError($"Dependencies invalid: {line}");
Microsoft.DotNet.XliffTasks (4)
Tasks\EnsureAllResourcesTranslated.cs (1)
50Log.LogErrorInFile(sourceDocumentPath, $"Found {untranslatedResourceSet.Count} untranslated resource(s): {untranslatedResourceNames}");
Tasks\TranslateSource.cs (1)
30Log.LogErrorInFile(XlfFile.ItemSpec, validationError.LineNumber, validationError.Message);
Tasks\XlfTask.cs (2)
25Log.LogErrorFromException(ex, showStackTrace: false, showDetail: false, file: ex.RelatedFile); 28return !Log.HasLoggedErrors;
Microsoft.Extensions.ApiDescription.Client (3)
GetOpenApiReferenceMetadata.cs (3)
66Log.LogError(Resources.FormatInvalidEmptyMetadataValue("CodeGenerator", type, item.ItemSpec)); 104Log.LogError(Resources.FormatDuplicateFileOutputPaths(outputPath)); 132return !Log.HasLoggedErrors;
Microsoft.Extensions.ApiDescription.Client.Tests (10)
GetCurrentOpenApiReferenceTest.cs (1)
42Assert.False(task.Log.HasLoggedErrors);
GetOpenApiReferenceMetadataTest.cs (9)
51Assert.False(task.Log.HasLoggedErrors); 109Assert.False(task.Log.HasLoggedErrors); 167Assert.False(task.Log.HasLoggedErrors); 225Assert.False(task.Log.HasLoggedErrors); 278Assert.True(task.Log.HasLoggedErrors); 324Assert.True(task.Log.HasLoggedErrors); 375Assert.False(task.Log.HasLoggedErrors); 438Assert.False(task.Log.HasLoggedErrors); 535Assert.False(task.Log.HasLoggedErrors);
Microsoft.Maui.Resizetizer (41)
AsyncTask.cs (1)
50 private new TaskLoggingHelper Log => base.Log;
CreatePartialInfoPlistTask.cs (2)
66 Log.LogErrorFromException(ex); 69 return !Log.HasLoggedErrors;
DetectInvalidResourceOutputFilenamesTask.cs (4)
41 Log.LogErrorFromException(ex); 64 Log.LogError(builder.ToString()); 66 Log.LogMessage(builder.ToString()); 70 return !Log.HasLoggedErrors;
GeneratePackageAppxManifest.cs (3)
63 Log.LogErrorFromException(ex); 66 return !Log.HasLoggedErrors; 108 Log.LogError(ErrorVersionNumberCombination, ApplicationDisplayVersion, ApplicationVersion);
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);
GenerateSplashAssets.cs (5)
29 Log.LogMessage(MessageImportance.Low, $"Splash Screen: Intermediate Path " + IntermediateOutputPath); 33 Log.LogMessage(MessageImportance.Low, $"Splash Screen: " + dpi); 37 Log.LogMessage(MessageImportance.Low, $"Splash Screen Destination: " + destination); 42 return !Log.HasLoggedErrors; 47 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);
GenerateTizenManifest.cs (3)
75 Log.LogErrorFromException(ex); 78 return !Log.HasLoggedErrors; 115 Log.LogWarning($"ApplicationDisplayVersion '{ApplicationDisplayVersion}' was not a valid version for Tizen");
GetMauiAssetPath.cs (1)
70 return !Log.HasLoggedErrors;
ResizetizeImages.cs (3)
156 Log.LogError(builder.ToString()); 158 Log.LogMessage(builder.ToString()); 265 Log?.LogMessage(message);
TizenSplashUpdater.cs (1)
75 Log.LogWarning($"Unable to parse color for '{splashInfo.Filename}'.");
PortableTask (5)
ShowItems.cs (5)
23Log.LogError("No AssemblyFileVersionAttribute found on core assembly"); 27Log.LogMessage($"Core assembly file version: {coreAssemblyFileVersion.Version}"); 32Log.LogError("Items was null"); 36Log.LogMessage("No Items"); 42Log.LogMessage(item.ItemSpec);
PresentationBuildTasks (85)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (6)
81TaskHelper.DisplayLogo(Log, nameof(FileClassifier)); 115errorId = Log.ExtractMessageCode(e.Message, out message); 123Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null); 131Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 279Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), targetType); 290Log.LogErrorWithCodeFromResources(nameof(SR.InvalidCulture), Culture);
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
211Log.LogWarningFromException(e); 217Log.LogErrorFromException(e); 326Log.LogWarningFromException(e); 333Log.LogErrorFromException(e);
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (24)
95TaskHelper.DisplayLogo(Log, nameof(MarkupCompilePass1)); 127Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 134Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting)); 148Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.AnalysisResult), CompilerAnalyzer.AnalyzeResult); 158Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.RecompiledXaml), CompilerAnalyzer.RecompileMarkupPages[i]); 178Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 188errorId = Log.ExtractMessageCode(e.Message, out message); 196Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null); 202Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 216Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompileSucceed_Pass1)); 905Log.LogErrorWithCodeFromResources(nameof(SR.MultipleSplashScreenImages)); 926Log.LogErrorWithCodeFromResources(nameof(SR.AppDefIsNotRequired)); 941Log.LogErrorWithCodeFromResources(nameof(SR.MutlipleApplicationFiles)); 946Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ApplicationDefinitionFile), ApplicationFile); 950Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), ApplicationFile); 985Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType); 1003Log.LogErrorWithCodeFromResources(nameof(SR.WrongLocalizationPropertySetting_Pass1)); 1045Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), filePath); 1137Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReferenceFile), refpath); 1207Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 1208Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 1230compilerWrapper.TaskLogger = Log; 1480Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec); 1489Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (18)
78TaskHelper.DisplayLogo(Log, nameof(MarkupCompilePass2)); 89Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir); 96Log.LogErrorWithCodeFromResources(nameof(SR.WrongPropertySetting)); 133Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone)); 142errorId = Log.ExtractMessageCode(e.Message, out message); 150Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null); 157Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 207Log.LogMessageFromResources(nameof(SR.CompileSucceed_Pass2)); 566Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.PreparingCompile)); 567Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType); 579Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefAppDefFile), localApplicationFile); 594Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefMarkupPage), localPageFile); 629Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation)); 643compilerWrapper.TaskLogger = Log; 685Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.InternalTypeHelperNotRequired), _internalTypeHelperFile); 732Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 751Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec); 827Log.LogErrorWithCodeFromResources(nameof(SR.TargetIsNotSupported), outputType);
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (5)
56TaskHelper.DisplayLogo(Log, nameof(MergeLocalizationDirectives)); 73Log.LogMessageFromResources(nameof(SR.CommentFileGenerating), _outputFile); 89Log.LogMessageFromResources(nameof(SR.CommentFileGenerated), _outputFile); 101Log.LogErrorFromException(e); 108Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (10)
148TaskHelper.DisplayLogo(Log, nameof(ResourcesGenerator)); 164Log.LogErrorWithCodeFromResources(nameof(SR.MoreResourcesFiles)); 178Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerating), resourcesFile); 192Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReadResourceFile), resFileName); 193Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourceId), resourceId); 200Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ResourcesGenerated), resourcesFile); 212string errorId = Log.ExtractMessageCode(e.Message, out message); 220Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null); 227Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 307Log.LogErrorWithCodeFromResources(nameof(SR.FileNotFound), strFileName);
Microsoft\Build\Tasks\Windows\UidManager.cs (15)
74TaskHelper.DisplayLogo(Log, nameof(UidManager)); 78Log.LogErrorWithCodeFromResources(nameof(SR.SourceFileNameNeeded)); 88Log.LogErrorWithCodeFromResources(nameof(SR.BadUidTask), _taskAsString); 110errorId = Log.ExtractMessageCode(e.Message, out message); 118Log.LogError(null, errorId, null, null, 0, 0, 0, 0, message, null); 126Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError)); 215Log.LogMessageFromResources(nameof(SR.CheckingUids), inputFile.ItemSpec); 343Log.LogMessageFromResources(nameof(SR.FilesRemovedUid), countGoodFiles); 347Log.LogMessageFromResources(nameof(SR.FilesUpdatedUid), countGoodFiles); 351Log.LogMessageFromResources(nameof(SR.FilesPassedUidCheck), countGoodFiles); 355Log.LogErrorWithCodeFromResources(nameof(SR.FilesFailedUidCheck), _markupFiles.Length - countGoodFiles); 408Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath); 415Log.LogErrorWithCodeFromResources(nameof(SR.IntermediateDirectoryError), _backupPath); 445Log.LogErrorWithCodeFromResources( 462Log.LogErrorWithCodeFromResources(
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (3)
67TaskHelper.DisplayLogo(Log, nameof(UpdateManifestForBrowserApplication)); 144Log.LogErrorFromException(e); 151Log.LogErrorWithCodeFromResources(nameof(SR.NonClsError));
SemanticSearch.BuildTask (5)
GenerateFilteredReferenceAssembliesTask.cs (5)
74Log.LogError($"GenerateFilteredReferenceAssembliesTask failed with exception:{Environment.NewLine}{e}"); 77return !Log.HasLoggedErrors; 94Log.LogWarning($"Assembly '{assemblyName}' not found among project references"); 105Log.LogWarning($"Invalid API pattern at {specPath} line {line}: {message}"); 118Log.LogMessage($"Output file '{filteredReferencePath}' already exists.");
TaskWithDependency (1)
LogStringFromDependency.cs (1)
14Log.LogMessage($"Message from dependency: {Alpha.GetString()}");