Skip to content

Instantly share code, notes, and snippets.

@iosdevzone
Created November 16, 2020 06:02
Show Gist options
  • Save iosdevzone/f2998f074acbe00b6a1d77b6af8608e5 to your computer and use it in GitHub Desktop.
Save iosdevzone/f2998f074acbe00b6a1d77b6af8608e5 to your computer and use it in GitHub Desktop.
The answer, in case the question does not get enough reopen votes, is that you need to invoke the dll using `dotnet <dllname>`.
The easiest way to make sure that this works is to publish the app from Visual studio **Build > Publish To Folder...** and add
a script like the following in the produced folder.
```bash
#!/bin/bash
APP_NAME="HelloWorld" # Replace this with your app name
DIR="$(dirname ${BASH_SOURCE[0]})"
dotnet "$DIR"/"$APP_NAME".dll
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment