I've saved a site.master file to my view\shared folder.
When assigning a new view to the controller I check the Use layout or master page from the Add view dialog.
When browsing the view/shared folder only .cshtml files are available, not the .master file.
I am using the Razor View Engine.
Why am I not able to select the site开发者_Go百科.master file?
The Razor view engine doesn't use a .master file. This is specific to the WebForms view engine. Razor uses a layout file corresponding to ~/Views/Shared/_Layout.cshtml. So save your custom master as a .cshtml file in the ~/Views/Shared folder and it will appear when adding a new view.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论