This project is read-only.

Building and Installing

Downloading source

  1. Open Visual Studio Team Suite 2008
  2. Click File -> Open -> Team Project
  3. Use your credentials to setup access to the source code
  4. use Source Control Explorer an go to some version branch, say for example 0.74 and click "Get Latest Version"
  5. Click on OpenTrader.sln and this should be fine

Building

  1. A rebuild solution is just what you need

Installing

  1. Assemblies from plugins and forge are stored into a database, it must be created first. Use :
     cmd> sqmcmd -S .\SQLEXPRESS
     1> create database OpenTrader_0.74
     2> go
  1. You're ready to install the database. Use database project "Org.OpenTrader.Framework.DataModel" and click "Deploy", it should create the database correctly. (verify in project properties that the database you use is the one you just created)
  2. Review the AppConfig.xml files from "Executables" projects to check if they match the right database
    <!-- OpenTrader needs "OpenTraderEntities" connection string to work, adapt samples if needed -->
    <add name="OpenTraderEntities" connectionString="metadata=res://*/Framework.Entities.OpenTraderEntities.csdl|res://*/Framework.Entities.OpenTraderEntities.ssdl|res://*/Framework.Entities.OpenTraderEntities.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.\SQLEXPRESS;Initial Catalog=*OpenTrader_0_74*;Integrated Security=True;Pooling=False;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
  1. Just rebuild the solution and it should now update database correctly with code assemblies from the solution. The output windows should show something like :

   C:\OpenTrader\\Scripts\register-resources.bat OpenTrader_x86 Debug C:\OpenTrader\ \OpenTrader\OpenTrader_x86\Debug\
    **
    ** Deployment Script Started 
    **   source=\OpenTrader\OpenTrader_x86\Debug\\OpenTrader\OpenTrader_x86\Debug 
    **   destination=\OpenTrader\OpenTrader_x86\Debug\\OpenTrader\OpenTrader_x86\Debug 
    **   platform=OpenTrader_x86 
    **   configuration=Debug 
    **   slndir=C:\OpenTrader\
    **
    Running: cd /D \OpenTrader\OpenTrader_x86\Debug\\OpenTrader\OpenTrader_x86\Debug
    Running: \OpenTrader\OpenTrader_x86\Debug\\OTCtl.exe batch run "C:\OpenTrader\\Scripts\register-resources.otctl" platform="OpenTrader_x86" configuration="Debug" version=""
    The system cannot find the path specified.
    Executing batch file C:\OpenTrader\\Scripts\register-resources.otctl
    Executing "resource register \\\Debug\Framework Org.OpenTrader.Framework.dll"
    Will now register resources under \Debug\Framework
    Loaded 544256 bytes from file Org.OpenTrader.Framework.dll
    Updating
    Updated/Created 1 Resource(s)
    Executing "resource register \\\Debug\Framework Org.OpenTrader.Framework.pdb"
    Will now register resources under \Debug\Framework
    Loaded 763392 bytes from file Org.OpenTrader.Framework.pdb
    Updating
    Updated/Created 1 Resource(s)
    Executing "resource register \\\Debug\Framework Org.OpenTrader.Framework.Forge.dll"
    Will now register resources under \Debug\Framework
    Loaded 160768 bytes from file Org.OpenTrader.Framework.Forge.dll
    ...
    Updated/Created 1 Resource(s)
    Executing "resource register \\\Debug\Framework.Plugins Interop.MBTQUOTELib.dll"
    Will now register resources under \Debug\Framework.Plugins
    Loaded 24576 bytes from file Interop.MBTQUOTELib.dll
    Updating
    Updated/Created 1 Resource(s)
    Batch execution terminated

Running

  1. Set the OTAdmUI to be the default project and hit F5. You should see the application crafting UI
Cannot resolve image macro, invalid image name or id.
  1. See the Creating an Application Context document

Last edited Jul 12, 2009 at 8:05 PM by daviddenis, version 3

Comments

No comments yet.