15 references to SourceRoot
Microsoft.SourceLink.Common (15)
GenerateSourceLinkFile.cs (9)
120var mappedPath = root.GetMetadata(Names.SourceRoot.MappedPath); 126Log.LogError(Resources.MustEndWithDirectorySeparator, isMapped ? Names.SourceRoot.MappedPathFullName : Names.SourceRoot.Name, localPath); 132Log.LogError(Resources.MustNotContainWildcard, isMapped ? Names.SourceRoot.MappedPathFullName : Names.SourceRoot.Name, localPath); 136var url = root.GetMetadata(Names.SourceRoot.SourceLinkUrl); 146Log.LogError(Resources.MustContainSingleWildcard, Names.SourceRoot.SourceLinkUrlFullName, url); 177revision = root.GetMetadata(Names.SourceRoot.RevisionId); 180if (string.IsNullOrEmpty(revision) && string.IsNullOrEmpty(root.GetMetadata(Names.SourceRoot.SourceControl)))
parent\Common\Utilities\Names.cs (6)
11public const string Name = nameof(SourceRoot); 23public const string MappedPathFullName = nameof(SourceRoot) + "." + nameof(MappedPath); 24public const string SourceLinkUrlFullName = nameof(SourceRoot) + "." + nameof(SourceLinkUrl); 25public const string RepositoryUrlFullName = nameof(SourceRoot) + "." + nameof(RepositoryUrl); 26public const string ScmRepositoryUrlFullName = nameof(SourceRoot) + "." + nameof(ScmRepositoryUrl); 27public const string RevisionIdFullName = nameof(SourceRoot) + "." + nameof(RevisionId);