Closed Porges closed 1 year ago
Hi, @Porges ! Thanks for the issue, we will take a look.
ref: #254
I have an action that wraps this one and adds support for global.json comments (plus a few other things). It's a little out of date and needs to be updated to v3 of actions/setup-dotnet, but I use it in all my repos and it's been working fine for them.
If you don't want to use this you could also copy the steps to strip the comments and then revert the change to any of your workflows.
Hi, @xt0rted 👋 Thanks for the comment! Actually setup-dotnet
open to any contributions, so if you feel like you may want contribute to the current version you will be more than welcome!
Thank you for pointing out the issue! Fix is on its way and will be available in the closest release.
It would be nice if you added a top level property to store the path for one master global.json file so you could just create symbolic links for any other directory. Then if want to change the SDK globally you can just toggle that one file.
Hi, @karlpothast 👋 Thank you for the comment! May I ask you to create a separate feature request for the functionality you proposed? It'd be better in terms of tracking and you could add more context/description of the feature there.
Thank you for replying so quickly @IvanZosimov. Actually after reviewing the overview specs I realized that the multi-line comment feature will work just fine for me.
Description:
Per the documentation, the
global.json
file allows comments. Adding a comment to the file causessetup-dotnet
to fail to parse it.Task version: v3
Platform:
Runner type:
Repro steps:
Add a comment to the
global.json
file.Expected behavior: The file should still parse.
Actual behavior: The file does not parse.