我在 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 没有效果。