question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet-install should be able to get version from repository's global.json

See original GitHub issue

Many users lock down their version of .NET Core via global.json. They also have scripts that prepare for build which installs the corresponding .NET Core. However, the version has to be defined in two places or every script must get the version from global.json and pass it to the dotnet-install script.

I’d like to add a feature to dotnet-install.ps1 to allow users to pass in a path to a global.json which will be read and that exact version will be installed. I’m not sure how to parse JSON in bash but I can try to update dotnet-install.sh as well.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
johnbeisnercommented, Oct 1, 2019
0reactions
jeffklcommented, Oct 1, 2019

Thanks again @johnbeisner!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NETSDK1141: Unable to resolve the .NET SDK version as ...
Learn about .NET SDK error NETSDK1141, which occurs when the SDK version could not be resolved in global.json.
Read more >
Unable to locate the .NET SDK as specified by global.json ...
In my case my global.json was referring to an SDK I didn't have. Run the below in your terminal dotnet --list-sdks. That will...
Read more >
Should I use global.json? - Alessio Franceschelli
json is updated can soon become burdensome, but generally, it's a good practice to install and use new versions once they get released....
Read more >
Managing dotnet Core 2.0 and dotnet Core 1.x versioned ...
If I move elsewhere and dotnet new I'll get a netcoreapp2.0. In this example, it's the pretense of that global.json that "pins" my...
Read more >
Fixing: Unable to locate the .NET Core SDK. Check that it is ...
NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found