Configuration in Startup.cs should be allowed to be anything implementing IConfiguration
Open
area-scaffolding
- Dominant language
- C#
- Stars
- 818
- Forks
- 260
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 10
Description
When scaffolding checks for the Configuration method in startup.cs, it is looking for a symbol with the declared type "IConfiguration". Instead, the check should be for anything that implements / inherits from IConfiguration.
The problem is here:
https://github.com/aspnet/Scaffolding/blob/8388df27adea1476abdb1d7d76d925cb2dd3a2a1/src/VS.Web.CG.EFCore/DbContextEditorServices.cs
… in the method TryGetIConfigurationRootProperty()
Contributor guide
Assessment
This issue has not been assessed yet.