Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

How change framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cirene - 29 Apr 2008 17:38 GMT
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.
Cowboy (Gregory A. Beamer) - 29 Apr 2008 18:09 GMT
In VS 2008, you can change the framework in the properties page.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> 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.
Patrice - 29 Apr 2008 18:12 GMT
Which property page have you tried ?

If C## this is in the Application tab. If VB.NET click "Advanced compiled
options" in the "Compile" tab.
__
Patrice

"Cirene" <cirene@nowhere.com> a écrit dans le message de groupe de
discussion : eSDypdhqIHA.4928@TK2MSFTNGP04.phx.gbl...
> 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.
Juan T. Llibre - 29 Apr 2008 18:37 GMT
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.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> 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.
Cirene - 29 Apr 2008 21:26 GMT
Thanks yall!
> re:
> !> How do I change an application to target the .NET 2.0 framework, NOT
[quoted text clipped - 41 lines]
>> The option to change doesn't show up in the properties page of my
>> project.
Cirene - 30 Apr 2008 00:07 GMT
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.

> re:
> !> How do I change an application to target the .NET 2.0 framework, NOT
[quoted text clipped - 41 lines]
>> The option to change doesn't show up in the properties page of my
>> project.
Juan T. Llibre - 30 Apr 2008 00:37 GMT
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;

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> 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)?
[quoted text clipped - 39 lines]
>>
>>> The option to change doesn't show up in the properties page of my project.
Cirene - 30 Apr 2008 02:47 GMT
Thanks Juan.  There was another option that I had to uncheck in the
properties of the project. :)

> re:
> !> Why is it that I target the 2.0 framework yet when my client is
[quoted text clipped - 66 lines]
>>>> The option to change doesn't show up in the properties page of my
>>>> project.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.