Building WELM is fairly straightforward.
- Install Visual Studio 2017 or later.
- Open the welm.sln file with Visual Studio.
- If this is the first time building the project, install the following nuget packages from the Package Manager Console in Visual Studio using these commands:
- docopt.net: Get-Project WelmConsole | Install-Package docopt.net (You may need to delete the T4 files and main.usage.txt file or you will get an exception when compiling: An exception was thrown while trying to compile the transformation code)
- ilmerge: Get-Project WelmConsole | Install-Package ilmerge
- CSVHelper: Get-Project WelmLibrary | Install-Package CsvHelper -Version 2.16.3 (This is the last version that supports .Net 4.0)
- Newtonsoft.Json: Get-Project WelmLibrary | Install-Package Newtonsoft.Json
- NLog: Get-Project WelmConsole,WelmLibrary | Install-Package NLog
- NLog.Schema: Get-Project WelmConsole,WelmLibrary | Install-Package NLog.Schema
- If this is not the first time building the project, then update each nuget package, except for CsvHelper, by using the Update-Package command in the Package Manager Console in Visual Studio.
- Get-Project WelmConsole UpdatePackage docopt.net
- Get-Project WelmConsole UpdatePackage ilmerge
- Get-Project WelmLibrary UpdatePackage Newtonsoft.Json
- Get-Project WelmConsole,WelmLibrary UpdatePackage NLog
- Get-Project WelmConsole,WelmLibrary UpdatePackage NLog.Schema
- Build a Release or Debug configuration. A dist folder will be created inside the welm folder. When building a Release configuration and the ILmerge nuget package is installed, then the release folder will contain a single binary (welm.exe) along with welm.bat, NLog.config, and Install-Features.ps1. Copy these files to a system that you want to run WELM on.