Precompile ASP.NET MVC views on Azure Web App

前端 未结 2 1596
粉色の甜心
粉色の甜心 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:52

    You can add "/p:PrecompileBeforePublish=true" argument in "Visual Studio Build" step:

    Then the task will call aspnet_compiler during the build process and generate a precompiled output for deployment.

提交回复
热议问题