Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 653c335

Browse files
committed
Generate binlog right.
1 parent fe20a54 commit 653c335

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ assembly_info:
99
assembly_file_version: '{version}'
1010
assembly_informational_version: '{version}'
1111
environment:
12+
MSBUILD_LOG_VERSION: 2.0.94
13+
MSBUILD_LOG_FILE: msbuild.binlog
1214
NUGET_RESTORE_VERBOSITY: quiet
1315
SQL_SERVER_INSTANCE: (local)\SQL2016
1416
SQL_SERVER_USER: AlwaysEncryptedOwner
@@ -27,6 +29,7 @@ services:
2729
before_build:
2830
- cmd: sqlcmd -S "%SQL_SERVER_INSTANCE%" -i .\appveyor\init.sql
2931
- cmd: nuget restore -Verbosity %NUGET_RESTORE_VERBOSITY%
32+
- nuget install MSBuild.StructuredLogger -Version %MSBUILD_LOG_VERSION% -SolutionDirectory .
3033
build:
3134
publish_nuget: true
3235
publish_wap: true
@@ -49,3 +52,6 @@ artifacts:
4952
- path: $(SQL_SERVER_VERIFICATION_LOG)
5053
name: Verifiction Query Results
5154
type: file
55+
- path: $(MSBUILD_LOG_FILE)
56+
name: MSBuild BInary Log
57+
type: file

msbuild.rsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
# We just want errors displayed
66
/ConsoleLoggerParameters:NoSummary;Verbosity=quiet
77
# Binary logger **WARNING** This is going to expose secrets in envirnment variables.
8-
/bl
8+
/logger:BinaryLogger,".\packages\MSBuild.StructuredLogger.%MSBUILD_LOG_VERSION%\lib\net46\StructuredLogger.dll";".\%MSBUILD_LOG_FILE%"
9+
# Requires MSBuild 15.3 or later to use simplifies binlog
10+
#/bl

0 commit comments

Comments
 (0)