575 references to LogError
Aspire.Hosting.Tasks (2)
RunAspireCliCommand.cs (2)
69Log.LogError("An executable path is required."); 75Log.LogError("The command timeout must be greater than zero.");
Crossgen2Tasks (17)
RunReadyToRunCompiler.cs (17)
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);
ILCompiler.Build.Tasks (1)
ComputeManagedAssembliesToCompileToNative.cs (1)
146Log.LogError($"Overriding System.Private.CoreLib.dll with a newer version is not supported. Attempted to use {itemSpec} instead of {frameworkItem.ItemSpec}.");
ILLink.Tasks (11)
CreateRuntimeRootDescriptorFile.cs (11)
105Log.LogError($"File '{namespaceFilePath}' doesn't exist."); 112Log.LogError($"File '{mscorlibFilePath}' doesn't exist."); 119Log.LogError($"File '{cortypeFilePath}' doesn't exist."); 126Log.LogError($"File '{rexcepFilePath}' doesn't exist."); 135Log.LogError($"File '{iLLinkTrimXmlFilePath}' doesn't exist."); 202Log.LogError($"Could not figure out feature switch status in '{typeFile}' for line {def}."); 210Log.LogError($"BEGIN_ILLINK_FEATURE_SWITCH is not formatted correctly '{typeFile}' for line {def}."); 224Log.LogError($"Could not figure out feature switch status in '{typeFile}' for line {def}."); 541Log.LogError($"Unknown namespace '{classNamespace}'."); 621log.LogError($"Could not figure out ifdefs in '{filePath}' around line {linenum}."); 638log.LogError($"Could not figure out ifdefs in '{filePath}' around line {linenum}.");
installer.tasks (7)
GenerateFileVersionProps.cs (1)
115Log.LogError(
GenerateRunScript.cs (3)
30Log.LogError("Please provide at least one test command to execute via the RunCommands property."); 36Log.LogError($"Runner script template {TemplatePath} was not found."); 54Log.LogError($"Generating runner scripts with extension '{extension}' is not supported.");
GenerateTestSharedFrameworkDepsFile.cs (1)
37Log.LogError($"{nameof(SharedFrameworkDirectory)} '{SharedFrameworkDirectory}' does not exist.");
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (2)
88Log.LogError($"Failed to parse response from {c.Url}"); 121Log.LogError($"Unable to find exactly one TPN for {miscount.Key}");
Microsoft.AspNetCore.Components.Testing.Tasks (4)
GenerateE2EManifest.cs (4)
82Log.LogError( 91Log.LogError( 157Log.LogError( 166Log.LogError("Could not find published app at '{0}'. Expected '{1}' or '{2}'.",
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
835Log.LogError(message);
Microsoft.Build.Tasks.Core (7)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
147_taskLogger.LogError(ResourceUtilities.GetResourceString("ResolveAssemblyReference.AssemblyFoldersConfigFileMalformed"), _assemblyFolderConfigFile, e.Message);
Copy.cs (3)
294Log.LogError(CreatesDirectory, originalDestinationFolder); 313Log.LogError(FileComment, sourceFileState.Path, destinationFileState.Path); 969Log.LogError(FileComment, sourceFileState.Path.OriginalValue, destinationFileState.Path.OriginalValue);
Exec.cs (1)
379Log.LogError(singleLine);
GenerateResource.cs (2)
1211Log.LogError("ResGen.exe not supported on .NET Core MSBuild"); 3394_logger.LogError($"{format} not supported on .NET Core MSBuild");
Microsoft.Build.Tasks.Git (4)
GetUntrackedFiles.cs (1)
38Log.LogError(Resources.PathMustBeAbsolute);
RepositoryTask.cs (3)
97Log.LogError(Resources.ErrorReadingGitRepositoryInformation, e.Message); 144Log.LogError(Resources.ErrorReadingGitRepositoryInformation, e.Message); 175Log.LogError(message);
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
1215Log.LogError(errorOrOutMessage);
Microsoft.DotNet.Arcade.Sdk (46)
parent\Common\Tasks\ExecWithRetries.cs (2)
94Log.LogError("Child Exec task failed to execute."); 108Log.LogError(message);
src\CalculateAssemblyAndFileVersions.cs (5)
51Log.LogError($"VersionPrefix is not a valid 3-part version: {VersionPrefix}"); 57Log.LogError("Invalid value of VersionBaseShortDate"); 74Log.LogError($"The minor version specified in {nameof(VersionPrefix)} must be at most {MaxMinor}: {VersionPrefix}"); 80Log.LogError($"The patch version specified in {nameof(VersionPrefix)} must be at most {MaxBuild}: {VersionPrefix}"); 99Log.LogError($"Invalid format of {nameof(BuildNumber)}: {BuildNumber}");
src\CheckRequiredDotNetVersion.cs (6)
32Log.LogError($"Invalid version: {SdkVersion}"); 44Log.LogError($"Error accessing file '{globalJsonPath}': {e.Message}"); 73Log.LogError($"Error reading file '{globalJsonPath}': {e.Message}"); 81Log.LogError($"Unable to determine dotnet version from file '{globalJsonPath}'."); 88Log.LogError($"DotNet version specified in '{globalJsonPath}' is invalid: {minSdkVersionStr}."); 94Log.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 (2)
32Log.LogError($"Invalid version: '{Left}'"); 38Log.LogError($"Invalid version: '{Right}'");
src\DownloadFile.cs (5)
56Log.LogError($"Invalid task parameter value: Retries={Retries}"); 62Log.LogError($"Invalid task parameter value: RetryDelayMilliseconds={RetryDelayMilliseconds}"); 75Log.LogError($"Invalid task parameter value: {nameof(Uri)} and {nameof(Uris)} are empty."); 112Log.LogError($"Download from all targets failed. List of attempted targets: {string.Join(", ", Uris.Select(m => m.ItemSpec))}"); 115Log.LogError($"Failed to download file using addresses in {nameof(Uri)} and/or {nameof(Uris)}.");
src\GenerateChecksums.cs (3)
34Log.LogError($"Metadata 'DestinationPath' is missing for item '{item.ItemSpec}'."); 42Log.LogError($"The file '{item.ItemSpec}' does not exist."); 49Log.LogError($"The file '{item.ItemSpec}' does not exist.");
src\GenerateResxSource.cs (5)
83Log.LogError("ResourceName not specified"); 102Log.LogError($"GenerateResxSource doesn't support language: '{Language}'"); 115Log.LogError("Missing resource name"); 122Log.LogError($"Missing resource value: '{name}'"); 128Log.LogError($"Empty resource name");
src\GenerateSourcePackageSourceLinkTargetsFile.cs (4)
54Log.LogError($"Directory '{ProjectDirectory}' contains source roots (e.g. git submodules), which is not supported."); 76Log.LogError($"No SourceRoot with SourceLinkUrl contains directory '{ProjectDirectory}'."); 82Log.LogError($"SourceLinkUrl must contain exactly one '*': '{innerMostRootSourceLinkUrl}'"); 88Log.LogError($"SourceRoot must end with a directory separator: '{innerMostRootItemSpec}'");
src\GetLicenseFilePath.cs (2)
59Log.LogError($"No license file found in '{Directory}'."); 63Log.LogError($"Multiple license files found in '{Directory}': '{string.Join("', '", matches)}'.");
src\InstallDotNetCore.cs (6)
62Log.LogError($"Unable to find dotnet install script '{DotNetInstallScript}' exiting"); 96Log.LogError($"{nameof(VersionsPropsPath)} must be specified to resolve version identifiers."); 103Log.LogError($"Unable to find the properties file '{VersionsPropsPath}' used to resolve version identifiers."); 133Log.LogError($"Unable to find '{item.Key}' in properties defined in '{VersionsPropsPath}'"); 137Log.LogError($"Unable to parse '{item.Key}' from properties defined in '{VersionsPropsPath}'"); 192Log.LogError($"dotnet-install failed for runtime '{runtime}' version '{normalizedVersion}' (exit code {process.ExitCode}). Command: {dotNetInstallScript} {safeArguments}");
src\LocateDotNet.cs (3)
45Log.LogError("Unable to locate dotnet because the PATH environment variable is not set."); 68Log.LogError($"Unable to determine dotnet version from file '{globalJsonPath}'."); 80Log.LogError($"Unable to find dotnet with SDK version '{sdkVersion}'");
src\SetCorFlags.cs (1)
59Log.LogError($"Invalid flags: '{value}'");
src\SingleError.cs (1)
32Log.LogError(Text);
src\ValidateLicense.cs (1)
41Log.LogError($"License file content '{LicensePath}' doesn't match the expected license '{ExpectedLicensePath}'.");
Microsoft.DotNet.Build.Manifest (8)
BlobArtifactModelFactory.cs (1)
38_log.LogError($"Missing 'RelativeBlobPath' property on blob {item.ItemSpec}");
BuildModelFactory.cs (6)
95_log.LogError($"Missing 'Kind' property on artifact {item.ItemSpec}. Possible values are 'Blob', 'PDB', 'Package'."); 154_log.LogError("Missing 'location' property from ManifestBuildData"); 186_log.LogError($"Could not open asset manifest file: {assetManifestPath}"); 194_log.LogError($"Could not parse asset manifest file: {assetManifestPath}"); 252_log.LogError("No manifests to merge."); 335_log.LogError($"Build identity properties mismatch in manifest '{identity.Name}': {string.Join("; ", differences)}");
PdbArtifactModelFactory.cs (1)
36_log.LogError($"Missing 'RelativePdbPath' property on pdb {item.ItemSpec}");
Microsoft.DotNet.Build.Tasks.Feed (12)
src\PushToBuildStorage.cs (12)
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."); 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}."); 391Log.LogError($"Could not determine relative path from '{FutureArtifactPublishBasePath}' to '{artifactDestinationPath}'.");
Microsoft.DotNet.Build.Tasks.FileCatalog (2)
GenerateFileCatalog.cs (2)
34Log.LogError("OutputPath must be specified."); 68Log.LogError("File not found: '{0}'.", path);
Microsoft.DotNet.Build.Tasks.Installers (30)
parent\Common\Tasks\ExecWithRetries.cs (2)
94Log.LogError("Child Exec task failed to execute."); 108Log.LogError(message);
src\CreateRpmPackage.cs (4)
153Log.LogError($"File trigger '{trigger.ItemSpec}' does not specify any paths in its 'Paths' metadata."); 159Log.LogError($"File trigger script '{trigger.ItemSpec}' does not exist."); 173Log.LogError( 219Log.LogError(
src\CreateWixBuildWixpack.cs (8)
243Log.LogError($"Error ingesting variables from include file {filePath.OriginalValue}: {ex.Message}"); 536Log.LogError($"Source file not found: {sourceFile.ItemSpec}"); 596Log.LogError($"Multiple unprocessed tokens found in source: {source}."); 607Log.LogError($"Unprocessed token: {pattern} in {xmlPath}"); 613Log.LogError($"Unsupported source format: {source}"); 651Log.LogError($"Error processing {copiedXmlPath}: {ex.Message}"); 703Log.LogError($"Included file not found: {includeFilePath}"); 721Log.LogError($"Unmatched $() in path: {path}");
src\CreateWixCommandPackageDropBase.cs (5)
167Log.LogError($"Wix source file extension {wixSrcFileExtension} is not supported."); 204Log.LogError($"Failed to open the wixobj file '{wixObjFilePath}'"); 263Log.LogError($"No fields in row ('{xpath}') of document '{doc.BaseUri}'"); 344Log.LogError($"Could not locate a file within {row}"); 348Log.LogError($"Could not locate file {oldPath}. Please ensure the file exists and/or pass AdditionalBasePaths for non-rooted file paths.");
src\GenerateCurrentVersion.cs (5)
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);
src\GenerateMsiVersion.cs (3)
48Log.LogError("Either BuildNumber or BuildNumberMajor and BuildNumberMinor are required parameters."); 53Log.LogError("You must specify either BuildNumber or BuildNumberMajor and BuildNumberMinor, you cannot specify both parameters."); 58Log.LogError("If you specify a BuildNumberMajor, you must also specify the BuildNumberMinor.");
src\StabilizeWixFileId.cs (3)
68Log.LogError($"{nameof(FileElementToStabilize)} {file.ItemSpec} has null/empty ReplacementId metadata."); 83Log.LogError( 94Log.LogError($"Match has no Id attribute: {matchingFileElements[0]}");
Microsoft.DotNet.Build.Tasks.Packaging (91)
ApplyPreReleaseSuffix.cs (2)
54Log.LogError($"{nameof(OriginalPackages)} argument must be specified"); 60Log.LogError($"{nameof(PreReleaseSuffix)} argument must be specified");
CreateTrimDependencyGroups.cs (2)
59Log.LogError("Dependencies argument must be specified"); 64Log.LogError("PackageIndexes argument must be specified");
GenerateNuSpec.cs (1)
102Log.LogError(ex.ToString());
GeneratePackageReport.cs (5)
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 (4)
52Log.LogError("Dependencies argument must be specified"); 58Log.LogError("PackageID argument must be specified"); 64Log.LogError("RuntimeJson argument must be specified"); 185Log.LogError("Dependency {0} has invalid version {1}", dependency.ItemSpec, dependencyVersionString);
GetApplicableAssetsFromPackageReports.cs (2)
52Log.LogError("PackageReports argument must be specified"); 58Log.LogError("TargetMoniker argument must be specified");
GetApplicableAssetsFromPackages.cs (7)
72Log.LogError("PackageAssets argument must be specified"); 78Log.LogError("TargetMoniker argument must be specified"); 115Log.LogError($"Could not locate compile assets for any of the frameworks {String.Join(";", compileFxs.Select(fx => fx.ToString()))}"); 139Log.LogError($"Could not locate runtime assets for any of the frameworks {String.Join(";", runtimeFxs.Select(fx => fx.ToString()))}"); 158Log.LogError($"{packageItem.TargetPath} is missing TargetPath metadata"); 169Log.LogError($"Could not parse File {file.ItemSpec}. {ex}"); 185Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageFile.SourcePath} have the same TargetPath {packageSpecificTargetPath}.");
GetAssemblyReferences.cs (1)
52Log.LogError($"File {assemblyItem.ItemSpec} does not exist, ensure you have built libraries before building the package.");
GetInboxFrameworks.cs (2)
45Log.LogError("PackageIndexes argument must be specified"); 51Log.LogError("AssemblyName argument must be specified");
GetLastStablePackage.cs (1)
107Log.LogError($"Could not parse version {versionString} for StablePackage {packageId}");
GetPackageDescription.cs (6)
44Log.LogError("DescriptionFile argument must be specified"); 50Log.LogError("PackageId argument must be specified"); 58Log.LogError("DescriptionFile '{0}' does not exist", descriptionPath); 86Log.LogError("Unable to find description for package {0}", PackageId); 113Log.LogError("Error loading {0}, {1}", descriptionPath, excep); 127Log.LogError("Package {0} has no Description, please add it to {1}", metadata.Name, descriptionPath);
GetPackageDestination.cs (2)
103Log.LogError($"Project is built as {nuGetFx.GetShortFolderName()} but packaged as {packageFx.GetShortFolderName()} and {portableFramework} is not compatible with {nuGetFx.GetShortFolderName()}. To suppress this error you can add <SuppressPackageTargetFrameworkCompatibility Include=\"{packageFx.GetShortFolderName()}\" /> to your project file."); 109Log.LogError($"Project is built as {nuGetFx.GetShortFolderName()} but packaged as {packageFx.GetShortFolderName()} which are not compatible; A {nuGetFx.GetShortFolderName()} asset cannot be referenced by a {packageFx.GetShortFolderName()} project. To suppress this error you can add <SuppressPackageTargetFrameworkCompatibility Include=\"{packageFx.GetShortFolderName()}\" /> to your project file.");
GetPackageVersion.cs (1)
33Log.LogError("Files argument must be specified");
HarvestPackage.cs (6)
188Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}"); 194Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework."); 281Log.LogError($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}."); 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."); 501Log.LogError($"Package path {packagePath} was specified to be harvested but it conflicts with live build{reason}.");
NuGetPack.cs (7)
153Log.LogError("Nuspecs argument must be specified"); 159Log.LogError("OuputDirectory argument must be specified"); 176Log.LogError($"Nuspec {nuspecPath} does not exist"); 229Log.LogError($"Nuspec {nuspecPath} does not contain a valid Id"); 243Log.LogError($"Failed to parse Package Version: '{PackageVersion}' is not a valid version."); 251Log.LogError($"Nuspec {nuspecPath} does not contain a valid version"); 335Log.LogError($"Error when creating nuget {packageType} package from {nuspecPath}. {e}");
NuGetUtility.cs (1)
129public void LogError(string data) => _log.LogError(data);
ValidateFrameworkPackage.cs (3)
52new Action<string>(s => Log.LogError(s)); 76new Action<string>(s => Log.LogError(s)); 92Log.LogError($"Could not find target {targetKey} in {ReportFile}.");
ValidateHarvestVersionIsLatestForRelease.cs (4)
42Log.LogError($"Validation Failed: {packageReport.Id} is harvesting package version {harvestVersion} which belongs to the current package release: {packageReport.Version}"); 49Log.LogError($"Validation Failed: {packageReport.Id} is harvesting assets from package version {harvestVersion} which is not the latest for that package release. Latest package version from that release is {latestPatchVersion}. In order to fix this, run `dotnet msbuild {packageReport.Id}.pkgproj /t:UpdateHarvestVersionOnPackageIndex /p:UpdateStablePackageInfo=true`"); 123Log.LogError($"Failed to parse package version from string: {harvestedFrom}"); 129Log.LogError($"Failed to parse package version from string: {harvestedFrom}");
ValidatePackage.cs (33)
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}"); 158Log.LogError($"Missing target {target} from validation report {ReportFile}"); 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>"}."); 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.");
ValidationTask.cs (1)
117Log.LogError($"Unknown suppression {keyString}");
Microsoft.DotNet.Build.Tasks.TargetFramework (2)
ChooseBestP2PTargetFrameworkTask.cs (2)
111Log.LogError(string.Format(CultureInfo.CurrentCulture, "Project '{0}' targets '{1}'. It cannot be referenced by a project that targets '{2}{3}'.", project.ItemSpec, referencedProjectFrameworkString, projectNuGetFramework.DotNetFrameworkName, projectNuGetFramework.HasPlatform ? "-" + projectNuGetFramework.DotNetPlatformName : string.Empty)); 125logger.LogError(errorMessage);
Microsoft.DotNet.Build.Tasks.Templating (1)
GenerateFileFromTemplate.cs (1)
82Log.LogError($"File {TemplateFile} does not exist");
Microsoft.DotNet.Build.Tasks.VisualStudio (8)
OptProf\FindLatestDrop.cs (1)
49Log.LogError($"Error parsing file '{DropListPath}': {e.Message}");
OptProf\GenerateTrainingInputFiles.cs (4)
58Log.LogError($"Unable to open the config file '{ConfigurationFile}': {e.Message}"); 64Log.LogError($"Invalid configuration file format: missing 'products' element in '{ConfigurationFile}'."); 69Log.LogError($"Invalid configuration file format: missing 'assemblies' element in '{ConfigurationFile}'."); 75Log.LogError($"Directory specified in InsertionDirectory does not exist: '{InsertionDirectory}'.");
OptProf\GenerateTrainingPropsFile.cs (1)
50Log.LogError($"Invalid value of vsDropName argument: must start with '{ProductDropNamePrefix}'.");
OptProf\GetRunSettingsSessionConfiguration.cs (1)
68Log.LogError(e.Message);
Vsix\FinalizeInsertionVsixFile.cs (1)
80Log.LogError($"PackageManifest.Installation element not found in manifest of '{VsixFilePath}'");
Microsoft.DotNet.CMake.Sdk (8)
src\GetCMakeArtifactsFromFileApi.cs (8)
56Log.LogError("CMake File API reply directory does not exist: {0}", replyDir); 64Log.LogError("No CMake File API index files found."); 82Log.LogError("No 'codemodel-v2' found in File API index reply."); 90Log.LogError("Codemodel file not found: {0}", codeModelFile); 101Log.LogError("Failed to deserialize codemodel."); 120Log.LogError("Configuration '{0}' not found in CMake File API response.", Configuration); 128Log.LogError("Configuration '{0}' has no directories or targets.", Configuration); 149Log.LogError("Source directory '{0}' not found in CMake File API response.", SourceDirectory);
Microsoft.DotNet.GenFacades (6)
GenPartialFacadeSourceGenerator.cs (1)
45logger.LogError("There are multiple versions of these assemblies: {0}. Please provide a single version.", string.Join(", ", duplicates));
NotSupportedAssemblyGenerator.cs (3)
35Log.LogError("There are no ref source files."); 59Log.LogError($"File {sourceFile} was not found."); 76Log.LogError($"Invalid LangVersion value '{LangVersion}'");
SourceGenerator.cs (2)
65_logger.LogError("Did not find type '{0}' in any of the seed assemblies.", type); 80_logger.LogError("The type '{0}' is defined in multiple seed assemblies. The multiple assemblies are {1}. If this is intentional, specify the alias for this type and project reference", type, string.Join(", ", seedTypes));
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (2)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (2)
58Log.LogError("Hot reload delta script {0} does not exist", DeltaScript); 67Log.LogError("Hot reload delta script had no 'changes' array");
Microsoft.DotNet.NuGetRepack.Tasks (11)
src\ReplacePackageParts.cs (10)
83Log.LogError($"{nameof(Parts)} and {nameof(ReplacementFiles)} lists must have the same length."); 132Log.LogError($"'{SourcePackage}' has multiple .nuspec files in the root"); 153Log.LogError($"'{SourcePackage}' has invalid nuspec: missing 'metadata' element"); 160Log.LogError($"'{SourcePackage}' has invalid nuspec: missing 'id' element"); 168Log.LogError($"'{SourcePackage}' has invalid nuspec: missing 'version' element"); 174Log.LogError($"Package NuSpec specifies an invalid package version: '{packageVersion}'"); 193Log.LogError($"Failed to open replacement file '{replacementFilePath}': {e.Message}"); 211Log.LogError($"'{SourcePackage}' has no .nuspec file in the root"); 252Log.LogError($"Invalid package version specified in {nameof(NewVersion)} parameter: '{NewVersion}'"); 262Log.LogError($"Invalid package version suffix specified in {nameof(NewVersionSuffix)} parameter: '{NewVersionSuffix}'");
src\UpdatePackageVersionTask.cs (1)
60Log.LogError($"Invalid value for task argument {nameof(VersionKind)}: '{VersionKind}'. Specify 'release' or 'prerelease' or leave empty.");
Microsoft.DotNet.PackageTesting (10)
VerifyClosure.cs (7)
53Log.LogError("No sources to scan."); 116Log.LogError($"Duplicate entries for {assemblyInfo.Name} : {assemblyInfo.Path} & {existingInfo.Path}"); 194Log.LogError($"Assembly '{assm.Name}' is missing module dependency '{moduleReference}'"); 216Log.LogError($"Assembly '{assm.Name}' is missing dependency '{dep.Name}'"); 220Log.LogError($"Assembly '{assm.Name}' has insufficient version for dependency '{dep.Name}' : {depAssm.Version} < {dep.Version}."); 270Log.LogError($"Cycle detected for {assembly.Path}."); 274Log.LogError(PrintCycle(suspectCycle.Value));
VerifyTypes.cs (3)
44Log.LogError("No sources to scan."); 67Log.LogError($"Duplicate type {type} in both {existingAssembly.Path} and {assembly.Path}."); 114Log.LogError($"Duplicate entries for {assemblyInfo.Name} : {assemblyInfo.Path} & {existingInfo.Path}");
Microsoft.DotNet.SharedFramework.Sdk (17)
parent\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (7)
53Log.LogError("No sources to scan."); 116Log.LogError($"Duplicate entries for {assemblyInfo.Name} : {assemblyInfo.Path} & {existingInfo.Path}"); 194Log.LogError($"Assembly '{assm.Name}' is missing module dependency '{moduleReference}'"); 216Log.LogError($"Assembly '{assm.Name}' is missing dependency '{dep.Name}'"); 220Log.LogError($"Assembly '{assm.Name}' has insufficient version for dependency '{dep.Name}' : {depAssm.Version} < {dep.Version}."); 270Log.LogError($"Cycle detected for {assembly.Path}."); 274Log.LogError(PrintCycle(suspectCycle.Value));
parent\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (3)
44Log.LogError("No sources to scan."); 67Log.LogError($"Duplicate type {type} in both {existingAssembly.Path} and {assembly.Path}."); 114Log.LogError($"Duplicate entries for {assemblyInfo.Name} : {assemblyInfo.Path} & {existingInfo.Path}");
src\CreateFrameworkListFile.cs (4)
158Log.LogError($"Unexpected analyzer path format {path}. Expected 'analyzers/dotnet(/language)/analyzer.dll"); 205Log.LogError($"No public key token found for assembly {f.Item.ItemSpec}"); 244Log.LogError($"File matches no classification: {f.Filename}"); 266Log.LogError($"Classification matches no files: {unused}");
src\GeneratePlatformManifestEntriesFromTemplate.cs (2)
92Log.LogError($"The platform manifest entry for '{entry.Name}' does not have a fallback assembly version specified and is not built on this platform."); 97Log.LogError($"The platform manifest entry for '{entry.Name}' does not have a fallback file version specified and is not built on this platform.");
src\ValidateFileVersions.cs (1)
88Log.LogError(
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
210Log.LogError($"No creation time property found in snapshot {snapshot.Path}");
Microsoft.Maui.Resizetizer (3)
DetectInvalidResourceOutputFilenamesTask.cs (1)
64 Log.LogError(builder.ToString());
GeneratePackageAppxManifest.cs (1)
108 Log.LogError(ErrorVersionNumberCombination, ApplicationDisplayVersion, ApplicationVersion);
ResizetizeImages.cs (1)
156 Log.LogError(builder.ToString());
Microsoft.NET.Build.Containers (9)
Tasks\ComputeDotnetBaseImageAndTag.cs (4)
134Log.LogError(Resources.Strings.InvalidTargetRuntimeIdentifiers); 264Log.LogError(Resources.Strings.InvalidSdkVersion, SdkVersion); 304Log.LogError(Resources.Strings.InvalidSdkPrereleaseVersion, channel); 309Log.LogError(Resources.Strings.InvalidSdkPrereleaseVersion, channel);
Tasks\CreateImageIndex.cs (5)
101Log.LogError(Strings.InvalidImageMetadata); 117Log.LogError(Strings.InvalidImageManifest); 148Log.LogError(Strings.InvalidImageConfig); 154Log.LogError(Strings.ImageConfigMissingArchitecture); 160Log.LogError(Strings.ImageConfigMissingOs);
Microsoft.NET.Build.Tasks (17)
RunReadyToRunCompiler.cs (17)
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);
Microsoft.NET.ProjectData.Tasks (13)
MergeProjectDataSlicesTask.cs (1)
79 this.Log.LogError(
ValidateProjectDataPackagesTask.cs (11)
173 this.Log.LogError( 181 this.Log.LogError( 189 this.Log.LogError( 197 this.Log.LogError( 205 this.Log.LogError( 213 this.Log.LogError( 221 this.Log.LogError( 273 this.Log.LogError( 280 this.Log.LogError( 321 this.Log.LogError( 642 this.Log.LogError(
WriteProjectDataBuildReceiptTask.cs (1)
34 this.Log.LogError(
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (4)
GenerateBlazorBootExtensionJson.cs (1)
26Log.LogError(ex.ToString());
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (2)
1242log.LogError("Source file '{0}' does not exist for framework asset materialization.", asset.Identity); 1249log.LogError("Source file '{0}' does not exist for framework asset materialization.", sourceFile.OriginalValue);
UpgradeLegacyWasmStaticWebAssets.cs (1)
43Log.LogError($"Could not find a corresponding asset for '{legacyAsset.RelativePath}'");
Microsoft.NET.Sdk.Publish.Tasks (30)
Kudu\KuduZipDeploy.cs (2)
35_logger.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_DeployOutputPathEmpty)); 67_logger.LogError(string.Format(Resources.KUDUDEPLOY_PublishZipFailedReason, ConnectionInfo.SiteName, response.ReasonPhrase));
MsDeploy\CommonUtility.cs (3)
428log.LogError(_strErrorMessage); 1672Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, strBuilder.ToString())); 1684Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithExceptionWithDetail, e.Message, strBuilder.ToString()));
Tasks\GenerateEFSQLScripts.cs (2)
123Log.LogError(e.ToString()); 140Log.LogError(Resources.EFSCRIPT_GenerationFailed);
Tasks\Kudu\KuduDeploy.cs (8)
78Log.LogError(Resources.KUDUDEPLOY_DeployOutputPathEmpty); 85Log.LogError(Resources.KUDUDEPLOY_ConnectionInfoMissing); 97Log.LogError(Resources.KUDUDEPLOY_PublishFailed); 121Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout)); 126Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message)); 145Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout)); 150Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message)); 177Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, e.Message));
Tasks\MsDeploy\ImportParameterFile.cs (1)
170Log.LogError(Resources.BUILDTASK_TransformXml_SourceLoadFailed, new object[] { filePath });
Tasks\MsDeploy\MSDeploy.cs (3)
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 (4)
504_host.Log.LogError(strMsg); 811Log.LogError("Source must be 1 item"); 821Log.LogError("Destination must be 1 item"); 883Log.LogError(string.Format(System.Globalization.CultureInfo.CurrentCulture, Resources.VSMSDEPLOY_FailedWithException, e.Message));
Tasks\OneDeploy\TaskLogger.cs (1)
45_taskLoggingHelper.LogError(message);
Tasks\ValidateParameter.cs (1)
21Log.LogError(string.Format(CultureInfo.CurrentCulture, Resources.ValidateParameter_ArgumentNullError, ParameterName));
Tasks\Xdt\TaskTransformationLogger.cs (1)
118loggingHelper.LogError(message, messageArgs);
Tasks\ZipDeploy\ZipDeploy.cs (4)
41Log.LogError(Resources.ZIPDEPLOY_FailedToRetrieveCred); 79Log.LogError(Resources.ZIPDEPLOY_InvalidSiteNamePublishUrl); 99Log.LogError(string.Format(Resources.ZIPDEPLOY_FailedDeploy, zipDeployPublishUrl, response?.StatusCode)); 124Log.LogError(string.Format(Resources.ZIPDEPLOY_FailedDeployWithLogs,
Microsoft.NET.Sdk.Razor.Tasks (11)
DotnetToolTask.cs (2)
255Log.LogError(trimmedMessage); 287Log.LogError($"{toolCommand} exited with code {ExitCode}.");
FindAssembliesWithReferencesTo.cs (1)
36Log.LogError($"Missing required metadata '{FusionNameKey}' for '{item.ItemSpec}.");
SdkRazorGenerate.cs (4)
64Log.LogError("The specified project root directory {0} doesn't exist.", ProjectRoot); 70Log.LogError("The project {0} must provide a value for {1}.", ProjectRoot, nameof(Configuration)); 80Log.LogError("The Razor source item '{0}' is missing a required metadata entry. Required metadata are: '{1}'", Sources[i], SourceRequiredMetadata); 229Log.LogError($"Missing required metadata '{metadataName}' for '{item.ItemSpec}.");
SdkRazorTagHelper.cs (4)
55Log.LogError("The specified project root directory {0} doesn't exist.", ProjectRoot); 61Log.LogError("The project {0} must provide a value for {1}.", ProjectRoot, nameof(Configuration)); 69Log.LogError("The assembly path {0} is invalid. Assembly paths must be rooted.", Assemblies[i]); 132Log.LogError($"Missing required metadata '{metadataName}' for '{item.ItemSpec}.");
Microsoft.NET.Sdk.StaticWebAssets.Tasks (53)
CollectStaticWebAssetsToCopy.cs (1)
91Log.LogError(ex.ToString());
Compression\ResolveCompressedAssets.cs (4)
175Log.LogError( 218Log.LogError( 242Log.LogError( 295Log.LogError(
ComputeReferenceStaticWebAssetItems.cs (1)
89Log.LogError("More than one compatible asset found for target path '{0}' -> {1}.",
ComputeStaticWebAssetsForCurrentProject.cs (2)
58Log.LogError("More than one compatible asset found for target path '{0}' -> {1}.", 81Log.LogError(ex.ToString());
ComputeStaticWebAssetsTargetPaths.cs (1)
58Log.LogError(ex.Message);
Data\StaticWebAsset.cs (2)
1242log.LogError("Source file '{0}' does not exist for framework asset materialization.", asset.Identity); 1249log.LogError("Source file '{0}' does not exist for framework asset materialization.", sourceFile.OriginalValue);
DefineStaticWebAssets.cs (9)
456Log.LogError("No metadata '{0}' was present for item '{1}' and no default value was provided.", 543Log.LogError( 564Log.LogError( 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( 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.",
EnsureDotNetWatchBrowserToolsKey.cs (1)
99Log.LogError("Unable to create the dotnet-watch browser tools key pair: {0}", ex.Message);
FilterStaticWebAssetGroups.cs (1)
64Log.LogError(
GeneratePackageAssetsManifestFile.cs (2)
144Log.LogError( 178Log.LogError(
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
133Log.LogError($"The asset file '{endpoint.AssetFile}' specified in the endpoint '{endpoint.Route}' does not exist.");
GenerateStaticWebAssetsManifest.cs (1)
69Log.LogError(reason);
GenerateStaticWebAssetsPropsFile.cs (3)
237Log.LogError($"Static web asset '{candidate.ItemSpec}' has invalid source type '{candidateMetadata}'."); 250Log.LogError($"Static web assets have different '{metadata}' metadata values '{referenceMetadata}' and '{candidateMetadata}' for '{reference.ItemSpec}' and '{candidate.ItemSpec}'."); 264Log.LogError($"Missing required metadata '{metadataName}' for '{item.ItemSpec}'.");
Legacy\GenerateStaticWebAssetsPropsFile50.cs (3)
184Log.LogError($"Static web asset '{candidate.ItemSpec}' has invalid source type '{candidateMetadata}'."); 197Log.LogError($"Static web assets have different '{metadata}' metadata values '{referenceMetadata}' and '{candidateMetadata}' for '{reference.ItemSpec}' and '{candidate.ItemSpec}'."); 211Log.LogError($"Missing required metadata '{metadataName}' for '{item.ItemSpec}'.");
Legacy\GenerateV1StaticWebAssetsManifest.cs (1)
154Log.LogError($"Missing required metadata '{metadataName}' for '{item.ItemSpec}'.");
Legacy\ValidateStaticWebAssetsUniquePaths.cs (3)
43Log.LogError($"Conflicting assets with the same path '{webRootPath}' for content root paths '{contentRootDefinition.ItemSpec}' and '{existingWebRootPath.ItemSpec}'."); 61Log.LogError($"The static web asset '{existingAsset.ItemSpec}' has a conflicting web root path '{webRootFileWebRootPath}' with the project file '{webRootFile.ItemSpec}'."); 77Log.LogError($"Missing required metadata '{metadataName}' for '{item.ItemSpec}'.");
MergeConfigurationProperties.cs (1)
39Log.LogError(
ReadPackageAssetsManifest.cs (6)
38Log.LogError("IntermediateOutputPath is required."); 54Log.LogError("Package manifest file '{0}' not found.", manifestPath); 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);
ReadStaticWebAssetsManifestFile.cs (1)
36Log.LogError($"Manifest file at '{ManifestPath}' not found.");
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (2)
44Log.LogError($"No endpoint found for asset '{asset.Identity}'"); 64Log.LogError($"No endpoint found for asset '{asset.Identity}' with path '{assetPath}' whose route matches its path.");
ResolveStaticWebAssetEndpointRoutes.cs (1)
27Log.LogError($"The asset file '{endpoint.AssetFile}' for endpoint '{endpoint.Route}' was not found.");
ScopedCss\RewriteCss.cs (1)
63Log.LogError(error.Message, error.MessageArgs);
ServiceWorker\UpdateServiceWorkerFileWithVersion.cs (1)
25Log.LogError("ServiceWorkerSource does not exist: {0}", ServiceWorkerSource);
StaticWebAssetsReadPackManifest.cs (1)
25Log.LogError($"Manifest file at '{ManifestPath}' not found.");
UpdateExternallyDefinedStaticWebAssets.cs (1)
165Log.LogError($"The regular expression {regex} does not contain a 'fingerprint' group. Provide an expression in the form of (?<fingerprint>...).");
UpdatePackageStaticWebAssets.cs (1)
82Log.LogError(ex.ToString());
Utils\AssetToCompress.cs (1)
37log.LogError("The asset '{0}' can not be found at any of the searched locations '{1}' and '{2}'.",
Microsoft.SourceLink.AzureDevOpsServer.Git (10)
GetSourceLinkUrl.cs (1)
30Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot!.ItemSpec, gitUri);
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.AzureRepos.Git (10)
GetSourceLinkUrl.cs (1)
36Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot!.ItemSpec, gitUri);
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.Bitbucket.Git (11)
GetSourceLinkUrl.cs (2)
45Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot!.ItemSpec, gitUri); 100Log.LogError(CommonResources.ItemOfItemGroupMustSpecifyMetadata, hostItem!.ItemSpec,
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.Common (4)
GenerateSourceLinkFile.cs (4)
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); 160Log.LogError(Resources.ErrorWritingToSourceLinkFile, OutputFile, e.Message);
Microsoft.SourceLink.Gitea (9)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.Gitee (9)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.GitHub (9)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.GitLab (10)
GetSourceLinkUrl.cs (1)
45Log.LogError(CommonResources.ItemOfItemGroupMustSpecifyMetadata, hostItem!.ItemSpec, HostsItemGroupName, VersionMetadataName);
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.SourceLink.GitWeb (9)
src\sourcelink\src\Common\GitProvider\GetSourceLinkUrlGitTask.cs (7)
102Log.LogError(CommonResources.ValueOfWithIdentityIsInvalid, Names.SourceRoot.RepositoryUrlFullName, SourceRoot.ItemSpec, gitUrl); 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);
src\sourcelink\src\Common\GitProvider\TranslateRepositoryUrlGitTask.cs (2)
81Log.LogError(e.Message); 101Log.LogError(e.Message);
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
102task.Log.LogError(Resources.Resources.TestFilePathCannotBeEmptyOrNull);
NuGet.Build.Tasks (3)
Common\MSBuildLogger.cs (2)
95LogError(message, _taskLogging.LogError, _taskLogging.LogError); 127_taskLogging.LogError(message.Message);
StaticGraphRestoreTaskBase.cs (1)
145Log.LogError(args.Data);
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
208LoggingQueue.TaskLoggingHelper.LogError(Strings.Error_DgSpecGenerationFailed); 219LoggingQueue.TaskLoggingHelper.LogError(Strings.Error_MissingRestoreGraphOutputPath);
NuGet.Build.Tasks.Pack (2)
parent\NuGet.Build.Tasks\Common\MSBuildLogger.cs (2)
95LogError(message, _taskLogging.LogError, _taskLogging.LogError); 127_taskLogging.LogError(message.Message);
RepoTasks (11)
BatchHelixWorkItems.cs (2)
138Log.LogError("Work item '{0}' requires Playwright but is being batched. " + 222Log.LogError(
ResolveDotnetToolPackagePaths.cs (9)
36Log.LogError($"The dotnet tool manifest '{ToolManifestPath}' must contain a JSON object."); 42Log.LogError($"The dotnet tool manifest '{ToolManifestPath}' does not contain a 'tools' object."); 48Log.LogError($"The 'tools' value in dotnet tool manifest '{ToolManifestPath}' must be a JSON object."); 57Log.LogError($"The dotnet tool manifest '{ToolManifestPath}' contains duplicate package ID '{tool.Name}' under case-insensitive comparison."); 72Log.LogError($"The dotnet tool manifest '{ToolManifestPath}' does not contain tool '{packageId}'."); 78Log.LogError($"Tool '{packageId}' in dotnet tool manifest '{ToolManifestPath}' must be a JSON object."); 84Log.LogError($"Tool '{packageId}' in dotnet tool manifest '{ToolManifestPath}' does not contain a version."); 90Log.LogError($"The version for tool '{packageId}' in dotnet tool manifest '{ToolManifestPath}' must be a string."); 97Log.LogError($"The dotnet tool manifest '{ToolManifestPath}' contains an empty version for '{packageId}'.");
sdk-tasks (25)
CopyPreservingRelativeSymlinks.cs (2)
46Log.LogError($"SourceFiles count ({SourceFiles.Length}) must match DestinationFiles count ({DestinationFiles.Length})."); 72Log.LogError($"Failed to copy '{sourcePath}' to '{destPath}': {ex.Message}");
Crossgen.cs (2)
36Log.LogError($"SourceAssembly '{SourceAssembly}' does not exist."); 98Log.LogError(singleLine);
DeduplicateAssembliesWithLinks.cs (3)
37Log.LogError($"LayoutDirectory '{LayoutDirectory}' does not exist."); 88Log.LogError($"Failed to hash file '{filePath}': {ex.Message}"); 122Log.LogError($"Failed to create {LinkType} from '{duplicate.Path}' to '{primary.Path}': {ex.Message}");
DotNetTool.cs (1)
42Log.LogError($"Could not find the Path to {ToolName}");
ExtractArchiveToDirectory.cs (1)
54Log.LogError($"SourceArchive '{SourceArchive} does not exist.");
IncrementalLayout.cs (6)
62Log.LogError( 94Log.LogError($"Incremental layout input '{sourcePath}' does not exist."); 100Log.LogError($"Incremental layout destination '{destinationPath}' is produced by more than one input."); 111Log.LogError($"Incremental layout input '{sourcePath}' must not also be a destination."); 194Log.LogError($"Incremental layout output '{outputPath}' was not produced."); 230log.LogError($"Incremental layout path '{path}' from '{parameterName}' must be fully qualified.");
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (2)
64Log.LogError($"No matching {elementName} in stage 0 for: {string.Join(", ", matchAttrs.Select(a => $"{a}={item2.Attribute(a)?.Value}"))}"); 69Log.LogError($"Multiple matches for {elementName} in stage 0 for: {string.Join(", ", matchAttrs.Select(a => $"{a}={item2.Attribute(a)?.Value}"))}");
ProcessRuntimeAnalyzerVersions.cs (1)
48Log.LogError($"Version mismatch for '{deploymentSubpath}': '{entry.Version}' != '{version}'. " +
ReplaceFilesWithSymbolicLinks.cs (4)
47Log.LogError($"{nameof(ReplaceFilesWithSymbolicLinks)} is not supported on Windows."); 53Log.LogError($"'{Directory}' does not exist."); 59Log.LogError($"'{LinkToFilesFrom}' does not exist."); 145Log.LogError($"Unable to link '{path}' to '{pathToTarget}.': {ex}");
TarGzFileCreateFromDirectory.cs (2)
65Log.LogError($"'{DestinationArchive}' already exists. Did you forget to set '{nameof(OverwriteDestination)}' to true?"); 79Log.LogError($"SourceDirectory '{SourceDirectory} does not exist.");
ZipFileCreateFromDirectory.cs (1)
107Log.LogError("An exception has occurred while trying to compress '{0}' into '{1}'.", SourceDirectory, DestinationArchive);