When trying to install the newer version of .net, an error occurred informing:
Installation will not take place. See the reasons below.
Details
The .NET Framework 4.7.1 or a later update has already been installed on the computer.
But Visual Studio does not work anyway.