aspnet / AspNetWebFormsDependencyInjection

Dependency injection support for ASP.NET Web Forms 4.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User control fake error with Dependency Injection in WebForms

spottedmahn opened this issue · comments

This sample code for using DI with User controls works at runtime but VS is reporting compile errors:

Severity Code Description Project File Line Suppression State
Error CS7036 There is no argument given that corresponds to the required formal parameter ‘dependency’ of ‘Index.Index(IDependency)’ 1_Index.aspx C:\Users\mdepouw\source\repos\GitHub\spottedmahn\WebFormsInjection-MsDi\sample\DI.WebForms.Sample\Index.aspx 10 Active


Reference: https://developercommunity.visualstudio.com/content/problem/668468/user-control-fake-error-with-dependency-injection.html

Won't fix...

Thank you for the feedback, but our team was unable to prioritize fixing this issue at this time as it does not meet the bar for runtime servicing, and the fix would be in a .Net runtime binary. The reported issue does not block compiling, excecution, or debugging, and can easily be filtered using the filter button in the header of the ‘Code’ column of the Error window. source