Project rider - 构建时查看 msbuild 输出

Project rider - see msbuild output when building

我想在尝试构建解决方案时查看 msbuild 日志。

它最初是 Visual studio 2015 年的解决方案。

Rider 的输出构建 window(视图 --> 工具 Windows --> 构建)显示:

Microsoft (R) Build Engine version 14.0.25420.1 Copyright (C)
Microsoft Corporation. All rights reserved.
Build started 10/2/2016
10:28:29 AM. Build succeeded

VS2015 Build windows 显示:

1>------ Build started: Project: P1, Configuration: Debug Any CPU ------
2>------ Build started: Project: P2, Configuration: Debug Any CPU ------
3>------ Build started: Project: P3, Configuration: Debug Any CPU ------
.
.
.
1> P1 -> D:\dev\TQS\src\P1\bin\P1.dll
2> P2 -> D:\dev\TQS\src\P2\bin\Debug\P2.dll
3> P3 -> D:\dev\TQS\src\P3\bin\Debug\P3.dll
========== Build: 3 succeeded, 0 failed, 3 up-to-date, 0 skipped ==========

有谁知道为什么会有差异?

很有可能需要等到更新的EAP。当前版本的 Rider 不提供更改 MSBuild/xbuild 详细程度的选项。它的 Build window 输出风格也不同。如果您确实希望它遵循 VS 风格,您也可以向 JetBrains 提交错误报告。

特征"ReSharper Build"(blog , docs) 在 Rider 中默认启用,在 ReSharper 中禁用。 在设置中(ReSharper "ReSharper->Options->Tools->ReSharper Build" 和 Rider "Build, Execution, Deployment->Toolset and Build")你可以配置它

Rider 刚刚引入了用于记录构建输出和设置日志详细程度的选项。你可以在这里查看: How to diagnose build problems

打开设置,启用 'Write log to file' 选项,并将详细程度设置为 'Diagnostic'

'Rebuild Solution with Diagnostic',日志文件会自动打开