private bool TryAddAssemblyReference([NotNull] FileSystemPath path) { var cookie = AssemblyFactory.AddRef(path, "T4", ResolveContext); if (cookie != null) { MyAssemblyReferences.Add(path, cookie); } return(true); }
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); }