You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. Because it's not immediately obvious that this is a bug in our framework, we would like to keep this around to collect more feedback, which can later help us determine the impact of it. We will re-evaluate this issue, during our next planning meeting(s).
If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.
I'm wondering if we could use a startup hook to enable this somehow, rather than boilerplate code that must be in the app for it to work. Alternatively, could we use a source generator that's enabled by the invoking tool (e.g. dotnet ef) to generate the required pattern or hook somehow.
Activity
javiercn commentedon Apr 16, 2021
@shirhatti also Microsoft.AspNetCore.Mvc.Testing depends on that
ghost commentedon Apr 16, 2021
Thanks for contacting us.
We're moving this issue to the
Next sprint planning
milestone for future evaluation / consideration. Because it's not immediately obvious that this is a bug in our framework, we would like to keep this around to collect more feedback, which can later help us determine the impact of it. We will re-evaluate this issue, during our next planning meeting(s).If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.
To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.
DamianEdwards commentedon Apr 26, 2021
I'm wondering if we could use a startup hook to enable this somehow, rather than boilerplate code that must be in the app for it to work. Alternatively, could we use a source generator that's enabled by the invoking tool (e.g.
dotnet ef
) to generate the required pattern or hook somehow.davidfowl commentedon Apr 27, 2021
I had an idea that we could use a diagnostic source for this but that won't work since this pattern basically wants a public API that is callable.
EF - https://github.com/dotnet/efcore/blob/ac2bb48b10ecf1289b568a94b7a35e8075c6d787/src/EFCore.Design/Design/Internal/AppServiceProviderFactory.cs#L49-L59
Testing -
aspnetcore/src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs
Lines 339 to 347 in fdd687b
These rely on a callable entrypoint.
davidfowl commentedon Apr 27, 2021
Actually we might still be able to do this.
davidfowl commentedon Jun 13, 2021
This is fixed by
WebApplicationFactory support