Volume 2 Build: Difference between revisions
From OuroDev
Line 26: | Line 26: | ||
: Begin building City of Heroes by running ".\build.ps1" | : Begin building City of Heroes by running ".\build.ps1" | ||
:: [[File:CoX-Build-2.png|thumb|none]] | :: [[File:CoX-Build-2.png|thumb|none]] | ||
: Eventually the build will finish( | : Eventually the build will finish (It can takeover 40 minutes to build, or as little as 15 depending upon your machine). | ||
:: [[File:CoX-Build-3.png|thumb|none]] | :: [[File:CoX-Build-3.png|thumb|none]] | ||
:: [[File:CoX-Build-4.png|thumb|none]] | :: [[File:CoX-Build-4.png|thumb|none]] | ||
: The Master Solution builds various 3rd party projects, the AuthServer and art tools. But these could be built individually if desired (such as the AuthServer {{ms|C:\GitHub\CoX\Source\AuthServer\src\AuthServer\AuthServer.sln}}). |
Revision as of 05:36, 20 June 2019
Summary
This guide tells you how to build and compile the Ouroboros code stream. At the time of writing, this is being updated to run in Visual Studio 2019, but some components still require 2010.
Required Software
- Visual Studio 2010 Professional
- Visual Studio 2019, Community edition or higher
- Git for Windows or GitHub Desktop or SourceTree
Install GitHub Desktop and Acquire Source
- You need to download and install GitHub Desktop.
- Open GitHub Desktop, Select File, and Clone a Repository.
- Select the URL tab, enter "https://git.ourodev.com/CoX/Source.git" into the first blank and a path where to store the source locally such as "C:\GitHub\CoX\Source".
- Select the URL tab, enter "https://git.ourodev.com/CoX/Source.git" into the first blank and a path where to store the source locally such as "C:\GitHub\CoX\Source".
- After the download finishes you can close GitHub Desktop for now.
Build City of Heroes from Source
- Ensure you have MSBuild included in your path. This can typically be found in locations such as
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
- Start a powershell prompt as administrator
- Enter
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
into the terminal and type "A" to auto accept all. - Open a command prompt that is set up for your version of visual studio:
- If you have Visual Studio 2019 installed, then start a developer command prompt for Visual Studio (check the start menu).
- If you only have 2010 installed, then run cmd, and in the command prompt run
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat
.
- From this command prompt, run:
powershell
- Naviate to "C:\GitHub\CoX\Source\MasterSolution" and run build.ps1
- Begin building City of Heroes by running ".\build.ps1"
- Eventually the build will finish (It can takeover 40 minutes to build, or as little as 15 depending upon your machine).
- The Master Solution builds various 3rd party projects, the AuthServer and art tools. But these could be built individually if desired (such as the AuthServer
C:\GitHub\CoX\Source\AuthServer\src\AuthServer\AuthServer.sln
).