Raspberry Pi: Run ASP.NET Core on Startup

Last week I wrote: Step by step: Running ASP.NET Core on Raspberry Pi and didn’t have the time to write about running the application on startup.

After browsing for a while I found this great post: Windows IoT Core: Running a PowerShell Script on Startup which showed me the way…

As a prerequisite read and run the sample provided here: Step by step: Running ASP.NET Core on Raspberry Pi

Let’s start:

1. Create startup.ps1
2. Create startup.bat
3. Copy the files to your Raspberry
4. Schedule the command to run on Startup
5. Restart and verify

Get the code here: https://github.com/cmendible/dotnetcore.samples/tree/master/aspnet.on.rpi.startup

Hope it helps!

Leave a Reply

Your email address will not be published. Required fields are marked *