Visual Studio Code – How can I easily read connection string from appsettings.json in .NET 8.0?
First, is this the correct json? Do I need to specify the ProviderName? "ConnectionStrings": { "DefaultConnection": { "ConnectionString": "Data Source=(local);Initial Catalog=MyDB;Integrated Security=SSPI;", "ProviderName": "System.Data.SqlClient" } } Second, the Program.cs file created by Visual Studio doesn't seem to have anywhere to…