We are evaluating ASP.NET Maker 2026 and are seeing the following warning messages when using the example1 sample code for (Add a Bootstrap Card in the page to show some news) from the online help file for Custom files.
The application builds successfully and the generated page works; are the CS8618 warnings expected or indicate a problem with the generated code?
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en]
global.json file:
Not found C:\ASPNETMaker\WebSites\PATIENTS\Controllers\HomeController.cs(17,12): warning CS8618: Non-nullable field '_signInManager' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable. [C:\ASPNETMaker\WebSites\PATIENTS\PATIENTS.csproj]
C:\ASPNETMaker\WebSites\PATIENTS\Controllers\HomeController.cs(17,12): warning CS8618: Non-nullable field '_userManager' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable. [C:\ASPNETMaker\WebSites\PATIENTS\PATIENTS.csproj]
L PATIENTS -> C:\ASPNETMaker\WebSites\PATIENTS\bin\Debug\net10.0\AspNetMaker2026.dll
Build succeeded.
C:\ASPNETMaker\WebSites\PATIENTS\Controllers\HomeController.cs(17,12): warning CS8618: Non-nullable field '_signInManager' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable. [C:\ASPNETMaker\WebSites\PATIENTS\PATIENTS.csproj]
C:\ASPNETMaker\WebSites\PATIENTS\Controllers\HomeController.cs(17,12): warning CS8618: Non-nullable field '_userManager' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable. [C:\ASPNETMaker\WebSites\PATIENTS\PATIENTS.csproj]
2 Warning(s)
0 Error(s)
Time Elapsed 00:00:12.79