This is a sample app that demonstrate how to auto-update .net software runnin on IoT devices using Squirrel and IoT Hub.
For simplicity, I hooked the nuget package creation and the squirrel release command in the console application AfterBuild target.
- Change the
releaselocation
setting in the app.config - Build the solution. squirrel will create a Releases folder in the console project.
- run Setup.exe from the release folder. the console application will monitor your
releaselocation
for updates - update the application version in the AssemblyInfo.cs file
- Rebuild. squirrel update the Releases/RELEASES file and drops the new nuget packages.
- Drop the delta package and the RELEASES file at the
releaselocation
. - Watch the console update and restart with the new binaries
- Listen to a IoTHub message to trigger the update instead of periodically checking.