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

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

问题描述

我有一个 .NET 应用程序,我使用 ClickOnce 分发该应用程序,并且只能在线使用.如何清除未安装 Visual Studio 的用户计算机上的下载缓存?

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,只需 法师.它随附 Windows SDK,适用于尚未通过 Visual Studio 或框架 SDK 获得的用户.

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.

另一种选择是编写代码以清除缓存.或者,您可以让他们删除安装 ClickOnce 文件的文件夹 (C:Users[username]AppDataLocalApps 在我的 Windows 7 机器上).这将是最后的手段,因为它会删除他们安装的每个 ClickOnce 应用程序.

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]AppDataLocalApps on my Windows 7 machine). That would be a last resort since it will remove every ClickOnce application they have installed.

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

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天全站免登陆