MSBuild error - Unknown switch. Switch: /bl:MonoDevelop.binlog

时间:2018-03-25 19:50:58

标签: msbuild visual-studio-2017 monodevelop

I was trying to build the monodevelop source from https://github.com/mono/monodevelop using MSBuild

While building however the process stops with the error

MSBUILD : error MSB1001: Unknown switch.
Switch: /bl:MonoDevelop.binlog

Here is the line from the winbuild.bat file which is causing the problem

"%MSBUILD_EXE%" Main.sln /bl:MonoDevelop.binlog /m "/p:Configuration=%CONFIG%" "/p:Platform=%PLATFORM%" %* || goto :error

I am using Visual Studio 2017 Community Edition 15.2 (26430.14) running on Windows 10 Home

I can't seem to figure what's causing this issue. Google hasn't helped either. I hope someone over here can help me figure this out.

2 个答案:

答案 0 :(得分:1)

Update your Visual Studio to a recent version.

Binary logs have been introduced in MSBuild 15.3, with a few bugfixes in later versions.

The current VS and MSBuild versions are 15.6.*, make sure you update to the latest versions of the tools.

答案 1 :(得分:0)

检查开关('/bl:MonoDevelop.binlog')是什么?您是否出于任何原因使用此开关?如果您没有答案注释/请删除开关并运行MS Build。

也许MS Build不知道为什么使用此开关!