Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

UPDATE : September 29, 2008

The update from the Web Development Team is that, this behaviour is only related to Click Once Deployment.  However, when you create a website/project, the runtime targeted is 3.5 SP1 if it is present without any manual effort (if you are using the .NET 3.5 option from the version selector in Visual Studio 2008 while creating the website/project)

If you are wondering what the post title is all about, it is precisely about it  I had an interesting question on how to target .NET 3.5 alone after installing SP1.  This is because VS 2008 lists only .NET 3.5, .NET 3.0 & .NET 2.0 and does not specifically show .NET 3.5 SP1. 

Once you install .NET 3.5 SP1 (and Visual Studio 2008 SP1), for applications that only use the core .NET 3.5 features, the default target runtime would be .NET 3.5.  In fact if one needs to specifically target the SP1 features, one has to either add a reference to the System.Data.Entity Assembly or implement one of the steps listed in the article below, from the Project - Properties Settings .

http://msdn.microsoft.com/en-us/library/bb398202.aspx

Also, the following post explains some of the multi-targetting concepts 

http://msdn.microsoft.com/en-us/library/bb398197.aspx

As usual, it is well documented in MSDN but was hiding somewhere, so thought of wiring up a post quickly to provide the reference.

Cheers !!!

Print | posted on Thursday, September 4, 2008 1:47 AM

Comments on this post

# re: Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

Requesting Gravatar...
Thanks Harish. This is useful !
Left by Atul Gupta on Sep 04, 2008 3:09 PM

# re: Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

Requesting Gravatar...
alın zayıflayın aq
Left by meksika biberi zayiflama hapi on May 31, 2010 11:33 PM

# re: Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

Requesting Gravatar...
Perfect, i xas looking for a simple and to the point explanation, thanks for that!
Left by carnaporto 2011 on Aug 02, 2010 11:05 AM

# re: Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

Requesting Gravatar...
Service Pack 1 really did a number on Visual Studio 2008..just really glad that 2010 is out now.
Left by Tractor Blades on Aug 07, 2010 6:11 AM

# re: Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

Requesting Gravatar...
Service Pack 1 really did a num
Left by كلمات حب on Oct 25, 2010 9:26 PM

# re: Visual Studio 2008 Multi-Targeting, .NET 3.5 after installing SP1

Requesting Gravatar...
Good Post.It’s really helpful and interesting
Left by Forex on Feb 27, 2012 3:46 PM

Your comment:

 (will show your gravatar)