dotnet / dotnet/Scaffolding

Configuration in Startup.cs should be allowed to be anything implementing IConfiguration

Open
#987 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.