Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NugetUpdater doesnt preserve remaining content of global.json #37

@Xiaoy312

Description

@Xiaoy312

Current behavior

D:\code\uno\temp\temp23250506>type global.json
{
    // some comment
    "msbuild-sdks": { "Uno.Sdk": "6.0.0-dev.171" },
    "sdk": { "allowPrerelease": false }
}
D:\code\uno\temp\temp23250506>nugetupdater -s=. --useNuGetorg -v=dev | findstr "|"
| Package | Referenced version | Updated version |
|---------|--------------------|-----------------|
| Uno.Sdk | 6.0.0-dev.171      | 6.1.0-dev.91    |

D:\code\uno\temp\temp23250506>type global.json
{"msbuild-sdks":{"Uno.Sdk":"6.1.0-dev.91"}}

Expected behavior

the comment being dropped, is somewhat understandable
but, the "sdk" property should be preserved

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingtriage/untriagedIndicates an issue requires triaging or verification.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions