Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure "appOfflineTemplate" in a publish profile (.pubxml)?

WebDeploy 3.5 supports customizing App_Offline.html via an App Offline Template option to msdeploy. Example:

msdeploy.exe -verb:sync -source:iisApp=sourceApp -dest:iisApp=destApp,appOfflineTemplate="App_offline-template.htm" -enablerule:AppOffline

In a publish profile I can specify -enablerule:AppOffline via the option

<EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>

Can I do the same with appOfflineTemplate ?

Reference: https://blogs.iis.net/msdeploy/webdeploy-3-5-rtw

like image 697
mlhaufe Avatar asked Oct 19 '25 02:10

mlhaufe


1 Answers

Currently not possible. Read more at: https://aspnet.uservoice.com/forums/41199-general-asp-net/suggestions/6619898-enablemsdeployappoffline-appofflinetemplate

like image 116
ErikWitkowski Avatar answered Oct 22 '25 03:10

ErikWitkowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!