Reputation: 6807
Is it possible for a .NET 4 application to run when only for example .NET 3 framework is installed on the computer?
Upvotes: 3
Views: 239
Reputation: 839124
No, I don't think that's possible.
However you can make an installer that can download the correct framework if it's not already installed. Visual Studio can create such an installer (add a Setup project to your solution).
Upvotes: 1
Reputation: 42666
No. Programs that depend on the 4 framework are not backwards compatible.
Upvotes: 1
Reputation: 499362
No, it isn't possible.
They use different runtimes and you can't run an assembly targeting one runtime on a different runtime.
.NET 2.0, 3.0 and 3.5 run on the 2.0 runtime.
.NET 4.0 has a new runtime.
Upvotes: 5