Skip to content

10. Building From Source

James231 edited this page Jun 9, 2020 · 3 revisions

Follow these steps to build the tool from source:

  1. Install the .NET Core SDK (3.1 or later). If you are on Windows, then installing Visual Studio 2019 with the .NET Core Workload will install the latest version.
  2. Clone the repository with:
    git clone https://github.com/James231/Documentation-Templater.git
  3. Open a terminal to the src/DocumentationTemplater directory.
  4. Enter the command following command to build a single file excutable from the project. In the command replace win10-x64 with your target platform (see list here):
    dotnet publish -r win10-x64 -c Release -p:PublishSingleFile=true --self-contained false
    Change to --self-contained true if you do not want to bundle the .NET Core runtime in the executable. The file this produces will be in the bin/Release/netcoreapp3.1 folder.
  5. Copy the executable into the sample directory (alongside Input and Template folders) and run it to generate a documentation in the Output folder.
Clone this wiki locally