4
votes

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?

2
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
@magicandre1981: because the clients might not have .NET 4.5.1 or 4.5.2 which is very likely.Tim Schmelter
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.2magicandre1981
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
try to repair VS2015, normally it should be part of VS2012/2013/2015. But again, support for 4.5 has ended: blogs.msdn.microsoft.com/dotnet/2015/12/09/…magicandre1981

2 Answers

4
votes

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.

1
votes

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