Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I created a application in C# winform. I changed the target Framework version 2.0, and run my application fine.
but problem is after i making setup with Setup project, when the user install it on his computer its given message that "download .NET framework 4.0", after that setup is exited..
I don't want to add .NET framework 4.0 to setup Prerequisite.
and also I tick out the option in Prerequisite "Create setup program to install Prerequisite components".

How to create setup with .NET Framework 2.0 in VS 2010???


Thanks in Advance..

Regard :
Jayanta.
Posted
Comments
Mike Meinz 7-Sep-13 12:56pm    
Why run an old .NET Framework?

Use .NET Framework 4.0 and save yourself the problems of working with obsolete technology.
JayantaChatterjee 7-Sep-13 13:00pm    
Sir, I know that .NET Framework 4.0 is new and 2.0 is obsoleted. But in this situation I need small size of a setup file. so I need it to 2.0 or 3.5 .NET Framework(user have win7 OS)...

1 solution

Though it is written for VS 2008 but i think you absolutely get an idea to do that:
Targeting the .NET Framework 2.0 with Visual Studio 2008[^]
Also could have a look at :
Add Prerequisites of .NET Framework in Visual Studio Setup Project[^]
 
Share this answer
 
v3
Comments
JayantaChatterjee 7-Sep-13 22:27pm    
Sir, I told in a previous comments that i need smaller size of my setup files,so that's why I don't want to add any prerequisite. The user have .NET 3.5 in his machine and my program classes are for .NET 2.0 or 3.0. So Why should I use .NET 4.0(which increase the size)???
can You please suggest me how to change .NET Framework of a setup Project???
ridoy 8-Sep-13 2:19am    
then debug,build and set target to .NET 3.5 for your program and then create a setup file under 3.5,that's all.
JayantaChatterjee 8-Sep-13 10:20am    
Thanks.....

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