зеркало из https://github.com/dotnet/msbuild.git
Updated Binary Log (markdown)
Родитель
21dc8c683a
Коммит
43d0415e36
|
@ -22,6 +22,14 @@ By default the binary log file is `msbuild.binlog` and it's written to the curre
|
|||
|
||||
When using the binary logger all other log formats are technically redundant since you can later reconstruct all the other logs from the binary log. To turn off console logging, pass the `/noconlog` switch.
|
||||
|
||||
# Creating a binary log with older MSBuild versions
|
||||
|
||||
It is also possible to use the BinaryLogger with older MSBuild versions, such as MSBuild 14.0. You'll need to download the https://www.nuget.org/packages/Microsoft.Build.Logging.StructuredLogger NuGet package and save the StructuredLogger.dll somewhere. Then pass it to MSBuild like this:
|
||||
|
||||
```
|
||||
> msbuild.exe /logger:BinaryLogger,"path\to\StructuredLogger.dll";msbuild.binlog
|
||||
```
|
||||
|
||||
# Replaying a binary log
|
||||
|
||||
Instead of passing the project/solution to MSBuild.exe you can now pass a binary log to "build". This will replay all events to all other loggers (just the console by default). Here's an example of replaying a `.binlog` file to the diagnostic verbosity text log:
|
||||
|
|
Загрузка…
Ссылка в новой задаче