To run a .NET Core (2.1) command-line program as a project on Glitch:
- Fork this repository.
- Replace my_app.dll with your own dll (named my_app.dll, or update start.sh with your dll name).
- On Glitch, select New Project > Clone from Git Repo, and select your fork of this repository.
- Right-click on the project in the Solution Explorer and select "Publish..."
- In the Pick a Publish Target window that appears, select Folder, choose an output folder, and click Create Profile.
- In the Publish Summary, make sure Target Framework is
netcoreapp2.1
and Target Runtime isPortable
, and click Publish. - Find your dll in the folder you select in step 2 and rename it to
my_app.dll
and confirm it runs withdotnet my_app.dll
(to run it after renaming, you'll also need to rename the .runtimeconfig.json file tomy_app.runtimeconfig.json
).