AIT.Tools.VisualStudioTextTransform.VisualStudioTextTemplateHost.ResolveAllPathsPrivate C# (CSharp) Method

ResolveAllPathsPrivate() private method

private ResolveAllPathsPrivate ( string path ) : IEnumerable
path string
return IEnumerable
        private IEnumerable<string> ResolveAllPathsPrivate(string path)
        {
            Source.TraceEvent(TraceEventType.Verbose, 0, Resources.VisualStudioTextTemplateHost_ResolvePathPrivate_resolving__0_, path);
            var possiblePaths = ReplaceProjectVarsPrivate(path);

            // Distinct because Path.Combine ignores the first parameter when the second one is a full path -> duplicates.
            var paths = possiblePaths.SelectMany(PossibleFullPaths).Distinct().ToList();

            foreach (var possiblePath in paths)
            {
                Source.TraceEvent(TraceEventType.Verbose, 0, "Considering {0}", possiblePath);
            }
            return paths;
        }