Skip to content

Resolve open issues around FS-dependency in source generators #30234

@captainsafia

Description

@captainsafia

The implementation of the RazorSourceGenerator that we created relies on file system interactions in two places:

  • when computing the generated Razor files as part of compilation
  • when reading/writing the tag helper cache during compilation

FS-access for source generators is not recommended so we need to resolve this long term. Some thoughts:

  • We need to determine if tooling relies on the tag helper cache being in the file system. If not, then we can nuke that particular bit of code. If so, we might want to consider alternative ways for generating this cache.
  • Our work to bundle the views with the app assembly should render the generated Razor files unnecessary.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedaffected-mostThis issue impacts most of the customersbugThis issue describes a behavior which is not expected - a bug.feature-source-generatorsseverity-minorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions