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 regular smile 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 !!!

This article is part of the GWB Archives. Original Author: Harish Ranganathan

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.