dotnet-install should be able to get version from repository's global.json
See original GitHub issueMany 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:
- Created 4 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Deployment to ‘staging’: https://github.com/dotnet/dotnet-core-website/pull/1556
Thanks again @johnbeisner!