简体   繁体   中英

Display a custom html page when publishing to IIS in MVC

I have an MVC5 application and I want to display an html (or htm) page while publishing the application to IIS server. So, I tried different methods by using app_offline.htm as indicated on ASP.NET Web Deployment using Visual Studio: Deploying a Code Update . But none of them works properly in MVC. Is there a better approach to make this?

Seems like app_offline.html customization not supported yet. See https://github.com/aspnet/Tooling/issues/530 . Also, there is similar question Custom app_offline.htm file during publish .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM