164 references to Log
Microsoft.DotNet.Build.Tasks.Packaging (164)
ApplyBaseLine.cs (1)
56
return !
Log
.HasLoggedErrors;
ApplyMetaPackages.cs (1)
123
return !
Log
.HasLoggedErrors;
ApplyPreReleaseSuffix.cs (3)
54
Log
.LogError($"{nameof(OriginalPackages)} argument must be specified");
60
Log
.LogError($"{nameof(PreReleaseSuffix)} argument must be specified");
112
return !
Log
.HasLoggedErrors;
CreateTrimDependencyGroups.cs (3)
59
Log
.LogError("Dependencies argument must be specified");
64
Log
.LogError("PackageIndexes argument must be specified");
148
return !
Log
.HasLoggedErrors;
FilterUnknownPackages.cs (1)
56
return !
Log
.HasLoggedErrors;
GeneratePackageReport.cs (8)
100
NuGetAssetResolver.ExamineAssets(
Log
, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder);
126
NuGetAssetResolver.ExamineAssets(
Log
, "Runtime", package, target, runtimeAssets, out hasRuntimeAsset, out hasRuntimePlaceHolder);
179
return !
Log
.HasLoggedErrors;
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 (10)
51
Log
.LogError("Dependencies argument must be specified");
57
Log
.LogError("PackageID argument must be specified");
63
Log
.LogError("RuntimeJson argument must be specified");
85
Log
.LogMessage(LogImportance.Low, "Aliasing {0} -> {1}", alias, dependency.ItemSpec);
98
Log
.LogMessage(LogImportance.Low, "Skipping dependencies {0} since they don't have a TargetRuntime.", String.Join(", ", runtimeGroup.Select(d => d.ItemSpec)));
156
Log
.LogWarning("Dependency {0} specified TargetPackageAlias {1} but no package was found defining this alias.", dependency.ItemSpec, targetPackageAlias);
160
Log
.LogMessage(LogImportance.Low, "Using {0} for TargetPackageAlias {1}", targetPackageId, targetPackageAlias);
165
Log
.LogMessage(LogImportance.Low, "Dependency {0} has no parent so will assume {1}.", dependency.ItemSpec, PackageId);
179
Log
.LogWarning("Dependency {0} has no version", dependency.ItemSpec);
184
Log
.LogError("Dependency {0} has invalid version {1}", dependency.ItemSpec, dependencyVersionString);
GetApplicableAssetsFromPackageReports.cs (4)
52
Log
.LogError("PackageReports argument must be specified");
58
Log
.LogError("TargetMoniker argument must be specified");
87
Log
.LogMessage($"No assets found for '{report.Id}' applicable to '{targetString}'.");
96
return !
Log
.HasLoggedErrors;
GetApplicableAssetsFromPackages.cs (10)
72
Log
.LogError("PackageAssets argument must be specified");
78
Log
.LogError("TargetMoniker argument must be specified");
108
Log
.LogMessage($"Resolved compile assets from {compileFx.ToString()}: {String.Join(";", CompileAssets.Select(c => c.ItemSpec))}");
115
Log
.LogError($"Could not locate compile assets for any of the frameworks {String.Join(";", compileFxs.Select(fx => fx.ToString()))}");
132
Log
.LogMessage($"Resolved runtime assets from {runtimeFx.ToString()}: {String.Join(";", RuntimeAssets.Select(r => r.ItemSpec))}");
139
Log
.LogError($"Could not locate runtime assets for any of the frameworks {String.Join(";", runtimeFxs.Select(fx => fx.ToString()))}");
144
return !
Log
.HasLoggedErrors;
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 (4)
45
Log
.LogError("PackageIndexes argument must be specified");
51
Log
.LogError("AssemblyName argument must be specified");
55
Log
.LogMessage(LogImportance.Low, "Determining inbox frameworks for {0}, {1}", AssemblyName, AssemblyVersion);
61
return !
Log
.HasLoggedErrors;
GetLastStablePackage.cs (4)
69
return !
Log
.HasLoggedErrors;
86
Log
.LogMessage($"Could not parse version {versionString} for LatestPackage {packageId}, will use latest stable.");
107
Log
.LogError($"Could not parse version {versionString} for StablePackage {packageId}");
142
Log
.LogMessage($"Could not parse version {versionString} for LatestPackage {packageId}, will use latest stable.");
GetLayoutFiles.cs (4)
81
Log
.LogMessage(LogImportance.Low, $"Skipping {fx} since it is not in {nameof(Frameworks)}");
87
Log
.LogMessage(LogImportance.Low, $"Skipping {fx}/{rid} since it is not in {nameof(Frameworks)}");
94
Log
.LogMessage(LogImportance.Low, $"Skipping {fx} since it is not supported");
113
return !
Log
.HasLoggedErrors;
GetMinimumNETStandard.cs (2)
39
Log
.LogMessage($"Could not find any NETStandard frameworks, defaulting to {minNETStandard}.");
44
return !
Log
.HasLoggedErrors;
GetPackageDescription.cs (7)
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);
85
return !
Log
.HasLoggedErrors;
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 (3)
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.");
132
return !
Log
.HasLoggedErrors;
GetPackageFromModule.cs (1)
76
return !
Log
.HasLoggedErrors;
GetPackageVersion.cs (2)
32
Log
.LogError("Files argument must be specified");
45
return !
Log
.HasLoggedErrors;
GetSupportedPackagesFromPackageReports.cs (1)
58
return !
Log
.HasLoggedErrors;
HarvestPackage.cs (18)
138
return !
Log
.HasLoggedErrors;
188
Log
.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}");
194
Log
.LogError($"Did not recognize {framework.ItemSpec} as valid Framework.");
201
NuGetAssetResolver.ExamineAssets(
Log
, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder);
208
Log
.LogMessage(LogImportance.Low, $"Skipping {fx} because it is not supported.");
219
NuGetAssetResolver.ExamineAssets(
Log
, "Runtime", package, target, runtimeAssets, out hasRuntimeAsset, out hasRuntimePlaceHolder);
226
Log
.LogMessage(LogImportance.Low, $"Skipping {fx} because it is not supported on {target}.");
257
Log
.LogMessage(LogImportance.Low, $"Validating version {version} for {supportedFramework.ItemSpec} because it was supported by {PackageId}/{PackageVersion}.");
281
Log
.LogError($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}.");
312
Log
.LogMessage(LogImportance.Low, $"Excluding package path {harvestPackagePath} because it is specifically excluded.");
319
Log
.LogMessage(LogImportance.Low, $"Excluding package path {harvestPackagePath} because it is not included in {nameof(PathsToInclude)}.");
358
Log
.LogMessage(LogImportance.Low, $"Preferring live build of package path {livePackagePath} over the asset from last stable package because the file is not versioned.");
402
Log
.LogMessage($"Using reference {livePackagePath} from last stable package {PackageId}/{PackageVersion} rather than the built reference {liveFile.SourcePath} since it is the same API version. Set <Preserve>true</Preserve> on {liveFile.SourceProject} if you'd like to avoid this..");
413
Log
.LogMessage(LogImportance.Low, $"Including {livePackagePath} from last stable package {PackageId}/{PackageVersion}.");
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.");
497
Log
.LogMessage(LogImportance.Low, $"Preferring live build of package path {packagePath} over the asset from last stable package{reason}.");
501
Log
.LogError($"Package path {packagePath} was specified to be harvested but it conflicts with live build{reason}.");
NuGetPack.cs (11)
139
Log
.LogError("Nuspecs argument must be specified");
145
Log
.LogError("OuputDirectory argument must be specified");
162
Log
.LogError($"Nuspec {nuspecPath} does not exist");
186
return !
Log
.HasLoggedErrors;
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");
278
Log
.LogMessage(LogImportance.Low, $"Nuspec {nuspecPath} does not contain symbol or source files. Not creating symbol package.");
283
Log
.LogMessage(LogImportance.Low, $"Nuspec {nuspecPath} does not contain any files matching {pathPair.Key}. Not creating symbol package.");
307
Log
.LogMessage($"Created '{nupkgPath}'");
320
Log
.LogError($"Error when creating nuget {packageType} package from {nuspecPath}. {e}");
PromoteDependencies.cs (4)
38
Log
.LogError("PackageIndexes argument must be specified");
51
Log
.LogMessage(LogImportance.Low, $"Ref frameworks {string.Join(";", refFxs.Select(f => f.ToString()))}");
56
Log
.LogMessage(LogImportance.Low, $"Lib frameworks {string.Join(";", libFxs.Select(f => f.ToString()))}");
88
return !
Log
.HasLoggedErrors;
SplitDependenciesBySupport.cs (1)
60
return !
Log
.HasLoggedErrors;
SplitReferences.cs (1)
56
Log
.LogError("PackageIndexes argument must be specified");
UpdatePackageIndex.cs (7)
102
Log
.LogMessage($"Updating from {package}.");
114
Log
.LogMessage($"Updating from {nupkg}.");
125
Log
.LogMessage($"Updating from {nuspecFolder}.");
192
IEnumerable<Version> stablePackageVersions = NuGetUtility.GetAllVersionsForPackageId(package.Key, includePrerelease: false, includeUnlisted: false,
Log
, CancellationToken.None);
205
return !
Log
.HasLoggedErrors;
271
IEnumerable<Version> allStableVersions = NuGetUtility.GetAllVersionsForPackageId(id, includePrerelease: false, includeUnlisted: false,
Log
, CancellationToken.None);
276
Log
.LogWarning("Failed fetching stable nuget package versions from one or more of your feeds. Make sure you are connected to the internet and that all your feeds are reachable.");
ValidateFrameworkPackage.cs (6)
52
new Action<string>(s =>
Log
.LogMessage(LogImportance.Low, $"Suppressed: {s}")) :
53
new Action<string>(s =>
Log
.LogError(s));
76
new Action<string>(s =>
Log
.LogMessage(LogImportance.Low, $"Suppressed: {s}")) :
77
new Action<string>(s =>
Log
.LogError(s));
82
return !
Log
.HasLoggedErrors;
93
Log
.LogError($"Could not find target {targetKey} in {ReportFile}.");
ValidateHarvestVersionIsLatestForRelease.cs (8)
30
return !
Log
.HasLoggedErrors;
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`");
53
Log
.LogMessage(LogImportance.Normal, $"Validation Succeeded: {packageReport.Id} is harvesting assets from package version {harvestVersion} which is the latest for that package erreleasea.");
58
Log
.LogMessage(LogImportance.Normal, $"Validation Succeeded: {packageReport.Id} is not harvesting any assets.");
123
Log
.LogError($"Failed to parse package version from string: {harvestedFrom}");
129
Log
.LogError($"Failed to parse package version from string: {harvestedFrom}");
137
IEnumerable<Version> packageVersions = NuGetUtility.GetAllVersionsForPackageId(packageId, includePrerelease: false, includeUnlisted: false,
Log
, CancellationToken.None);
ValidatePackage.cs (37)
137
return !
Log
.HasLoggedErrors;
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}");
188
NuGetAssetResolver.ExamineAssets(
Log
, "Compile", ContractName, fx.ToString(), compileAssetPaths, out hasCompileAsset, out hasCompilePlaceHolder);
198
Log
.LogError($"Missing target {target} from validation report {ReportFile}");
205
NuGetAssetResolver.ExamineAssets(
Log
, "Runtime", ContractName, target, runtimeAssetPaths, out hasRuntimeAsset, out hasRuntimePlaceHolder);
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>"}.");
290
Log
.LogMessage($"Suppressed: {ContractName} should be supported on {target} but has no runtime assets.");
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}");