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

LoadIncludeText() public method

The engine calls this method based on the optional include directive if the user has specified it in the text template.
public LoadIncludeText ( string requestFileName, string &content, string &location ) : bool
requestFileName string
content string
location string
return bool
        public bool LoadIncludeText(string requestFileName, out string content, out string location)
        {
            content = string.Empty;
            location = string.Empty;
            var resolved = ResolveFilePathPrivate(requestFileName);
            if (File.Exists(resolved))
            {
                location = Path.GetFullPath(resolved);
                content = File.ReadAllText(resolved);
                return true;
            }

            // TODO: Find file (use dte)
            return false;
        }