|
|
|
1. Open Visual Studio (\*\*not\*\* Visual Studio Code!)
|
|
|
|
2. File -\> New -\> Project
|
|
|
|
3. Choose "Console App (.NET Framework) (\*\*not\*\* Console App)
|
|
|
|
4. Give an appropiate project name, set Framework to \`\`\` .NET Framework 4.8 \`\`\`
|
|
|
|
5. Add the following references under Project -\> Add Reference:
|
|
|
|
|
|
|
|
{width=866 height=458}
|
|
|
|
|
|
|
|
{width=867 height=456}
|
|
|
|
6. 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
|
|
|
|
7. To test/debug, navigate to the folder, 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:
|
|
|
|
|
|
|
|
{width=737 height=33} |
|
|
\ No newline at end of file |