dotnet / dotnet/core

.NET Core Runtime and SDK installations need to be easily detectable from third party apps/installers

Open
#6,518 0 comments 0 reactions 1 assignee Claimed by @jamshedd View on GitHub
area-setup
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

The only means of detecting whether a certain version of .NET Core (runtime or SDK) is installed is by running dotnet --info and parsing the output. This is also not reliable since it basically enumerates the folders that are present without answering whether the product itself is correctly installed. We need a robust way for customers to detect in their apps or installers whether a certain minimum version of the shared framework runtime or SDK is installed or not.

In the .NET Framework world we enabled this via the "Release" key in the registry, the customer could check the DWORD value and be assured the minimum needed version was present. Replicating that in the .NET Core world would work for Windows since this is a registry based solution. For a cross-plat solution we may need to do something different. Or alternatively we could have different detection approaches that are native to the platform .NET is installed on. We should do something here in .NET 7.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.