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