Reputation: 107
We have a Windows Server 2016, with a build agent for TFS 2017 update 1, which is using Visual Studio Entreprise 2017.
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?
Upvotes: 9
Views: 17070
Reputation: 1467
Install Developer Pack of the required .NET Framework to make it visible and selectable in Visual Studio.
For example .NET Framework 4.7.1 was not visible for me in Visual Studio 2017 (Although it was installed on my machine), So what I did that installed developer pack for 4.7.1 and it worked like a magic.
Upvotes: 3
Reputation: 631
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).
Upvotes: 5