Precompile ASP.NET MVC views on Azure Web App

前端 未结 2 1584
粉色の甜心
粉色の甜心 2021-01-30 23:22

Is there a way to precompile the ASP.NET MVC views on an Azure Web App (specifically when published via Release Management on VSTS)?

Once each view has been hit once, th

2条回答
  •  时光说笑
    2021-01-30 23:40

    In visual studio 2013+, choose Build->Profiles. Select the profile, then choose "Settings". Underneath "Configuration", expand "File Publish Options", and then check the "Precompile during publishing" option.

提交回复
热议问题