Depending on how you set up your integration, you may not need any references. When I integrated GSP into
www.galleryserverpro.com for the demo, I didn't use any references at all to the GSP dll's. I also did not add any of the contents of the gs directory as project items. They were present in the directory but not added to Visual Studio. The page containing the demo gallery looks like this:
Code:<%@ Page Title="" Language="C#" MasterPageFile="~/master/global.Master" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="TIS.GSPWeb.demo" ValidateRequest="false" %>
<%@ MasterType VirtualPath="~/master/global.master" %>
<%@ Register TagPrefix="gsp" Namespace="GalleryServerPro.Web" Assembly="GalleryServerPro.Web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpSideBar" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="sm" runat="server" EnableScriptGlobalization="true" />
<div id="content" style="padding:0 0 0 3px;">
<gsp:Gallery ID="gallery1" runat="server" />
</div>
</asp:Content>
Because the project doesn't have a reference to GalleryServerPro.Web.dll, there is a little squiggle under the <gsp:Gallery ... /> declaration that says "Unrecognized tag prefix or device filter 'gsp'", but when I run the page it still works. That's because ASP.NET eventually finds the dll in the bin directory even without the direct reference.
The reason I did it this way is to keep my
www.galleryserverpro.com project small and quick to publish. If all the GSP files were part of the VS project, it would take forever to publish. When I *do* want to publish new gallery files (like when I release a new build), I copy them separately using FileZilla. This technique effectively keeps my
www.galleryserverpro.com files separate from my Gallery Server Pro files.
This technique may not work for you, as you may want to keep it all in Visual Studio. In that case you will probably need references to all the dll's except for:
GalleryServerPro.Business.Wpf.dll
GalleryServerPro.Data.SQLite.dll (only needed if using SQLite)
GalleryServerPro.Data.SqlServer.dll (only needed if using SQL Server)
Hope this helps.
Roger Martin
Creator and Lead Developer of Gallery Server Pro