Leonardo Lurci
Leonardo Lurci

Reputation: 2989

Is it possible to see razor.g file?

Using Visual Studio 2019 is it possible to see myComponent.g.cs files? I notice that Visual studio code shows you those files only when there is an error in one of them. I would like to see those files just to learn how a *.razor file is compiled.

Upvotes: 1

Views: 1049

Answers (1)

Henk Holterman
Henk Holterman

Reputation: 273474

This is now out-of-date. See this answer instead.


Yes.

First turn on "Show All Files" in the Solution Explorer window.

Then open the obj/debug/netcoreapp3.0/Razor/pages folder.

Upvotes: 2

Related Questions