Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I am going to generate project by .Net Framework 2.0 in C# 2008 Express Edition.

I don't know how to generate a project with .Net Framework 2.0?

Thanks
Posted
Updated 25-Nov-10 3:33am
v3

1 solution

Hi,

If I understand correctly you are simply compiling your project under an older .NET framework this is very easy to achieve. With your project open and from the main menu select:

Project=>"Your Project Name" Properties...

Situated at the bottom of the drop down menu. Now you will be presented with a new page it usually opens up under the application tab. If it doesn't you need to select this tab on the left hand side. At the top of this tab page will be two text boxes and two drop down combo boxes (and a more components you can ignore).

The left hand side drop down combo box will be "Target Framework:". This by default is set to the most current one you have installed (e.g. .NET Framework 3.5). Select this drop down combo box and you can now designate which framework you program is compiled towards i.e. .NET Framework 2.0. All you do now is build your program as before.

Please be aware however by targeting a lower level release of .net framework some of your program may fail to execute the same way and in worst case at all. If you are using a simple program this should not effect the outcome drastically but please be aware that you must now test your program fully to ensure that it performs under Framework 2.0

Cheers
Chris
 
Share this answer
 
v2
Comments
saeid2010 25-Nov-10 9:37am    
Hi my friend
You are right.it was easy but i did't attend it.
TNX

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900