⚠ Deprecated: Other
As I learned more about using the IHostBuilder/IHost API, I came to realize almost all of what I'd implemented in this assembly could be handled in the IHostBuilder/IHost system. Consequently, I'm deprecating my own assembly. J4JSoftware.DependencyInjection also contained an API for locating files. I've moved this to a new assembly, J4JSoftware.FileUtilities.
Suggested alternative: J4JSoftware.FileUtilities
provides customized IHostBuilder and IHost classes for simplified configuration
$ dotnet add package J4JSoftware.DependencyInjectionThe J4JHostConfiguration API allows you to create objects implementing the IJ4JHost interface. That interface extends Microsoft's IHost interface to include:
StringComparison object used to compare text entered on the command line to programmatic values;The IJ4JHost instance provides a number of useful services:
Microsoft.AspNetCore.DataProtection)This assembly targets Net 7 and has nullability enabled.
The repository is available online at github.
Sandboxed refers to whether or not the app has, potentially, unfettered access to the filesystem. Modern desktop apps (e.g., Windows Application v3 aka WinApp3, and, I think, UWP) are sandboxed, at least so far as storing application data is concerned. Older desktop environments (e.g., Windows Forms, WPF) are not sandboxed.