When I search for something, I typically start with pmichaels.net [tab] [search term] - especially if I know I’ve come across a problem before. This post is one such problem: it’s not hard to find the solution, but it is hard to find the solution on this site (because until now, it wasn’t here).
The error (which is also in the title):
IConfiguration does not contain a definition for GetValue
Typically appears when you’re using IConfiguration outside of an Asp.Net Core app. In fact, GetValue is an extension method, so the solution is to simply add the following package: