I have this Assembly targeted at .NET 3.5. The code will work on later versions as well, but I like this to work on Windows XP. I mean, .NET is backwards compatible, right? I can run apps for .NET 3.5 on Windows 8.1.
However, when I run my own assembly, it wants to install .NET 3.5 first, even though I already have 4.5.1 installed.
How can I prevent installing 3.5 when something newer is already installed, while remaining 3.5 compatible?
The targeted
.NET
version is the only version that the app will depend upon by default. Visual Studio will not automatically add higher and backwards compatible releases.Do this manually by adding other .NET versions to a configuration file:
Code:
See MSDN: Configure an App to Support .NET Framework 4 or 4.5
See MSDN