Get Application Directory from within Configure method in Startup.Cs
<p>You can't use a relative connection string with SQLite on EF7, so I need a way to get the application Directory from within Startup.cs during the ConfigureServices Routine where the DBContext is configured.</p>

<p>Any idea how to do this with the .NetCoreApp Libraries?</p>

<pre><code>    public void ConfigureServices(IServiceCollection services)
    {
        // Add framework services.
        services.AddMvc();

        //Figure out app directory here and replace token in connection string with app directory.......    

        var connectionString = Configuration["SqliteConnectionString"];

        if (string.IsNullOrEmpty(connectionString))
            throw new Exception("appSettings.json is missing the SqliteConnectionString entry.");
        services.AddDbContext&lt;MyContext&gt;(options =&gt;
        {
            options.UseSqlite(connectionString, b =&gt; b.MigrationsAssembly("xyz.myproject.webapp"));

        });
    }
</code></pre>