twilio-labs / NgrokExtensions

Visual Studio integration with ngrok
MIT License
48 stars 26 forks source link

[Feature] Read settings from appsettings.Development.json and secrets.json #15

Closed ChristopherHaws closed 6 years ago

ChristopherHaws commented 6 years ago

Hello,

It would be nice to not have to configure ngrok in the production appsettings.json file when it is only used for development. The easy change would be to also look in appsettings.Development.json for the value, however even this has some drawbacks. Since each developer will most likely have a different subdomain setup for their dev environment, it would be really nice if NgrokExtensions could look in the csproj file for the existence of a <UserSecretsId> property and then look for the config values from %APPDATA%\Microsoft\UserSecrets\{UserSecretsId}\secrets.json.

Thanks!

Chris