The recent Visual Studio 2017 Update (also known as VS 15.3) introduced a problem with command line compilation when the Lightweight Solution Load feature is enabled.
**Update 25 Sept 2017*** : Microsoft have closed our bug report with a Wont Fix status.. seems they are too busy with other things.