How change framework

C

Cirene

How do I change an application to target the .NET 2.0 framework, NOT the
..NET 3 framework?

I'm creating a winform app, but I would think it's the same method.

The option to change doesn't show up in the properties page of my project.
 
C

Cowboy \(Gregory A. Beamer\)

In VS 2008, you can change the framework in the properties page.
 
J

Juan T. Llibre

re:
!> How do I change an application to target the .NET 2.0 framework, NOT the .NET 3 framework?

For Visual Basic WinForms projects, click the Compile tab and then click Advanced Compile Options.
The Target Framework list is in the Advanced Compiler Settings Dialog Box.

Open your project, right-click your project's name in the Solution Explorer;
select "Properties" from the context menu; select "Compile" from the left-hand list;
scroll down to the "Advanced Compile Options" button and click it;
select the "Target Framework (all configurations) dropdown and
select the target framework you want ( 2.0, 3.0 or 3.5 ).

You will be prompted to close and reopen the project.
When it reopens automatically, the change will have been effected.

For Visual C# WinForms projects, the Target Framework list is on the Application tab of the Project Designer.

Open your project, right-click your project's name in the Solution Explorer;
select "Properties" from the context menu; select "Application" from the left-hand list;
select the "Target Framework (all configurations) dropdown and
select the target framework you want ( 2.0, 3.0 or 3.5 ).

re:
!> I'm creating a winform app, but I would think it's the same method.

It's not.




Cirene said:
How do I change an application to target the .NET 2.0 framework, NOT the .NET 3 framework?
 
C

Cirene

Thanks yall!
Juan T. Llibre said:
re:
!> How do I change an application to target the .NET 2.0 framework, NOT
the .NET 3 framework?

For Visual Basic WinForms projects, click the Compile tab and then click
Advanced Compile Options.
The Target Framework list is in the Advanced Compiler Settings Dialog Box.

Open your project, right-click your project's name in the Solution
Explorer;
select "Properties" from the context menu; select "Compile" from the
left-hand list;
scroll down to the "Advanced Compile Options" button and click it;
select the "Target Framework (all configurations) dropdown and
select the target framework you want ( 2.0, 3.0 or 3.5 ).

You will be prompted to close and reopen the project.
When it reopens automatically, the change will have been effected.

For Visual C# WinForms projects, the Target Framework list is on the
Application tab of the Project Designer.

Open your project, right-click your project's name in the Solution
Explorer;
select "Properties" from the context menu; select "Application" from the
left-hand list;
select the "Target Framework (all configurations) dropdown and
select the target framework you want ( 2.0, 3.0 or 3.5 ).

re:
!> I'm creating a winform app, but I would think it's the same method.

It's not.
 
C

Cirene

Why is it that I target the 2.0 framework yet when my client is installing
the WinForm app it's trying to install the 3.5 framework (the version it
used to be)?

I've verified the Adv Compiler Settings. They are set to 2.0.

Thanks.
 
J

Juan T. Llibre

re:
!> Why is it that I target the 2.0 framework yet when my client is installing
!> the WinForm app it's trying to install the 3.5 framework (the version it used to be)?

Do you still have any references to 3.5 assemblies ?

For example :

using System.Linq;
 
C

Cirene

Thanks Juan. There was another option that I had to uncheck in the
properties of the project. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,486
Latest member
websterztechnologies01

Latest Threads

Top