Vikyboss
Vikyboss

Reputation: 960

Does .net 3.5 Application run on computers without 3.5 but with 4?

I am currently developing a GUI using visual studio 2008 targeting .NetFramework 3.5 I was wondering can a computer without 3.5 but with the latest version(4.0) run the application without any problem or do I still need to install .netFramework 3.5?

Upvotes: 2

Views: 233

Answers (3)

heavyd
heavyd

Reputation: 17751

You can add the supportedRuntime element to your app.config:

<configuration>
   <startup>
     <supportedRuntime version="v4.0" />
     <supportedRuntime version="v2.0.50727" />
   </startup>
</configuration>

Upvotes: 4

Matthias Meid
Matthias Meid

Reputation: 12521

You need to install .NET 3.5. .NET 4.0 comes with a different CLR, and therefore cannot execute .NET 3.5 assemblies.

Upvotes: 1

Gregory Nozik
Gregory Nozik

Reputation: 3372

I think you need to install 3.5 framework

Upvotes: 1

Related Questions