-
Notifications
You must be signed in to change notification settings - Fork 108
Exception when UserIdSecrets isn't turned on in the project file #60
Comments
What is in the template? IMO if template calls user secrets in C#, it should also scaffold the property in csproj. |
/cc @DamianEdwards I think this needs to be fixed for preview1. |
The new templates do, but the old empty template didn't, which is why you're seeing this. Are you thinking we just change this to log a warning instead of throwing? |
There is no logging available from ConfigurationBuilder |
I'm thinking it should n00p completely and not add the configuration provider. Just like the other configuration providers do. |
Ok so add an |
Fixed in #64 |
I created a 1.1.1 template and upgraded to 2.0 and used the new API the got this error:
It's pretty awful that this throws like that by default. Is there any way to avoid this exception and have it noop (like the other config providers do) if the application isn't configured for user secrets?
/cc @natemcmaster
The text was updated successfully, but these errors were encountered: