Skip to content

'RazorSourceGenerator' failed to generate source (NullReferenceException) #30442

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

Closed
halter73 opened this issue Feb 24, 2021 · 2 comments
Closed
Assignees
Labels
bug This issue describes a behavior which is not expected - a bug. Done This issue has been fixed
Milestone

Comments

@halter73
Copy link
Member

halter73 commented Feb 24, 2021

CSC : error CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'AggregateException' with message 'One or more errors occurred. (Object reference not set to an instance of an object.)' [D:\workspace\_work\1\s\src\Mvc\test\WebSites\BasicWebSite\BasicWebSite.csproj]

https://dev.azure.com/dnceng/public/_build/results?buildId=1009323&view=logs&j=3f6d4e0f-1b71-56b5-361e-d95b6e6da15a&t=9605d305-57d3-55b8-ba79-e50442d32137&l=2057

This happened building test projects for "Tests: Helix x64" for an aspnetcore-ci build on main. Unfortunately, I don't see a stack trace anywhere that might help track this down.

@halter73 halter73 added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Feb 24, 2021
@captainsafia captainsafia added area-razor.compiler and removed area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates labels Feb 25, 2021
@pranavkm pranavkm added this to the 6.0-preview3 milestone Feb 25, 2021
@pranavkm
Copy link
Contributor

@captainsafia putting this on your plate since you're already investigating this space.

@captainsafia
Copy link
Member

@pranavkm Thanks! Meant to assign this when putting on the labels. I'm planning on tackling this as part of dotnet/sdk#16060

@mkArtakMSFT mkArtakMSFT added the bug This issue describes a behavior which is not expected - a bug. label Mar 11, 2021
@ghost ghost added Done This issue has been fixed and removed Working labels Mar 15, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue describes a behavior which is not expected - a bug. Done This issue has been fixed
Projects
None yet
Development

No branches or pull requests

4 participants