Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find .NET Framework 4.7 targeting pack in Visual Studio Installer on Windows Server 2016

We have a Windows Server 2016, with a build agent for TFS 2017 update 1, which is using Visual Studio Entreprise 2017.

  • All windows updates are done
  • I installed the .NET 4.7 Runtime and the .NET 4.7 Targeting Pack (I tried online and offline)
    • the key in registery exists (see screenshot)
    • this folder is present C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7
  • I relaunched Visual Studio Installer
  • I reinstalled Visual Studio
  • I rebooted a bunch of times

But I still can't see the .NET Framework 4.7 SDK or targeting pack in Visual Studio Installer > individual Components.

  • installation screenshot

A working short term solution, to add this param the Build solution Step

/p:FrameworkPathOverride="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7"

Does anyone have any ideas how to force .NET 4.7 to be detected by the Visual Studio Installer?

like image 614
Guillaume R Avatar asked May 28 '17 10:05

Guillaume R


People also ask

How do I install .NET Framework on Windows Server 2016?

First you must open the Server Manager on the system where you want to install the . NET Framework 3.5. In the Server Manager, open the Add Roles and Features Wizard by clicking Manage –> Add Roles and Features. Step forward to Installation Type and select Role-based or feature-based installation.


1 Answers

I had the same problem on Windows Server 2016 with latest Visual Studio 2017.

Solved it by installing: https://www.microsoft.com/en-us/download/details.aspx?id=55168.

(Microsoft .NET Framework 4.7 Developer Pack and Language Packs for Windows 7 SP1, Windows 8.1, Windows 10 Anniversary Update, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2 and Windows Server 2016 combo package).

like image 175
j0ffe Avatar answered Sep 18 '22 14:09

j0ffe