如何查看解决方案用户选项文件 (.suo) 的内容

发布于 2024-07-05 03:46:09 字数 125 浏览 7 评论 0原文

有没有办法查看解决方案用户选项文件(解决方案文件附带的 .suo 文件)的内容?

我知道它基本上被格式化为文件中的文件系统,但我希望能够查看内容,以便我可以找出解决方案和自定义的哪些方面导致它随着时间的推移变得非常大。

Is there any way to view the contents of the solution user options file (the .suo file that accompanies solution files)?

I know it's basically formatted as a file system within the file, but I'd like to be able to view the contents so that I can figure out which aspects of my solution and customizations are causing it grow very large over time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

你是我的挚爱i 2024-07-12 03:46:09

我为此创建了一个开源 dotnet 全局工具:

dotnet install --global suo
suo view <path-to-suo-file>

更多信息请访问 https://github.com/drewnoakes/suo< /a>

I created an open source dotnet global tool for this:

dotnet install --global suo
suo view <path-to-suo-file>

More information at https://github.com/drewnoakes/suo

拔了角的鹿 2024-07-12 03:46:09

您可以使用 OpenMCDF 附带的内置工具,称为 Structured Storage Explorer。 它不允许您查看所有详细信息,但允许您查看所有单独的设置及其大小。 为了查看实际设置,您需要将字节格式设置为 UTF-16。

参考:

You can use the built in tool that comes with OpenMCDF, which is called Structured Storage Explorer. It doesn't allow you to see all the details, but allows you to see all the individual settings and their sizes. In order to see the actual settings, you need to format the bytes as UTF-16.

Reference:
https://github.com/ParticularLabs/SetStartupProjects

九歌凝 2024-07-12 03:46:09

我不知道任何工具,但您可以尝试通过 IVsPersistSolutionOpts 接口

I don't know any tool, but you can try to access user settings via IVsPersistSolutionOpts interface

旧城空念 2024-07-12 03:46:09

.SUO 文件实际上是一次性的。 如果它变得太大,只需将其删除即可。 Visual Studio 将创建一个新的。

如果您确实想要查看它,它看起来就像一个 OLE 复合文档文件。 您应该能够使用 StgOpenStorage 函数来获取 IStorage 指针。

The .SUO file is effectively disposable. If it's getting too large, just delete it. Visual Studio will create a fresh one.

If you do want to go poking around in it, it looks like an OLE Compound Document File. You should be able to use the StgOpenStorage function to get hold of an IStorage pointer.

小伙你站住 2024-07-12 03:46:09

我不知道有什么工具,但您可以编写一个 Visual Studio 扩展来列出内容,而无需太多工作。

如果您下载 Visual Studio SDK,它有一些简单的示例您可以使用。 找到一个看起来合适的(例如工具窗口,如果您想给自己一个图形显示)并将其打开(当然,供您个人使用)。

让事情变得简单的是,您在任何 VS 扩展中实现的 Package 类已经实现了 IVSPersistSolutionOpts,如 aku 提到的。 因此,您只需调用 ReadUserOptions 方法在您的包裹上并检查内容。

I'm not aware of a tool, but you could write a Visual Studio extension to list the contents without too much work.

If you download the Visual Studio SDK, it has some straightforward examples that you can use. Find one that looks appropriate (like maybe the Toolwindow, if you want to give yourself a graphical display) and lift it (for your own personal use, of course).

What makes it easy is that the Package class which you implement in any VS extension, already implements the IVSPersistSolutionOpts, as aku mentioned. So you can just call the ReadUserOptions method on your package and inspect the contents.

我最亲爱的 2024-07-12 03:46:09

对于原始海报来说有点晚了,但可能对其他人有用。

两个用于结构化存储文件(包括 .suo 文件)的免费软件查看器:

https://github.com/ironfede/openmcdf< /a>(旧网址:http://sourceforge.net/projects/openmcdf/

http://www.mitec.cz/ssv.html(免费用于非商业用途)

当您在这些查看器之一中打开 .suo 文件,您将看到与以下内容相关的流:

  • 书签
  • 调试器监视
  • 已卸载的项目
  • 概述
  • 任务列表用户任务
  • 调试器异常
  • 调试器断点
  • 调试器查找源数据
  • 打开文档窗口

以及更多...

A bit late for the original poster, but maybe useful to others.

Two freeware viewers for structured storage files (including .suo-files):

https://github.com/ironfede/openmcdf (old URL: http://sourceforge.net/projects/openmcdf/)

http://www.mitec.cz/ssv.html (free for non-commercial use)

When you open a .suo file in one of these viewers, you will see streams related to:

  • Bookmarks
  • Debugger watches
  • Unloaded projects
  • Outlining
  • Task-list user tasks
  • Debugger exceptions
  • Debugger Breakpoints
  • Debugger find source data
  • Open document windows

And much more...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文