Razor view runtime compilation

If you use runtime compilcation to process .cshtml file, you might got the following error after upgrade to Asp.net core 3.0.

InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Home/Index.cshtml /Views/Shared/Index.cshtml

 This is because of the "build and publish-time compilation of Razor file" is enabled by default, and your project file must still have the following settings:

<RazorCompileOnBuild>false</RazorCompileOnBuild>
<RazorCompileOnPublish>false</RazorCompileOnPublish>

 According to the document these 2 settings has been disabled, but looks like they are still working.  In order to fix the issue we will need to remove these 2 settings or follow this document to enable runtime compilation.