user
user

Reputation: 6807

Running .NET 4 program under lower .NET version

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

Answers (3)

Mark Byers
Mark Byers

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

Joe
Joe

Reputation: 42666

No. Programs that depend on the 4 framework are not backwards compatible.

Upvotes: 1

Oded
Oded

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

Related Questions