Unfortunately, after many digging and exploring the source of .NET Core, the available Javascript libraries, etc. I decided that this is not easy (or even possible) and itβs not worth the pain to understand.
Instead, I went with a simpler approach:
- Writing a file to disk at a temporary location
- Read the version from a file on disk
- Delete a file
The code is simple and simple .NET code, no fancy tricks or complex JS libraries.
source share