I spent some time trying to remove layout (defined in _ViewStart) using:

@Layout = ""

and

@Layout = null

Why does it only work using block?

@{
  Layout = "";
}

In my vision, both ways should work.

Edit
Report