To create a new SnCore-based project in a remote depot (in your own source control) you should mirror SnCore branch and then create a branch off that mirror. Thus you can pickup SnCore updates and integrate them to the child branch(es). This process is known as reflection.
-
To do ...
This is a little involved for right now.
-
Edit sncore.sln and replace http://localhost/SnCore by http://localhost/MyProject. This sets new virtual directories within IIS.
-
Edit SnCore.omproj and replace all C:\source\SnCore by C:\source\MyProject (adjust to your directory).
-
Edit SnCore.Data/SnCore.npersist and replace Catalog=SnCore; by Catalog=MyProject; and catalog="SnCore" by catalog="MyProject".
-
Create a database MyProject and populate it with data from SnCore.Data\SnCoreSqlServer.sql with query analyzer.
-
Create a full text catalog MyProject.
-
Grant database owner access to the newly created database to the ASPNET (Windows XP) or NETWORK SERVICE (Windows 2003) user.
-
Edit SnCore.Data\PopulateData.sql and replace [SnCore] full text catalog references with [MyProject].
-
Populate initial table data from SnCore.Data\PopulateData.sql. You will have to insert the location of the SnCore.Data directory for the BULK INSERT statement.
-
It's a good time to test data to object model synchronization, see Data (Puzzle and NHibernate).
-
Edit SnCore.Docs/SnCore.Docs.doxygen and replace PROJECT_NAME = SnCore by PROJECT_NAME = MyProject. You may later drop most of the documentation such as licensing or pricing information and replace it with your project specifics along with images or banners, edit the Header.html and Footer.html, etc.
-
Edit SnCore.Web\Web.config, replace references to the SnCore catalog by MyProject.
-
Open SnCore.sln with Visual Studio. This will create the new virtual web directories. You will be prompted to upgrade these to the right version of ASP.NET. Configure the MyProjectWeb directory to use Default.aspx for the home page in IIS.
-
Replace localhost/SnCore with localhost/MyProject in SnCore.Web.Deploy/SnCore.Web.Deploy.wdproj files.
-
You may want to switch the namespace of the web services. Bulk replace http://www.vestris.com/sncore/ns/ with http://www.myproject.com/ns/ in all SnCore.Web\.cs files.
-
Replace SnCore with MyProject in SnCore.Deploy/Package.cmd.
-
Build the project starting with the MyProject.BackEndService. Navigate to http://localhost/RJen.BackEndServices/ and check that it runs and that the WSDL generated does not contain any references to SnCore.
-
Run Unit Tests.
-
Replace toplogo.jpg in SnCore.Web/images/site and SnCore.Docs.
-
Edit SnCore.master for menus and general titles.
-
Edit Default.aspx for front-page.
-
Edit Style.css for stylesheet.
|