How to
-
Open Visual Studio (**not** Visual Studio Code!)
-
File -> New -> Project
-
Choose "Console App (.NET Framework) (**not** Console App)
-
Give an appropiate project name, set Framework to ``` .NET Framework 4.8 ```
-
Add the following references under Project -> Add Reference:
-
Create the .exe file by clicking Build -> Build Solution / Rebuild Solution (the latter tends to print the directory which the .exe file is saved in)
-
To test/debug, navigate to the folder (by default it should be in the folder project-name/bin/Debug), then right click, select "Open in Terminal" (assuming you have Microsoft Terminal installed. This example was done using MS Powershell v5, Build 19041, Rev: 1320 in Terminal 1.21.2911.0), then simply enter the name of the executable followed by parameters.
Example: