From 3b63599dac6133b072f1586dc5dea120884e8ce1 Mon Sep 17 00:00:00 2001 From: Tom Chapman Date: Thu, 20 Oct 2022 11:01:32 +0000 Subject: [PATCH] Updated build steps --- BooleanExpressionParser/.vscode/tasks.json | 56 +++++++++++++++++----- README.md | 6 +++ 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/BooleanExpressionParser/.vscode/tasks.json b/BooleanExpressionParser/.vscode/tasks.json index 1c4b935..0f285ad 100644 --- a/BooleanExpressionParser/.vscode/tasks.json +++ b/BooleanExpressionParser/.vscode/tasks.json @@ -14,28 +14,62 @@ "problemMatcher": "$msCompile" }, { - "label": "publish", + "label": "watch", "command": "dotnet", "type": "process", "args": [ - "publish", - "${workspaceFolder}/BooleanExpressionParser.csproj", - "/property:GenerateFullPaths=true", - "/consoleloggerparameters:NoSummary" + "watch", + "run", + "--project", + "${workspaceFolder}/BooleanExpressionParser.csproj" ], "problemMatcher": "$msCompile" }, { - "label": "watch", + "label": "publish (windows)", "command": "dotnet", "type": "process", "args": [ - "watch", - "run", - "--project", - "${workspaceFolder}/BooleanExpressionParser.csproj" + "publish", + "${workspaceFolder}/BooleanExpressionParser.csproj", + "-c", + "Release", + "-r", + "win-x64", + "--self-contained", + "false", + "/p:PublishSingleFile=true", + "/p:PublishTrimmed=false" + ] + }, + { + "label": "publish (linux)", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/BooleanExpressionParser.csproj", + "-c", + "Release", + "-r", + "linux-x64", + "--self-contained", + "false", + "/p:PublishSingleFile=true", + "/p:PublishTrimmed=false" + ] + }, + { + "label": "publish", + "dependsOn": [ + "publish (windows)", + "publish (linux)" ], - "problemMatcher": "$msCompile" + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } } ] } \ No newline at end of file diff --git a/README.md b/README.md index 96ef379..1c97b73 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ A simple boolean expression parser written in C#. It parses boolean expressions ## Contents +- [Running](#running) - [Building](#building) - [Usage](#usage) - [Expressions](#expressions) @@ -18,6 +19,11 @@ A simple boolean expression parser written in C#. It parses boolean expressions - [Found an issue?](#found-an-issue) +## Running + +After downloading a release from the Releases section to the right, you can run the program on either Windows or Linux by running `BooleanExpressionParser.exe` or `BooleanExpressionParser` in the terminal respectively. Note, you'll need .NET 6 installed on your machine to run the program. + + ## Building To build the project, you'll need .NET 6 installed. You can then build the project with `dotnet build` or run it with `dotnet run`. Alternatively, you can open the project in Visual Studio or Visual Studio Code, the latter of which has config in the repo.