views:

30

answers:

1

In Visual Studio 2010 prerequisites window these are checked
-Microsoft .net framework 4 (x86 and x64)
-Microsoft .net framework 4 client profile (x86 and x64)
-SQL server 2008 express
-SQL server compact 3.5 sp2
-Windows Installer 3.1
-Windows installer 4.5

They seem repetitive (installer 3.1, compact server, client profile). How do i know that which components are really necessary for my application to run and which of them are useless.

A: 

You should know what version of the .NET Framework you are targeting, and specify only that one as a prerequisite. You don't need both of these. The version you are targeting is set in the Application tab (assuming C#).

If you're using SQL2008 Express, then check the box. If you're not, then don't.

Same for SQLCE, although if using that in a ClickOnce application, I would deploy it locally as described here: http://robindotnet.wordpress.com/2010/02/28/how-to-deploy-the-sqlserver-compact-edition-software-locally/

RobinDotNet
What is client profile? what is compact sql?
LifeH2O
There are two versions of the .NET 4 Framework, one is the full version, the other is Client Profile (smaller). This is specified in the properties of your application. SQLServer Compact Edition is a lightweight version of a SQLServer Express database.
RobinDotNet
My application is using SQL server and .net framework. Should i disable compact and client profile?
LifeH2O
You should only check the ones you need. So if you are targeting the .NET 4 Frameowrk, and not the Client Profile, that's the one you should check. Same for SQLServer -- SQLServer, SQLServer Express, and SQLServer Compact edition are three different products. Only select what you need (SQLServer is not an option, as this runs on a server, and you use .NET assemblies to access it).
RobinDotNet