Implemented interface member:
method
LogError
Microsoft.DotNet.Build.Tasks.ILog.LogError(System.String, params System.Object[])
92 references to LogError
Microsoft.DotNet.Build.Tasks.Packaging (92)
ApplyPreReleaseSuffix.cs (2)
54
Log.
LogError
($"{nameof(OriginalPackages)} argument must be specified");
60
Log.
LogError
($"{nameof(PreReleaseSuffix)} argument must be specified");
CreateTrimDependencyGroups.cs (2)
59
Log.
LogError
("Dependencies argument must be specified");
64
Log.
LogError
("PackageIndexes argument must be specified");
GeneratePackageReport.cs (5)
212
Log.
LogError
($"Could not parse Framework {framework.ItemSpec}. {ex}");
218
Log.
LogError
($"Did not recognize {framework.ItemSpec} as valid Framework.");
296
Log.
LogError
($"{packageItem.TargetPath} is missing TargetPath metadata");
309
Log.
LogError
($"Could not parse File {file.ItemSpec}. {ex}");
326
Log.
LogError
($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}.");
GenerateRuntimeDependencies.cs (4)
51
Log.
LogError
("Dependencies argument must be specified");
57
Log.
LogError
("PackageID argument must be specified");
63
Log.
LogError
("RuntimeJson argument must be specified");
184
Log.
LogError
("Dependency {0} has invalid version {1}", dependency.ItemSpec, dependencyVersionString);
GetApplicableAssetsFromPackageReports.cs (2)
52
Log.
LogError
("PackageReports argument must be specified");
58
Log.
LogError
("TargetMoniker argument must be specified");
GetApplicableAssetsFromPackages.cs (7)
72
Log.
LogError
("PackageAssets argument must be specified");
78
Log.
LogError
("TargetMoniker argument must be specified");
115
Log.
LogError
($"Could not locate compile assets for any of the frameworks {String.Join(";", compileFxs.Select(fx => fx.ToString()))}");
139
Log.
LogError
($"Could not locate runtime assets for any of the frameworks {String.Join(";", runtimeFxs.Select(fx => fx.ToString()))}");
158
Log.
LogError
($"{packageItem.TargetPath} is missing TargetPath metadata");
169
Log.
LogError
($"Could not parse File {file.ItemSpec}. {ex}");
185
Log.
LogError
($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageFile.SourcePath} have the same TargetPath {packageSpecificTargetPath}.");
GetAssemblyReferences.cs (1)
52
Log.
LogError
($"File {assemblyItem.ItemSpec} does not exist, ensure you have built libraries before building the package.");
GetInboxFrameworks.cs (2)
45
Log.
LogError
("PackageIndexes argument must be specified");
51
Log.
LogError
("AssemblyName argument must be specified");
GetLastStablePackage.cs (1)
107
Log.
LogError
($"Could not parse version {versionString} for StablePackage {packageId}");
GetPackageDescription.cs (6)
43
Log.
LogError
("DescriptionFile argument must be specified");
49
Log.
LogError
("PackageId argument must be specified");
57
Log.
LogError
("DescriptionFile '{0}' does not exist", descriptionPath);
80
Log.
LogError
("Unable to find description for package {0}", PackageId);
107
Log.
LogError
("Error loading {0}, {1}", descriptionPath, excep);
121
Log.
LogError
("Package {0} has no Description, please add it to {1}", metadata.Name, descriptionPath);
GetPackageDestination.cs (2)
102
Log.
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.");
108
Log.
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)
32
Log.
LogError
("Files argument must be specified");
HarvestPackage.cs (6)
188
Log.
LogError
($"Could not parse Framework {framework.ItemSpec}. {ex}");
194
Log.
LogError
($"Did not recognize {framework.ItemSpec} as valid Framework.");
281
Log.
LogError
($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}.");
458
Log.
LogError
($"Path '{pathNotIncluded}' was specified in {nameof(PathsToInclude)} but was not found in the package {PackageId}/{PackageVersion}.");
488
Log.
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.");
501
Log.
LogError
($"Package path {packagePath} was specified to be harvested but it conflicts with live build{reason}.");
NuGetPack.cs (7)
139
Log.
LogError
("Nuspecs argument must be specified");
145
Log.
LogError
("OuputDirectory argument must be specified");
162
Log.
LogError
($"Nuspec {nuspecPath} does not exist");
215
Log.
LogError
($"Nuspec {nuspecPath} does not contain a valid Id");
229
Log.
LogError
($"Failed to parse Package Version: '{PackageVersion}' is not a valid version.");
237
Log.
LogError
($"Nuspec {nuspecPath} does not contain a valid version");
320
Log.
LogError
($"Error when creating nuget {packageType} package from {nuspecPath}. {e}");
NuGetUtility.cs (1)
126
public void LogError(string data) => _log.
LogError
(data);
PromoteDependencies.cs (1)
38
Log.
LogError
("PackageIndexes argument must be specified");
SplitReferences.cs (1)
56
Log.
LogError
("PackageIndexes argument must be specified");
ValidateFrameworkPackage.cs (3)
53
new Action<string>(s => Log.
LogError
(s));
77
new Action<string>(s => Log.
LogError
(s));
93
Log.
LogError
($"Could not find target {targetKey} in {ReportFile}.");
ValidateHarvestVersionIsLatestForRelease.cs (4)
42
Log.
LogError
($"Validation Failed: {packageReport.Id} is harvesting package version {harvestVersion} which belongs to the current package release: {packageReport.Version}");
49
Log.
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`");
123
Log.
LogError
($"Failed to parse package version from string: {harvestedFrom}");
129
Log.
LogError
($"Failed to parse package version from string: {harvestedFrom}");
ValidatePackage.cs (33)
164
Log.
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.");
182
Log.
LogError
($"Missing target {fx.ToString()} from validation report {ReportFile}");
198
Log.
LogError
($"Missing target {target} from validation report {ReportFile}");
214
Log.
LogError
($"{ContractName} should not be supported on {target} but has both compile and runtime assets.");
218
Log.
LogError
($"{ContractName} should not be supported on {target} but has runtime assets.");
223
Log.
LogError
($"{ContractName} should not be supported on {target} but has placeholders for both compile and runtime which will permit the package to install.");
232
Log.
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.");
236
Log.
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.");
241
Log.
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.");
245
Log.
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.");
255
Log.
LogError
($"{ContractName} should be supported on {target} but has a compile placeholder. You may need to remove InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> from your project.");
259
Log.
LogError
($"{ContractName} should be supported on {target} but has no compile assets.");
271
Log.
LogError
($"{ContractName} should only contain a single compile asset for {target}.");
280
Log.
LogError
($"{ContractName} should support API version {supportedVersion} on {target} but {referenceAssembly.LocalPath} was found to support {referenceAssemblyVersion?.ToString() ?? "<unknown version>"}.");
295
Log.
LogError
($"{ContractName} should be supported on {target} but has no runtime assets.");
309
Log.
LogError
($"{ContractName} should support API version {supportedVersion} on {target} but {implementationAssembly.LocalPath} was found to support {implementationVersion?.ToString() ?? "<unknown version>"}.");
318
Log.
LogError
($"{ContractName} has mismatched compile ({referenceAssemblyVersion}) and runtime ({implementationVersion}) versions on {target}.");
325
Log.
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.");
332
Log.
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.");
352
Log.
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.");
383
Log.
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.");
400
Log.
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.");
407
Log.
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}.");
417
Log.
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.");
430
Log.
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.");
441
Log.
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.");
467
Log.
LogError
($"Could not parse Framework {framework.ItemSpec}. {ex}");
473
Log.
LogError
($"Did not recognize {framework.ItemSpec} as valid Framework.");
481
Log.
LogError
($"Framework {fx} has been listed in Frameworks more than once.");
513
Log.
LogError
($"Could not parse TargetFramework {fxString} as a SupportedFramework. {ex}");
519
Log.
LogError
($"Did not recognize TargetFramework {fxString} as a SupportedFramework.");
531
Log.
LogError
($"Could not parse Version {version} on SupportedFramework item {supportedFramework.ItemSpec}. {ex}");
538
Log.
LogError
($"SupportedFramework {fx} was specified but is not part of the Framework list to use for validation.");
ValidationTask.cs (1)
118
Log.
LogError
($"Unknown suppression {keyString}");