-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RequestDelegateGenerator throws NullReferenceException in ASP.NET Core 8 preview 2 #47202
Comments
Should we be including callstack in these warning messages for any exception that shouldn't occur from user error? |
Unfortunately, we don't control the way these callstacks show up. The compiler does. @martincostello The issue that you've described is a dupe of #47148 and should be resolved in the latest preview3 nightly. By the way, the RequestDelegateGenerator is intended to be off by default in applications. However, the logic to turn it off by default lives in the Web SDK. I notice that you are referencing the ASP.NET runtime using a framework reference. Unfortunately, there is a known limitation with our current approach for turning it off that should be resolved in preview3. Check out this issue for more info. For now, you can manually remove the generator from your compilation using this MSBuild target. |
Add workaround for dotnet/aspnetcore#47202.
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
Add workaround for dotnet/aspnetcore#47202.
Add workaround for dotnet/aspnetcore#47202.
Is there an existing issue for this?
Describe the bug
Building an existing .NET 7 solution with .NET 8 preview 2 fails with the following error:
Expected Behavior
The solution compiles and tests pass.
Steps To Reproduce
build.ps1
Exceptions (if any)
.NET Version
8.0.100-preview.2.23157.25
Anything else?
No response
The text was updated successfully, but these errors were encountered: