Bit more playing with 15.3.1 and seems like views/(aka templates) do fail to save the physical file but do add the DB entry and we don’t get the nice message like in v13 warning we are in production mode.. and actually can’t edit.
Is this just a not quite finished part to v15?
and to finish up on my findings.. RazorCompileOnBuild
doesn’t seem to be enforced in v15 like in v13?
<PropertyGroup>
<!-- Remove RazorCompileOnBuild and RazorCompileOnPublish when not using ModelsMode InMemoryAuto -->
<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>
But as for css/scripts which was where this started.. they aren’t locked down in production mode as far as I can see.