37 references to Resources
Microsoft.Build.Tasks.Git (37)
GetUntrackedFiles.cs (1)
38
Log.LogError(
Resources
.PathMustBeAbsolute);
GitDataReader\GitConfig.cs (2)
84
throw new NotSupportedException(string.Format(
Resources
.UnsupportedRepositoryVersion, versionStr, SupportedGitRepoFormatVersion));
96
Resources
.UnsupportedRepositoryExtension, variable.Key.VariableName, string.Join(", ", s_knownExtensions)));
GitDataReader\GitConfig.Reader.cs (5)
45
=> throw new InvalidDataException(string.Format(
Resources
.ErrorParsingConfigLineInFile, _lineNumber, path,
46
(c == -1) ?
Resources
.UnexpectedEndOfFile : string.Format(
Resources
.UnexpectedCharacter, $"U+{c:x4}")));
202
throw new InvalidDataException(string.Format(
Resources
.ConfigurationFileRecursionExceededMaximumAllowedDepth, MaxIncludeDepth));
292
throw new InvalidDataException(string.Format(
Resources
.ValueOfIsNotValidPath, key.ToString(), relativePath));
GitDataReader\GitEnvironment.cs (2)
76
throw new NotSupportedException(string.Format(
Resources
.ValueOfIsNotValidConfigurationScope, GitRepositoryConfigurationScopeName, configurationScope));
155
string.Format(
Resources
.HomeRelativePathsAreNotAllowed, GitRepositoryConfigurationScopeName, LocalConfigurationScopeName, path));
GitDataReader\GitIgnore.Matcher.cs (3)
77
throw new ArgumentException(
Resources
.PathMustBeAbsolute, nameof(fullPath));
82
throw new ArgumentException(
Resources
.PathMustBeFilePath, nameof(fullPath));
97
throw new ArgumentException(
Resources
.PathMustBeAbsolute, nameof(fullPath));
GitDataReader\GitReferenceResolver.cs (2)
272
throw new InvalidDataException(string.Format(
Resources
.InvalidReference, value));
289
throw new InvalidDataException(string.Format(
Resources
.RecursionDetectedWhileResolvingReference, referenceName));
GitDataReader\GitRepository.cs (6)
143
throw new InvalidDataException(string.Format(
Resources
.ValueOfIsNotValidPath, "core.worktree", value));
198
=> WorkingDirectory ?? throw new InvalidOperationException(
Resources
.RepositoryDoesNotHaveWorkingDirectory);
235
reportDiagnostic(string.Format(
Resources
.InvalidSubmodulePath, name, path));
248
reportDiagnostic(string.Format(
Resources
.InvalidSubmodulePath, name, path));
441
throw new InvalidDataException(string.Format(
Resources
.FormatOfFileIsInvalid, path));
453
throw new InvalidDataException(string.Format(
Resources
.PathSpecifiedInFileIsInvalid, path, link));
GitOperations.cs (12)
39
logWarning?.Invoke(
Resources
.InvalidRepositoryRemoteUrl, new[] { remoteName, remoteUrl });
48
logWarning?.Invoke(
Resources
.InvalidRepositoryRemoteUrl, new[] { remoteName, remoteUrl });
74
logWarning?.Invoke(
Resources
.RepositoryHasNoRemote, new[] { repository.WorkingDirectory });
82
logWarning?.Invoke(
Resources
.RepositoryDoesNotHaveSpecifiedRemote, new[] { repository.WorkingDirectory, unknownRemoteName, remoteName });
289
logWarning(
Resources
.RepositoryHasNoCommit, Array.Empty<object>());
299
logWarning(
Resources
.SourceCodeWontBeAvailableViaSourceLink,
300
new[] { string.Format(
Resources
.SubmoduleWithoutCommit, new[] { submodule.Name }) });
320
logWarning(
Resources
.SourceCodeWontBeAvailableViaSourceLink,
321
new[] { string.Format(
Resources
.InvalidSubmoduleUrl, submodule.Name, submoduleConfigUrl) });
331
logWarning(
Resources
.SourceCodeWontBeAvailableViaSourceLink,
332
new[] { string.Format(
Resources
.InvalidSubmoduleUrl, submodule.Name, submoduleConfigUrl) });
353
logWarning(
Resources
.SourceCodeWontBeAvailableViaSourceLink, new[] { diagnostic });
RepositoryTask.cs (3)
73
Log.LogWarning(
Resources
.UnableToLocateRepository, initialPath);
97
Log.LogError(
Resources
.ErrorReadingGitRepositoryInformation, e.Message);
144
Log.LogError(
Resources
.ErrorReadingGitRepositoryInformation, e.Message);
src\sourcelink\artifacts\obj\Microsoft.Build.Tasks.Git\Release\net12.0\Microsoft.Build.Tasks.Git.Resources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
Resources
)));