Non-json project version is printed despite using format=json
Closed this issue · 0 comments
pingvinen commented
$ dotnet version --output-format=json
{"product":{"name":"dotnet-version-cli","version":"2.3.0.0"},"currentVersion":"4.0.0","projectFile":"/path/to/my/clone/src/main/main.csproj"}
Project version is:
4.0.0
As far as I can see in the code, the problem is in VersionCli.DumpVersion
, which simply continues to the non-json dumping after dumping the json.