35 references to Strings
NuGet.Build.Tasks (21)
BuildTasksUtility.cs (6)
286
log.LogMinimal(
Strings
.NoProjectsToRestore);
390
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(projectDirectory));
395
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(projectName));
723
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(projectFullPath));
740
throw new ArgumentException(
Strings
.Argument_Cannot_Be_Null_Or_Empty, nameof(projectDirectory));
745
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 (14)
MSBuildStaticGraphRestore.cs (9)
145
MSBuildLogger.LogInformation(string.Format(CultureInfo.CurrentCulture,
Strings
.Log_NoProjectsForRestore));
200
LoggingQueue.TaskLoggingHelper.LogError(
Strings
.Error_DgSpecGenerationFailed);
211
LoggingQueue.TaskLoggingHelper.LogError(
Strings
.Error_MissingRestoreGraphOutputPath);
298
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PackageDownload_NoVersion, id));
308
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
Strings
.Error_PackageDownload_OnlyExactVersionsAreAllowed, id, versionRange.OriginalString));
706
Strings
.Log_ProjectsInSolutionNotKnowntoMSBuild,
860
MSBuildLogger.LogMinimal(
Strings
.DeterminingProjectsToRestore);
941
MSBuildLogger.LogDebug(string.Format(CultureInfo.CurrentCulture,
Strings
.CreatedDependencyGraphSpec, sw.ElapsedMilliseconds));
1273
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());