152 references to Strings
Microsoft.NET.Build.Tasks (151)
ApplyImplicitVersions.cs (1)
55buildWarnings.Add(string.Format(Strings.PackageReferenceVersionNotRecommended, packageReference.ItemSpec, versionOnPackageReference));
AssetsFileResolver.cs (1)
124throw new BuildErrorException(Strings.IncorrectPackageRoot, pkgRoot, libraryPath);
CheckForDuplicateFrameworkReferences.cs (2)
48Log.LogWarning(Strings.FrameworkReferenceOverrideWarning, item.ItemSpec, MoreInformationLink); 58Log.LogError(Strings.FrameworkReferenceDuplicateError, duplicateItemGroup.Key);
CheckForDuplicateItems.cs (1)
47string message = string.Format(CultureInfo.CurrentCulture, Strings.DuplicateItemsError,
CheckForImplicitPackageReferenceOverrides.cs (1)
40Log.LogWarning(Strings.PackageReferenceOverrideWarning, item.ItemSpec, MoreInformationLink);
CheckForUnsupportedWinMDReferences.cs (2)
63Log.LogError(Strings.WinMDTransitiveReferenceNotSupported, Path.GetFileName(referencePath.ItemSpec)); 73Log.LogError(Strings.WinMDReferenceNotSupportedOnTargetFramework, TargetFrameworkMoniker, Path.GetFileName(winMDReference.ItemSpec));
ConflictResolver.cs (12)
173string conflictMessage = string.Format(CultureInfo.CurrentCulture, Strings.EncounteredConflict_Info, 190LogMessage(conflictMessage, Strings.CouldNotDetermineWinner_DoesNotExist_Info, 205LogMessage(conflictMessage, Strings.CouldNotDetermineWinner_NotAnAssembly_Info, 231LogMessage(conflictMessage, Strings.ChoosingAssemblyVersion_Info, 256LogMessage(conflictMessage, Strings.CouldNotDetermineWinner_NoFileVersion_Info, nonVersion); 279LogMessage(conflictMessage, Strings.ChoosingFileVersion_Info, 300LogMessage(conflictMessage, Strings.ChoosingPreferredPackage_Info, item1.DisplayName); 307LogMessage(conflictMessage, Strings.ChoosingPreferredPackage_Info, item2.DisplayName); 316LogMessage(conflictMessage, Strings.ChoosingPlatformItem_Info, item1.DisplayName); 322LogMessage(conflictMessage, Strings.ChoosingPlatformItem_Info, item2.DisplayName); 342LogMessage(conflictMessage, Strings.ChoosingCopyLocalArbitrarily_Info, arbitraryWinner.DisplayName); 349LogMessage(conflictMessage, Strings.CouldNotDetermineWinner_EqualVersions_Info);
CreateAppHost.cs (5)
83throw new BuildErrorException(Strings.InvalidAppHostDotNetSearch, locationItem.ItemSpec); 122string.Format(Strings.AppHostCreationFailedWithRetry, 136throw new BuildErrorException(Strings.FileNameIsTooLong, ex.LongName); 140throw new BuildErrorException(Strings.AppHostSigningFailed, ex.Message, ex.ExitCode.ToString()); 144throw new BuildErrorException(Strings.AppHostHasBeenModified, AppHostSourcePath, BitConverter.ToString(ex.MissingPattern));
CreateComHost.cs (3)
48Log.LogError(Strings.TypeLibraryDoesNotExist, ex.Path); 52Log.LogError(Strings.InvalidTypeLibraryId, ex.Id.ToString(), ex.Path); 56Log.LogError(Strings.InvalidTypeLibrary, ex.Path);
CreateWindowsSdkKnownFrameworkReferences.cs (2)
45Log.LogError(Strings.CantSpecifyBothProperties, nameof(WindowsSdkPackageVersion), nameof(WindowsSdkPackageMinimumRevision)); 50Log.LogError(Strings.CantSpecifyBothProperties, nameof(UseWindowsSDKPreview), nameof(WindowsSdkPackageMinimumRevision));
DependencyContextBuilder.cs (1)
849throw new BuildErrorException(Strings.CannotFindProjectInfo, library.Name);
FrameworkListReader.cs (3)
28throw new BuildErrorException(Strings.FrameworkListPathNotRooted, frameworkListPath); 81string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingFrameworkListInvalidValue, 92string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingFrameworkListInvalidValue,
GenerateClsidMap.cs (4)
34Log.LogError(Strings.ClsidMapInvalidAssembly, IntermediateAssembly); 43Log.LogError(Strings.ClsidMapExportedTypesRequireExplicitGuid, missingGuid.TypeName); 47Log.LogError(Strings.ClsidMapConflictingGuids, conflictingGuid.TypeName1, conflictingGuid.TypeName2, conflictingGuid.Guid.ToString()); 51Log.LogError(Strings.ClsidMapInvalidAssembly, IntermediateAssembly);
GenerateDepsFile.cs (1)
287Log.LogWarning(Strings.NonPortableRuntimeIdentifierDetected, string.Join(", ", affectedRids.Distinct()), string.Join(", ", affectedLibs.Distinct()));
GenerateRegFreeComManifest.cs (2)
52Log.LogError(Strings.TypeLibraryDoesNotExist, ex.Path); 56Log.LogError(Strings.InvalidTypeLibrary, ex.Path);
GenerateRuntimeConfigurationFiles.cs (2)
86Log.LogWarning(Strings.SkippingAdditionalProbingPaths); 94Log.LogError(Strings.InvalidRollForwardValue, RollForward, string.Join(", ", RollForwardValues));
GenerateShims.cs (3)
126Log.LogWarning(Strings.AppHostCustomizationRequiresWindowsHostWarning); 138throw new BuildErrorException(Strings.FileNameIsTooLong, ex.LongName); 142throw new BuildErrorException(Strings.AppHostHasBeenModified, resolvedApphostAssetPath, BitConverter.ToString(ex.MissingPattern));
GenerateToolsSettingsFile.cs (1)
58Strings.UnsupportedToolCommandRunner,
GetAssemblyVersion.cs (1)
34Log.LogError(Strings.InvalidNuGetVersionString, NuGetVersion);
GetPackagesToPrune.cs (1)
198log.LogError(Strings.PrunePackageDataNotFound, key.TargetFrameworkIdentifier, key.TargetFrameworkVersion, frameworkReference);
JoinItems.cs (1)
55throw new BuildErrorException(Strings.InvalidItemSpecToUse, ItemSpecToUse);
LockFileCache.cs (5)
27throw new BuildErrorException(Strings.AssetsFileNotSet); 31throw new BuildErrorException(Strings.AssetsFilePathNotRooted, path); 87string.Format(Strings.ErrorReadingAssetsFile, ex.Message), 97throw new BuildErrorException(Strings.AssetsFileNotFound, path); 120string.Format(Strings.ErrorReadingAssetsFile, message.Message));
LockFileExtensions.cs (2)
42message = string.Format(Strings.AssetsFileMissingTarget, lockFile.Path, targetMoniker, frameworkString); 46message = string.Format(Strings.AssetsFileMissingRuntimeIdentifier, lockFile.Path, targetMoniker, frameworkString, runtimeIdentifier);
MessageBase.cs (2)
56string? format = Strings.ResourceManager.GetString(ResourceName, Strings.Culture);
Microsoft.NET.Build.Tasks.Strings.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(Strings)));
NugetContentAssetPreprocessor.cs (2)
26throw new InvalidOperationException(Strings.AssetPreprocessorMustBeConfigured); 44throw new BuildErrorException(Strings.UnrecognizedPreprocessorToken, $"${token}$", originalAssetPath);
NuGetPackageResolver.cs (1)
51string.Format(Strings.PackageNotFound, package.Name, package.Version));
PickBestRid.cs (2)
42Log.LogError(Strings.RuntimeGraphFileDoesNotExist, RuntimeGraphPath); 51Log.LogError(Strings.UnableToFindMatchingRid, TargetRid, string.Join(",", SupportedRids), RuntimeGraphPath);
PlatformManifestReader.cs (4)
20string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.CouldNotLoadPlatformManifest, 42string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifest, 59string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifestInvalidValue, 69string errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.ErrorParsingPlatformManifestInvalidValue,
PrepareForReadyToRunCompilation.cs (1)
110Log.LogError(Strings.Crossgen5CannotEmitSymbolsInCompositeMode);
ProcessFrameworkReferences.cs (15)
213Log.LogError(Strings.WindowsDesktopFrameworkRequiresWindows); 454Log.LogError(Strings.ReadyToRunNoValidRuntimePackageError); 464Log.LogError(Strings.AotUnsupportedTargetFramework); 467Log.LogError(Strings.AotUnsupportedHostRuntimeIdentifier, NETCoreSdkRuntimeIdentifier); 470Log.LogError(Strings.AotUnsupportedTargetRuntimeIdentifier, EffectiveRuntimeIdentifier!); 487Log.LogError(Strings.AotUnsupportedTargetFramework); 492Log.LogWarning(Strings.IsAotCompatibleUnsupported, MinNonEolTargetFrameworkForAot!); 496Log.LogError(Strings.PublishTrimmedRequiresVersion30); 501Log.LogWarning(Strings.IsTrimmableUnsupported, MinNonEolTargetFrameworkForTrimming!); 508Log.LogWarning(Strings.EnableSingleFileAnalyzerUnsupported, MinNonEolTargetFrameworkForSingleFile!); 515Log.LogError(Strings.ILLinkNoValidRuntimePackageError); 530Log.LogWarning(Strings.AspNetCorePackUnsupportedTargetFramework); 655Log.LogError(Strings.ConflictingRuntimePackInformation, runtimePackDescriptionForErrorMessage, 702Log.LogError(Strings.RuntimeIdentifierNotRecognized, runtimeIdentifier); 1096Log.LogError(Strings.CouldNotGetPackVersionFromWorkloadManifests, packID);
ProduceContentAssets.cs (3)
141Log.LogWarning(Strings.DuplicatePreprocessorToken, duplicatedPreprocessorKey, preprocessorValues[duplicatedPreprocessorKey]); 206throw new BuildErrorException(Strings.ContentPreproccessorParameterRequired, nameof(ProduceContentAssets), nameof(ContentPreprocessorOutputDirectory)); 233Log.LogWarning(Strings.ContentItemDoesNotProvideOutputPath, pathToFinalAsset, MetadataKeys.CopyToOutput, MetadataKeys.OutputPath, MetadataKeys.PPOutputPath);
ResolveAppHosts.cs (5)
261Log.LogError(Strings.NoAppHostAvailable, runtimeIdentifier); 265Log.LogMessage(Strings.NoAppHostAvailable, runtimeIdentifier); 273Log.LogError(Strings.RuntimeIdentifierNotRecognized, runtimeIdentifier); 277Log.LogMessage(Strings.RuntimeIdentifierNotRecognized, runtimeIdentifier); 307Strings.TargetingApphostPackMissingCannotRestore,
ResolvePackageAssets.cs (9)
345throw new BuildErrorException(Strings.AssetsFileNotSet); 549task.Log.LogMessage(MessageImportance.High, Strings.UnableToUsePackageAssetsCache_Info); 1287WriteItem(string.Format(Strings.UnsupportedRuntimeIdentifier, _task.EffectiveRuntimeIdentifier)); 1343WriteItem(string.Format(Strings.MismatchedPlatformPackageVersion, 1651_task.Log.LogWarning(Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale); 1658_task.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsIncorrectlyCasedLocale, package.Name, package.Version.ToNormalizedString(), locale, normalizedLocale); 1668_task.Log.LogWarning(Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName); 1675_task.Log.LogMessage(MessageImportance.Low, Strings.PackageContainsUnknownLocale, package.Name, package.Version.ToNormalizedString(), cnf.InvalidCultureName); 2032throw new BuildErrorException(Strings.CannotFindApphostForRid, runtimeTarget.RuntimeIdentifier);
ResolvePackageDependencies.cs (2)
416throw new BuildErrorException(Strings.UnexpectedFileType, fileKey, fileType, currentFileType); 429throw new BuildErrorException(Strings.ProjectAssetsConsumedWithoutMSBuildProjectPath, package.Name, ProjectAssetsFile);
ResolveReadyToRunCompilers.cs (7)
59Log.LogError(Strings.ReadyToRunNoValidRuntimePackageError); 90Log.LogError(Strings.ReadyToRunNoValidRuntimePackageError); 97Log.LogError(Strings.ReadyToRunNoValidRuntimePackageError); 106Log.LogError(Strings.ReadyToRunTargetNotSupportedError); 147Log.LogError(Strings.ReadyToRunNoValidRuntimePackageError); 156Log.LogError(Strings.ReadyToRunNoValidRuntimePackageError); 175Log.LogError(Strings.ReadyToRunTargetNotSupportedError);
ResolveRuntimePackAssets.cs (5)
53Log.LogError(Strings.NoRuntimePackAvailable, unavailableRuntimePack.ItemSpec, 126Log.LogError(Strings.RuntimePackNotRestored_TransitiveDisabled, runtimePack.ItemSpec); 130Log.LogError(Strings.RuntimePackNotDownloaded, runtimePack.ItemSpec, 154throw new BuildErrorException(string.Format(Strings.RuntimeListNotFound, runtimeListPath)); 241Log.LogError(Strings.DuplicateRuntimePackAsset, assetSubPath);
ResolveTargetingPackAssets.cs (5)
139errors.Add(Strings.UnknownFrameworkReference_MauiEssentials); 143errors.Add(string.Format(Strings.UnknownFrameworkReference, frameworkReference.Name)); 151errors.Add(string.Format(Strings.TargetingPackNotRestored_TransitiveDisabled, frameworkReference.Name)); 155errors.Add(string.Format(Strings.TargetingPackNeedsRestore, frameworkReference.Name)); 160Strings.TargetingApphostPackMissingCannotRestore,
RunReadyToRunCompiler.cs (17)
91Log.LogError(Strings.CrossgenToolMissingInPDBCompilationMode); 99Log.LogError(Strings.Crossgen2ToolMissingWhenUseCrossgen2IsSet); 104Log.LogError(Strings.Crossgen2ToolExecutableNotFound, Crossgen2Tool.ItemSpec); 110Log.LogError(Strings.DotNetHostExecutableNotFound, hostPath); 118Log.LogError(Strings.JitLibraryNotFound, jitPath); 125Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.JitPath); 133Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetOS); 138Log.LogError(Strings.Crossgen2MissingRequiredMetadata, MetadataKeys.TargetArch); 147Log.LogError(Strings.CrossgenToolMissingWhenUseCrossgen2IsNotSet); 152Log.LogError(Strings.CrossgenToolExecutableNotFound, CrossgenTool.ItemSpec); 157Log.LogError(Strings.JitLibraryNotFound, MetadataKeys.JitPath); 170Log.LogError(Strings.DiaSymReaderLibraryNotFound, DiaSymReader); 177Log.LogError(Strings.MissingOutputPDBImagePath); 182Log.LogError(Strings.PDBGeneratorInputExecutableNotFound, _outputR2RImage); 195Log.LogError(Strings.InputAssemblyNotFound, _inputAssembly); 206Log.LogError(Strings.MissingOutputR2RImageFileName); 212Log.LogError(Strings.MissingOutputPDBImagePath);
ShowMissingWorkloads.cs (2)
60Strings.WorkloadNotInstalled, string.Join(" ", suggestedWorkloads.Select(w => w.Id))); 65Log.LogError(Strings.WorkloadNotAvailable, string.Join(" ", unsatisfiablePacks));
ShowPreviewMessage.cs (1)
23Log.LogMessage(MessageImportance.High, Strings.UsingPreviewSdk);
SingleProjectInfo.cs (2)
87throw new BuildErrorException(Strings.MissingItemMetadata, MetadataKeys.MSBuildSourceProjectFile, "ReferencePath", projectReferencePath.ItemSpec); 108throw new BuildErrorException(Strings.MissingItemMetadata, MetadataKeys.MSBuildSourceProjectFile, "ReferenceSatellitePath", projectReferenceSatellitePath.ItemSpec);
StoreArtifactParser.cs (1)
24throw new BuildErrorException(Strings.IncorrectTargetFormat, filterFile);
TypeLibraryDictionaryBuilder.cs (4)
29errorsLocal.Add(string.Format(Strings.InvalidTypeLibraryId, idMetadata, typeLibraries[0].ItemSpec)); 43errorsLocal.Add(string.Format(Strings.MissingTypeLibraryId, typeLibrary.ItemSpec)); 49errorsLocal.Add(string.Format(Strings.InvalidTypeLibraryId, idMetadata, typeLibrary.ItemSpec)); 55errorsLocal.Add(string.Format(Strings.DuplicateTypeLibraryIds, idMetadata, typeLibraryIdMap[id], typeLibrary.ItemSpec));
ValidateExecutableReferences.cs (2)
108Log.LogError(Strings.SelfContainedExeCannotReferenceNonSelfContained, project.ItemSpec); 112Log.LogError(Strings.NonSelfContainedExeCannotReferenceSelfContained, project.ItemSpec);
WriteAppConfigWithSupportedRuntime.cs (1)
162throw new BuildErrorException(Strings.AppConfigRequiresRootConfiguration);
Microsoft.NET.Build.Tasks.UnitTests (1)
GivenThatWeHaveErrorCodes.cs (1)
123var set = Strings.ResourceManager.GetResourceSet(