Visual Studio 2013 无法创建诊断报告

Rup*_*eel 3 profiling visual-studio visual-studio-2013

我在 Visual Studio 2013 Update 4 中有一个 64 位项目。当我使用 Visual Studio 的内置 cpu 分析器对其进行分析时,它可以很好地收集数据。但是当我停止分析器时,它说:“Microsoft Visual Studio 无法创建诊断报告。”

输出窗口显示:

Profiling of '[Project name]' started.
[Project name] has exited.
Profiling of '[Project name]' stopped.
Diagnostics session stopped with errors.

An error occurred opening '%temp%\BD371444-95DE-4EF8-9433-A9D00C516579'. The formatting of the file is not supported by this version of Visual Studio. Please try again with a different file or a different version of Visual Studio.
Run Code Online (Sandbox Code Playgroud)

在列出的文件夹中,有 .etl 文件可以使用 Windows 性能分析器打开而不会出错。

我试过修复 Visual Studio 没有效果。

MGa*_*sby 5

我有同样的问题。似乎是在我对 Visual Studio 进行“修复”之后发生的,但这可能无关。

我没有找到问题的真正解决方案,但我找到了一个对我有用的解决方法:

  1. 独立启动进程 (Ctrl+F5)
  2. 转到菜单 ANALYZE > Profiler > Attach/Detach
  3. 停止时,它起作用了

我不知道为什么,但它对我有用,因为我不经常使用它。