在 Azure 应用服务中使用 GIT 在持续部署中预编译站点
Pre-compile site in continuous deployment using GIT in Azure App Service
在Azure App Service[=20]中持续部署期间,有没有办法预编译整个网站=](以前的 Azure 网站)?
部署源配置UI.
中没有发布的相关设置
您应该可以使用 Kudu custom deployment script。
对此进行了讨论 here,其中包含有关如何 call aspnet_compiler.exe
实现该目标的示例(这与您在本地执行此操作的方式相同)。
在Azure App Service[=20]中持续部署期间,有没有办法预编译整个网站=](以前的 Azure 网站)?
部署源配置UI.
中没有发布的相关设置您应该可以使用 Kudu custom deployment script。
对此进行了讨论 here,其中包含有关如何 call aspnet_compiler.exe
实现该目标的示例(这与您在本地执行此操作的方式相同)。