Ejemplo n.º 1
0
        private bool TryAddAssemblyReference([NotNull] FileSystemPath path)
        {
            var cookie = AssemblyFactory.AddRef(path, "T4", ResolveContext);

            if (cookie != null)
            {
                MyAssemblyReferences.Add(path, cookie);
            }
            return(true);
        }
Ejemplo n.º 2
0
        private bool TryAddAssemblyReference([NotNull] VirtualFileSystemPath path)
        {
            var cookie = AssemblyFactory.AddRef(new AssemblyLocation(path), "T4", ResolveContext);

            if (cookie == null)
            {
                return(false);
            }
            MyAssemblyReferences.Add(path, cookie);
            return(true);
        }