This article explains how to install and use .NET Framework 4.7, .NET Framework 4.7.1, & .NET Core 2.0, and troubleshooting if you are getting an exception while installing these latest components. This article also explains how to use the different versions of C#, e.g. C# 7, C# 7.1, C# 7.2 with Visual Studio 2017 and installing multiple instances of Visual Studio 2017 side by side.
I am going to cover these points in this article.
- Installing .NET Framework 4.7
- Troubleshooting for the error you might get while installing .NET Framework 4.7
- Installing .NET Core 2.0
- Installing .NET Framework 4.7.1
- Troubleshooting for error occurred while installing .NET Framework 4.7.1
- How to install .NET Framework 4.7.1 using windows Insider.
- Installing and switching between different versions of C# 7.x.
- Installing Visual Studio 2017 “15.3” & Visual Studio 2017 Preview “15.4 preview 4” side by side.
Installing .NET Framework 4.7
I am going to install the .NET Framework 4.7 for Visual Studio 2015 & 2017. Let me explain the process and troubleshooting steps one by one.
If you do not have Visual Studio 2017 already installed on your machine, then you can go to the Microsoft official download link for Visual Studio 2017 and install it from there. Since it gets installed successfully, you do not need to worry about troubleshooting. Just make sure to choose all the required components during installation.
However, if you have Visual Studio 2017 already installed and you just want to install .NET Framework 4.7 but you are unable to install it due to any reason, then please go through the below steps.
Step 1 - Open Visual Studio 2017 and check for the latest framework installed
Open Visual Studio 2017 and open the template for creating a console application. Here, you should notice that it is showing I can choose .NET Framework 4.6.2 as the latest version. However, just below the .NET Framework 4.6.2, there is an option to look for more frameworks.

Step 2 - Search for more Frameworks
Click on the link to search for more Frameworks. It opens a web page -- navigate to the page from where you can download .NET framework 4.7. You'll find that there are 3 options for downloading and installing the .NET framework 4.7. Following is a screenshot from the same link:

As you can see, it is showing you 3 options -
- Web installer
- Offline installer
- Windows Update
Step 3 - Download and run installer
- Download and run Web Installer
First of all, try with Web Installer. Download the Web Installer and run the downloaded executable file. If it gets installed without any error, then it is okay.However, if it does not get installed for your Visual Studio 2017, you will see a warning message, as displayed in the following screenshot.

Then, have patience and be with me. I am going to explain why it is showing this message. However, if you are getting any other message or exception, then I recommend you to update your Visual Studio 2017 first and then retry for the same.
- Download and run Offline Installer
Now, try with the Offline Installer. You may get the same message.
- Download Windows Update
Download Windows Update and install it, but still, you may get the same message.
Step 4 - Check for the latest .NET Framework installed on your computer
So here, you find an ambiguity as you can see that the installer is saying that .NET Framework 4.7 has been installed already whereas Visual Studio 2017 is showing the latest .NET Framework as .NET Framework 4.6.2. So, you must be thinking which one is correct. For that, you have to check the latest version installed on your machine.
Step 5 - Checking the Latest .NET Version Installed on Your machine
There are multiple options to check for the latest version installed on your machine. You can check with Visual Studio but it is not the correct version, so you can check with installed files and registry and other configuration options. I would recommend that rather than going through those options, we can check it with a simple console application as well.
Open a console application and run the following code.
- using Microsoft.Win32;
- using static Microsoft.Win32.RegistryHive;
- using static Microsoft.Win32.RegistryKey;
- using static System.Console;
- namespace CheckFrameworkVersion
- {
- class Program
- {
- static void Main(string[] args)
- {
- using (RegistryKey key = OpenRemoteBaseKey(LocalMachine, "").OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP\"))
- {
- foreach (string version in key.GetSubKeyNames())
- {
- if (version.StartsWith("v"))
- {
- RegistryKey versionKey = key.OpenSubKey(version);
- if ((string)versionKey.GetValue("Version", "") == "")
- {
- foreach (string subKey in versionKey.GetSubKeyNames())
- {
- WriteLine($" {subKey} {versionKey.OpenSubKey(subKey).GetValue("Version", "")}");
- }
- }
- }
- }
- }
- }
- }
- }
Console Output

As you can see, it shows that .NET Framework 4.7 has installed already. However, I am not able to see it in Visual Studio 2017. I am already using the latest version of Visual Studio 2017, so there should not be any reason to update it.
Step 6 Install the latest Framework using Visual Studio installer.
Open Control panel and go installed programs è select Visual Studio 2017 and click on modify to open Visual Studio installer. There are other options as well to open the Visual Studio installer.

You can see in the preceding screenshot that there is an option to select/deselect components.
Please select the options -
- .NET Framework 4.6.2 development tools
- .NET Framework 4.7 development tools
You can select only .NET Framework 4.7 but I am selecting both so that I can use both of them interchangeably.
Once installation gets completed, please open Visual Studio 2017 and check for the .NET Framework in the drop-down list, as shown in the below screenshot.



















PRIYA ANKAPosted Aug 29, 2018, 11:14 AM
Is there any offline installer please sugest me
Pramod ThakurPosted Oct 23, 2017, 7:44 AM
Thanks for sharing such a great article...
Banketeshvar NarayanPosted Oct 9, 2017, 2:02 PM
Thanks Ankit Sharma & Ravi Patel. I always prefer to write an article related to coding and development but this time decided to write this one as I struggled a lot while updating and installing the latest component with VS 2017. I searched a lot but didn't find a proper guideline for installing & upgrading these components.
Ravi PatelPosted Oct 9, 2017, 12:10 PM
Thanks for stepwise guideline
Ankit SharmaPosted Oct 9, 2017, 3:38 AM
This is a great article, and it solves a lot of common installation issues. Thanks for sharing