How to fix it:

  • Inside Visual Studio -> tools -> options -> Project and Solutons -> Build and Run
  • Change MSBuild Output verbosity from "Minimal" to "Normal"
  • Check the build output to spot the file that contains a "-"
  • Details from Stack overflow