Today I had to get the target .NET Framework of a VS 2008 project. While the project file stores the values as “v2.0”, “v3.0”, etc, the values returned by the automation model are a bit surprising at first glance. Here is the article that I wrote about this:
HOWTO: Get the target .NET Framework of a Visual Studio 2008 project from a Visual Studio add-in or macro
http://www.mztools.com/articles/2008/MZ2008015.aspx