VS 2017 .Net Core 2.0 Console Application Publish Fail

According to this page, for OSX (now MacOS),

the .NET Core 2.0 or later versions, minimum version is osx.10.12-x64

I suspect that the following in your project file might have been causing some mischief:

<RuntimeIdentifiers>win10-x64;osx.10.11-x64</RuntimeIdentifiers>

From what I understand, that OSX-version should be too old to support ( /be supported by?) .NET Core 2.0.

What I don't understand though, is why it would work (a) when run from a command line, and (b) in newer / other versions of Visual Studio.