How do I target a specific .NET Framework in my project?

Hi,
   
   I am curios as to how I target different .NET frameworks in my development effort in VS 2005 or 2008?  I have frameworks 1.1 through 3.5 installed.  Also, how can I tell what a compiled program has been targeted for?

Thanks,
Pat
pbenitoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jorge PaulinoConnect With a Mentor IT Pro/DeveloperCommented:
If you use then then you have to!
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
Hi pbenito,

In VS2008 I don't have any idea but in VS2005 you go to project properties and in the publish check the prerequesits. Also you can look on the references that show you the used framework.


jpaulino
0
 
pbenitoAuthor Commented:
Thanks jpaulino.

I checked the 'publish' settings and the only prereq was .NET 2.0, but when I check the references there are some references that come from .NET 3.0.  Do I have to manually select the prereqs?

Thanks,
Pat
0
 
Éric MoreauSenior .Net ConsultantCommented:
VS2008 cannot target Framework 1.x (only 2.0, 3.0, or 3.5)

VS2005 can only target 2.0 and use 3.0 if installed
0
All Courses

From novice to tech pro — start learning today.