Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.61 KB

BUILD.md

File metadata and controls

31 lines (25 loc) · 1.61 KB

Build

  1. Download alpaca_zorro_plugin:

    git clone https://github.com/kzhdev/alpaca_zorro_plugin.git

  2. Download dependencies:

    cd alpaca_zorro_plugin

    git submodule update --init --recursive

  3. Open the project in Visual Studio

  4. Edit alpaca_zorro_plugin.vcxproj.user (Optional) After opening the soluion in Visual Studio, an alpaca_zorro_plugin.vcxproj.user file should be created in alpaca_zorro_plugin folder. Open the alpaca_zorro_plugin.vcxproj.user file in any editor and add the <LocalDebuggerCommand> and <OutDir> in the file. It should point to the Zorro.exe and plugin folder in your machine. This will put the build AlpacaZorroPlugin.dll directly into Zorro's plugin folder. And launch Zorro automatically when debugging the project in Visual Studio.

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
       <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
         <LocalDebuggerCommand>C:\Zorro_2.30\Zorro.exe</LocalDebuggerCommand>
         <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
         <OutDir>C:\Zorro_2.30\Plugin</OutDir>
       </PropertyGroup>
       <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
         <LocalDebuggerCommand>C:\Zorro_2.30\Zorro.exe</LocalDebuggerCommand>
         <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
         <OutDir>C:\Zorro_2.30\Plugin</OutDir>
       </PropertyGroup>
    </Project>

    If the .user file not created, you can manually create the file and the contents.