4

I have uninstalled my localized(german) .net version to get english exception messages. Afterwards i've installed the latest .NET 4.6.2 framework on my windows 10 development pc. Then i've openend my solution which contains projects that target .NET Framework 4.5 and noticed that they couldn't be loaded anymore because this version is not installed. Then visual studio suggested to use a different version and change it later.

enter image description here

When i've done it i couldn't change to the desired framework version as you can see here:

enter image description here

I've tried to reinstall .NET 4.5 but it's not supported on windows 10 so the installation is cancelled(even repair option doesn't work). If i've understood it correctly newer versions of the .NET framework are in-place updates of lower versions, so they include them and i should be able to target them.

Download:

The Microsoft .NET Framework 4.6.2 is a highly compatible, in-place update to the Microsoft .NET Framework 4/4.5/4.5.1/4.5.2/4.6/4.6.1.

So why is it not possible and what else can i do to target .NET 4.5?

Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939
  • why do you want to toraget 4.5? 4.5 and 4.5.1 are no longer supported. only 4.5.2. so target this supported version. – magicandre1981 Feb 16 '17 at 16:35
  • @magicandre1981: because the clients might not have .NET 4.5.1 or 4.5.2 which is very likely. – Tim Schmelter Feb 16 '17 at 16:35
  • if 4.5 is installed the system gets 4.5.2 via Windows update. In setup check the installed .net version and if .net 4.5.2 is not installed, install the redist of 4.5.2 – magicandre1981 Feb 16 '17 at 16:48
  • I canmot presume that all costumers install updates. It's not our company. Actually it was developed with.net 3.5 but we want to force 4.5 as new minimum now. – Tim Schmelter Feb 16 '17 at 16:52
  • 2
    try to repair VS2015, normally it should be part of VS2012/2013/2015. But again, support for 4.5 has ended: https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/ – magicandre1981 Feb 16 '17 at 16:58
  • @magicandre1981: That worked. Thanks for your help. Make it an answer. – Tim Schmelter Feb 17 '17 at 09:29

2 Answers2

4

Targeting .Net Framework 4.5 is available in Visual Studio version 2012, 2013, 2015. If you can't see it, open desktop control panel->program & features find the entry Visual Studio 2015 with Updates, select Modify/Repair to repair the Visual Studio.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127
1

The issue can be fixed by installing the developer pack for .NET 4.5 Download Link

cmathews
  • 116
  • 2
  • 13