164 references to Log
Microsoft.DotNet.Build.Tasks.Packaging (164)
ApplyBaseLine.cs (1)
56return !Log.HasLoggedErrors;
ApplyMetaPackages.cs (1)
123return !Log.HasLoggedErrors;
ApplyPreReleaseSuffix.cs (3)
54Log.LogError($"{nameof(OriginalPackages)} argument must be specified"); 60Log.LogError($"{nameof(PreReleaseSuffix)} argument must be specified"); 112return !Log.HasLoggedErrors;
CreateTrimDependencyGroups.cs (3)
59Log.LogError("Dependencies argument must be specified"); 64Log.LogError("PackageIndexes argument must be specified"); 148return !Log.HasLoggedErrors;
FilterUnknownPackages.cs (1)
56return !Log.HasLoggedErrors;
GeneratePackageReport.cs (8)
100NuGetAssetResolver.ExamineAssets(Log, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder); 126NuGetAssetResolver.ExamineAssets(Log, "Runtime", package, target, runtimeAssets, out hasRuntimeAsset, out hasRuntimePlaceHolder); 179return !Log.HasLoggedErrors; 212Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}"); 218Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework."); 296Log.LogError($"{packageItem.TargetPath} is missing TargetPath metadata"); 309Log.LogError($"Could not parse File {file.ItemSpec}. {ex}"); 326Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}.");
GenerateRuntimeDependencies.cs (10)
51Log.LogError("Dependencies argument must be specified"); 57Log.LogError("PackageID argument must be specified"); 63Log.LogError("RuntimeJson argument must be specified"); 85Log.LogMessage(LogImportance.Low, "Aliasing {0} -> {1}", alias, dependency.ItemSpec); 98Log.LogMessage(LogImportance.Low, "Skipping dependencies {0} since they don't have a TargetRuntime.", String.Join(", ", runtimeGroup.Select(d => d.ItemSpec))); 156Log.LogWarning("Dependency {0} specified TargetPackageAlias {1} but no package was found defining this alias.", dependency.ItemSpec, targetPackageAlias); 160Log.LogMessage(LogImportance.Low, "Using {0} for TargetPackageAlias {1}", targetPackageId, targetPackageAlias); 165Log.LogMessage(LogImportance.Low, "Dependency {0} has no parent so will assume {1}.", dependency.ItemSpec, PackageId); 179Log.LogWarning("Dependency {0} has no version", dependency.ItemSpec); 184Log.LogError("Dependency {0} has invalid version {1}", dependency.ItemSpec, dependencyVersionString);
GetApplicableAssetsFromPackageReports.cs (4)
52Log.LogError("PackageReports argument must be specified"); 58Log.LogError("TargetMoniker argument must be specified"); 87Log.LogMessage($"No assets found for '{report.Id}' applicable to '{targetString}'."); 96return !Log.HasLoggedErrors;
GetApplicableAssetsFromPackages.cs (10)
72Log.LogError("PackageAssets argument must be specified"); 78Log.LogError("TargetMoniker argument must be specified"); 108Log.LogMessage($"Resolved compile assets from {compileFx.ToString()}: {String.Join(";", CompileAssets.Select(c => c.ItemSpec))}"); 115Log.LogError($"Could not locate compile assets for any of the frameworks {String.Join(";", compileFxs.Select(fx => fx.ToString()))}"); 132Log.LogMessage($"Resolved runtime assets from {runtimeFx.ToString()}: {String.Join(";", RuntimeAssets.Select(r => r.ItemSpec))}"); 139Log.LogError($"Could not locate runtime assets for any of the frameworks {String.Join(";", runtimeFxs.Select(fx => fx.ToString()))}"); 144return !Log.HasLoggedErrors; 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 (4)
45Log.LogError("PackageIndexes argument must be specified"); 51Log.LogError("AssemblyName argument must be specified"); 55Log.LogMessage(LogImportance.Low, "Determining inbox frameworks for {0}, {1}", AssemblyName, AssemblyVersion); 61return !Log.HasLoggedErrors;
GetLastStablePackage.cs (4)
66return !Log.HasLoggedErrors; 83Log.LogMessage($"Could not parse version {versionString} for LatestPackage {packageId}, will use latest stable."); 104Log.LogError($"Could not parse version {versionString} for StablePackage {packageId}"); 139Log.LogMessage($"Could not parse version {versionString} for LatestPackage {packageId}, will use latest stable.");
GetLayoutFiles.cs (4)
81Log.LogMessage(LogImportance.Low, $"Skipping {fx} since it is not in {nameof(Frameworks)}"); 87Log.LogMessage(LogImportance.Low, $"Skipping {fx}/{rid} since it is not in {nameof(Frameworks)}"); 94Log.LogMessage(LogImportance.Low, $"Skipping {fx} since it is not supported"); 113return !Log.HasLoggedErrors;
GetMinimumNETStandard.cs (2)
39Log.LogMessage($"Could not find any NETStandard frameworks, defaulting to {minNETStandard}."); 44return !Log.HasLoggedErrors;
GetPackageDescription.cs (7)
43Log.LogError("DescriptionFile argument must be specified"); 49Log.LogError("PackageId argument must be specified"); 57Log.LogError("DescriptionFile '{0}' does not exist", descriptionPath); 80Log.LogError("Unable to find description for package {0}", PackageId); 85return !Log.HasLoggedErrors; 107Log.LogError("Error loading {0}, {1}", descriptionPath, excep); 121Log.LogError("Package {0} has no Description, please add it to {1}", metadata.Name, descriptionPath);
GetPackageDestination.cs (3)
102Log.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."); 108Log.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."); 132return !Log.HasLoggedErrors;
GetPackageFromModule.cs (1)
76return !Log.HasLoggedErrors;
GetPackageVersion.cs (2)
32Log.LogError("Files argument must be specified"); 45return !Log.HasLoggedErrors;
GetSupportedPackagesFromPackageReports.cs (1)
58return !Log.HasLoggedErrors;
HarvestPackage.cs (18)
138return !Log.HasLoggedErrors; 188Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}"); 194Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework."); 201NuGetAssetResolver.ExamineAssets(Log, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder); 208Log.LogMessage(LogImportance.Low, $"Skipping {fx} because it is not supported."); 219NuGetAssetResolver.ExamineAssets(Log, "Runtime", package, target, runtimeAssets, out hasRuntimeAsset, out hasRuntimePlaceHolder); 226Log.LogMessage(LogImportance.Low, $"Skipping {fx} because it is not supported on {target}."); 257Log.LogMessage(LogImportance.Low, $"Validating version {version} for {supportedFramework.ItemSpec} because it was supported by {PackageId}/{PackageVersion}."); 281Log.LogError($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}."); 312Log.LogMessage(LogImportance.Low, $"Excluding package path {harvestPackagePath} because it is specifically excluded."); 319Log.LogMessage(LogImportance.Low, $"Excluding package path {harvestPackagePath} because it is not included in {nameof(PathsToInclude)}."); 358Log.LogMessage(LogImportance.Low, $"Preferring live build of package path {livePackagePath} over the asset from last stable package because the file is not versioned."); 402Log.LogMessage($"Using reference {livePackagePath} from last stable package {PackageId}/{PackageVersion} rather than the built reference {liveFile.SourcePath} since it is the same API version. Set <Preserve>true</Preserve> on {liveFile.SourceProject} if you'd like to avoid this.."); 413Log.LogMessage(LogImportance.Low, $"Including {livePackagePath} from last stable package {PackageId}/{PackageVersion}."); 458Log.LogError($"Path '{pathNotIncluded}' was specified in {nameof(PathsToInclude)} but was not found in the package {PackageId}/{PackageVersion}."); 488Log.LogError($"Cannot locate package '{PackageId}' version '{PackageVersion}' under '{string.Join(", ", PackagesFolders)}'. Harvesting is needed to redistribute assets and ensure compatibility with the previous release. You can disable this by setting HarvestStablePackage=false."); 497Log.LogMessage(LogImportance.Low, $"Preferring live build of package path {packagePath} over the asset from last stable package{reason}."); 501Log.LogError($"Package path {packagePath} was specified to be harvested but it conflicts with live build{reason}.");
NuGetPack.cs (11)
139Log.LogError("Nuspecs argument must be specified"); 145Log.LogError("OuputDirectory argument must be specified"); 162Log.LogError($"Nuspec {nuspecPath} does not exist"); 186return !Log.HasLoggedErrors; 215Log.LogError($"Nuspec {nuspecPath} does not contain a valid Id"); 229Log.LogError($"Failed to parse Package Version: '{PackageVersion}' is not a valid version."); 237Log.LogError($"Nuspec {nuspecPath} does not contain a valid version"); 278Log.LogMessage(LogImportance.Low, $"Nuspec {nuspecPath} does not contain symbol or source files. Not creating symbol package."); 283Log.LogMessage(LogImportance.Low, $"Nuspec {nuspecPath} does not contain any files matching {pathPair.Key}. Not creating symbol package."); 307Log.LogMessage($"Created '{nupkgPath}'"); 320Log.LogError($"Error when creating nuget {packageType} package from {nuspecPath}. {e}");
PromoteDependencies.cs (4)
38Log.LogError("PackageIndexes argument must be specified"); 51Log.LogMessage(LogImportance.Low, $"Ref frameworks {string.Join(";", refFxs.Select(f => f.ToString()))}"); 56Log.LogMessage(LogImportance.Low, $"Lib frameworks {string.Join(";", libFxs.Select(f => f.ToString()))}"); 88return !Log.HasLoggedErrors;
SplitDependenciesBySupport.cs (1)
60return !Log.HasLoggedErrors;
SplitReferences.cs (1)
56Log.LogError("PackageIndexes argument must be specified");
UpdatePackageIndex.cs (7)
102Log.LogMessage($"Updating from {package}."); 114Log.LogMessage($"Updating from {nupkg}."); 125Log.LogMessage($"Updating from {nuspecFolder}."); 192IEnumerable<Version> stablePackageVersions = NuGetUtility.GetAllVersionsForPackageId(package.Key, includePrerelease: false, includeUnlisted: false, Log, CancellationToken.None); 205return !Log.HasLoggedErrors; 271IEnumerable<Version> allStableVersions = NuGetUtility.GetAllVersionsForPackageId(id, includePrerelease: false, includeUnlisted: false, Log, CancellationToken.None); 276Log.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)
52new Action<string>(s => Log.LogMessage(LogImportance.Low, $"Suppressed: {s}")) : 53new Action<string>(s => Log.LogError(s)); 76new Action<string>(s => Log.LogMessage(LogImportance.Low, $"Suppressed: {s}")) : 77new Action<string>(s => Log.LogError(s)); 82return !Log.HasLoggedErrors; 93Log.LogError($"Could not find target {targetKey} in {ReportFile}.");
ValidateHarvestVersionIsLatestForRelease.cs (8)
30return !Log.HasLoggedErrors; 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`"); 53Log.LogMessage(LogImportance.Normal, $"Validation Succeeded: {packageReport.Id} is harvesting assets from package version {harvestVersion} which is the latest for that package erreleasea."); 58Log.LogMessage(LogImportance.Normal, $"Validation Succeeded: {packageReport.Id} is not harvesting any assets."); 123Log.LogError($"Failed to parse package version from string: {harvestedFrom}"); 129Log.LogError($"Failed to parse package version from string: {harvestedFrom}"); 137IEnumerable<Version> packageVersions = NuGetUtility.GetAllVersionsForPackageId(packageId, includePrerelease: false, includeUnlisted: false, Log, CancellationToken.None);
ValidatePackage.cs (37)
137return !Log.HasLoggedErrors; 164Log.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."); 182Log.LogError($"Missing target {fx.ToString()} from validation report {ReportFile}"); 188NuGetAssetResolver.ExamineAssets(Log, "Compile", ContractName, fx.ToString(), compileAssetPaths, out hasCompileAsset, out hasCompilePlaceHolder); 198Log.LogError($"Missing target {target} from validation report {ReportFile}"); 205NuGetAssetResolver.ExamineAssets(Log, "Runtime", ContractName, target, runtimeAssetPaths, out hasRuntimeAsset, out hasRuntimePlaceHolder); 214Log.LogError($"{ContractName} should not be supported on {target} but has both compile and runtime assets."); 218Log.LogError($"{ContractName} should not be supported on {target} but has runtime assets."); 223Log.LogError($"{ContractName} should not be supported on {target} but has placeholders for both compile and runtime which will permit the package to install."); 232Log.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."); 236Log.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."); 241Log.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."); 245Log.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."); 255Log.LogError($"{ContractName} should be supported on {target} but has a compile placeholder. You may need to remove InboxOnTargetFramework Include=\"{fx.GetShortFolderName()}\" /> from your project."); 259Log.LogError($"{ContractName} should be supported on {target} but has no compile assets."); 271Log.LogError($"{ContractName} should only contain a single compile asset for {target}."); 280Log.LogError($"{ContractName} should support API version {supportedVersion} on {target} but {referenceAssembly.LocalPath} was found to support {referenceAssemblyVersion?.ToString() ?? "<unknown version>"}."); 290Log.LogMessage($"Suppressed: {ContractName} should be supported on {target} but has no runtime assets."); 295Log.LogError($"{ContractName} should be supported on {target} but has no runtime assets."); 309Log.LogError($"{ContractName} should support API version {supportedVersion} on {target} but {implementationAssembly.LocalPath} was found to support {implementationVersion?.ToString() ?? "<unknown version>"}."); 318Log.LogError($"{ContractName} has mismatched compile ({referenceAssemblyVersion}) and runtime ({implementationVersion}) versions on {target}."); 325Log.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."); 332Log.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."); 352Log.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."); 383Log.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."); 400Log.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."); 407Log.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}."); 417Log.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."); 430Log.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."); 441Log.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."); 467Log.LogError($"Could not parse Framework {framework.ItemSpec}. {ex}"); 473Log.LogError($"Did not recognize {framework.ItemSpec} as valid Framework."); 481Log.LogError($"Framework {fx} has been listed in Frameworks more than once."); 513Log.LogError($"Could not parse TargetFramework {fxString} as a SupportedFramework. {ex}"); 519Log.LogError($"Did not recognize TargetFramework {fxString} as a SupportedFramework."); 531Log.LogError($"Could not parse Version {version} on SupportedFramework item {supportedFramework.ItemSpec}. {ex}"); 538Log.LogError($"SupportedFramework {fx} was specified but is not part of the Framework list to use for validation.");
ValidationTask.cs (1)
118Log.LogError($"Unknown suppression {keyString}");