Search code examples
visual-studio-2017.net-4.7

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.

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?


Solution

  • 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).