Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow json comments #431

Merged
merged 3 commits into from Jun 6, 2023
Merged

Conversation

nikolai-laevskii
Copy link
Contributor

Description:
Changed parsing process of the global.json to use JSON5 library. This should make possible comments in global.json file. Initial approach was to refactor setup-dotnet.ts and pass global.json file directly to the install script instead of parsing it ourselves. However, bash install script doesn't parse JSON properly and throws an error when encounters completely valid JSON like this: {"sdk":{"version": "2.2.207","rollForward": "latestFeature"}}. Because of that we can't rely on install script to parse JSON and have to do it ourselves with third party library that supports comments in JSON files.

Related issue:
#411

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants