<PackageReference Include="System.Configuration.ConfigurationManager" Version="10.0.0-preview.3.25171.5" />

ExeContext

public sealed class ExeContext
Manages the path context for the current application. This class cannot be inherited.
public string ExePath { get; }

Gets the current path for the application.

Gets an object representing the path level of the current application.