不可以程序app.confg动态设置,因为不同的DeployURL会产生一个不同的Hash以及Application File.
但可以 用mage命令行修改Deploy Manifest, 以及Application Manifest.
<deployment install="true" mapFileExtensions="true" minimumRequiredVersion="1.0.0.0">
<subscription>
<update>
<beforeApplicationStartup />
</update>
</subscription>
<deploymentProvider codebase="http://127.0.0.1/XXX/YYY.application " />
</deployment>
1. mage -update app.application -pu url
where url is the url where the app is on the client site. For example http://clientserver/App/App.application
2.重新Sign
mage -sign app.application -cf somecert.pfx -pwd "hello"