A bare bone implementation for retrieving user secrets using F#
I am new to f# (coming from c#) and I was looking to retrieve user secrets for a bare bone CLI project. I did not want to import ApplicationBuilder or ServiceCollection since I did not need to create something more complex (like an API or web app) which relies on several dependencies.
I wanted to use IConfigurationRoot which only requires 'Microsoft.Extensions.Configuration.UserSecrets'. Initially I had some trouble implementing it but I finally found it.