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