清除没有Mage的.NET下载的应用程序缓存? [英] Clear the .NET-downloaded application cache without Mage?

查看:352
本文介绍了清除没有Mage的.NET下载的应用程序缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.NET应用程序,我使用ClickOnce分发,我只在线提供。如何从没有安装Visual Studio的用户机器清除下载缓存?

解决方案

Visual Studio isn'只需法师。 Windows SDK适用于尚未通过Visual Studio或Framework SDK的人员。



另一个选项是写代码来清除缓存。或者您可以让他们删除安装在Windows上的ClickOnce文件夹( C:\Users\ [username] \AppData\Local\Apps 7机)。这将是最后的手段,因为它将删除他们安装的每个ClickOnce应用程序。



您不必安装Mage来清除缓存;从命令行运行 rundll32 dfshim CleanOnlineAppCache 完成与 mage -cc 相同的事情。


I have a .NET application that I distribute using ClickOnce and I make available online only. How do I clear the download cache from a users' machine that doesn't have Visual Studio installed?

解决方案

Visual Studio isn't needed, just Mage. It comes with the Windows SDK for people that haven't gotten it via Visual Studio or the Framework SDK.

Another option would be to write code to clear the cache. Or you could have them delete the folder ClickOnce files are installed in (C:\Users\[username]\AppData\Local\Apps on my Windows 7 machine). That would be a last resort since it will remove every ClickOnce application they have installed.

You don't have to have Mage installed to clear the cache; running rundll32 dfshim CleanOnlineAppCache from the command line accomplishes the same thing as mage -cc.

这篇关于清除没有Mage的.NET下载的应用程序缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆