XBAP Clear cache from application

2019-09-15 01:54发布

问题:

Is there a way to clear the cache from Xbap application instead of running mage or rundll32 from command prompt??

回答1:

As far as I know the only available tool is 'mage -cc'.

http://www.vistax64.com/avalon/11917-xbap-applciation-issues.html



回答2:

Programmaticaly you can use this:

new System.Deployment.Application.DeploymentServiceCom().CleanOnlineAppCache();

original

Don't forget about your app rights.