36 references to Strings
NuGet.Build.Tasks (21)
BuildTasksUtility.cs (6)
271log.LogMinimal(Strings.NoProjectsToRestore); 375throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(projectDirectory)); 380throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(projectName)); 708throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(projectFullPath)); 725throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(projectDirectory)); 730throw new ArgumentException(Strings.Argument_Cannot_Be_Null_Or_Empty, nameof(projectName));
CheckForDuplicateNuGetItemsTask.cs (1)
65Strings.Error_DuplicateItems,
GetReferenceNearestTargetFrameworkTask.cs (4)
78var errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedTargetFramework, $"TargetFrameworkMoniker: {CurrentProjectTargetFramework}, TargetPlatformMoniker:{CurrentProjectTargetPlatform}"); 90errorMessage = string.Format(CultureInfo.CurrentCulture, Strings.UnsupportedFallbackFramework, fallbackFramework); 177Strings.ImportsFallbackWarning, 195logger.LogError(string.Format(CultureInfo.CurrentCulture, Strings.NoCompatibleTargetFramework, project.ItemSpec, projectNuGetFramework.DotNetFrameworkName, referencedProjectFrameworkString));
NuGetMessageTask.cs (2)
13/// A task that logs a message from the localized <see cref="Strings"/> resource. 25: base(Strings.ResourceManager)
RestoreTask.cs (3)
155log.LogError(Strings.RestoreCanceled); 169log.LogWarning(Strings.NoProjectsProvidedToTask); 184log.LogInformation(Strings.Log_RestoreNoCacheInformation);
StaticGraphRestoreTaskBase.cs (4)
30: base(Strings.ResourceManager) 153Log.LogMessageFromResources(MessageImportance.Low, nameof(Strings.Log_RunningStaticGraphRestoreCommand), process.StartInfo.FileName, process.StartInfo.Arguments); 166Log.LogErrorFromResources(nameof(Strings.Error_StaticGraphRestoreFailedToStart), e.Message); 220Log.LogErrorFromResources(nameof(Strings.Error_StaticGraphNonZeroExitCode), process.ExitCode);
Strings.Designer.cs (1)
42global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NuGet.Build.Tasks.Strings", typeof(Strings).Assembly);
NuGet.Build.Tasks.Console (15)
MSBuildStaticGraphRestore.cs (10)
145MSBuildLogger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_NoProjectsForRestore)); 201LoggingQueue.TaskLoggingHelper.LogError(Strings.Error_DgSpecGenerationFailed); 212LoggingQueue.TaskLoggingHelper.LogError(Strings.Error_MissingRestoreGraphOutputPath); 299throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_NoVersion, id)); 309throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Strings.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString)); 723Strings.Log_ProjectsInSolutionNotKnowntoMSBuild, 902var message = string.Format(CultureInfo.CurrentCulture, Strings.Error_ReadingProjectInformation, projectName ?? Path.GetFileNameWithoutExtension(projectPath), innerException.Message); 952MSBuildLogger.LogMinimal(Strings.DeterminingProjectsToRestore); 1033MSBuildLogger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.CreatedDependencyGraphSpec, sw.ElapsedMilliseconds)); 1365MSBuildLogger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.ProjectEvaluationSummary, projectGraph.ProjectNodes.Count, sw.ElapsedMilliseconds, buildCount, failedBuildSubmissionCount));
Program.cs (5)
118Message = string.Format(CultureInfo.CurrentCulture, Strings.Error_StaticGraphUnhandledException, e.ToString()), 169LogError(errorWriter, Strings.Error_StaticGraphRestoreArgumentParsingFailedInvalidNumberOfArguments, args.Length); 257LogError(errorWriter, Strings.Error_StaticGraphRestoreArgumentsParsingFailedExceptionReadingStream, e.Message, e.ToString()); 267LogError(errorWriter, Strings.Error_StaticGraphRestoreArgumentsParsingFailedUnexpectedIntegerValue, count); 285LogError(errorWriter, Strings.Error_StaticGraphRestoreArgumentsParsingFailedExceptionReadingStream, e.Message, e.ToString());