public FileSystemPath Resolve(string assemblyNameOrFile, IPsiSourceFile sourceFile)
        {
            var projectFile = sourceFile.ToProjectFile();

            if (projectFile == null)
            {
                return(null);
            }
            var pathWithMacros = new T4PathWithMacros(assemblyNameOrFile, sourceFile, projectFile);

            return(Resolve(pathWithMacros));
        }
Ejemplo n.º 2
0
        private void TryAddReference([NotNull] string name)
        {
            var path = new T4PathWithMacros(name, SourceFile, ProjectFile, Solution);

            TryAddReference(path);
        }