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