The string is parsed in https://github.com/dotnet/msbuild/blob/7f69ea906c29f2478cc05423484ad185de66e124/src/Build/Logging/BinaryLogger/BinaryLogger.cs#L481 We need to parse the file path out of the /bl command line option in dotnet-watch and need to replicate the parsing logic.