VS 2008 .NET 3.5 Project Fails to Compile

I fired up VS 2008 and set up a basic Windows forms application.  Made some quick changes and hit build only to immediately get the following error:

The "Microsoft.Build.Tasks.Windows.GetWinFXPath" task could not be loaded from the assembly PresentationBuildTasks, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'PresentationBuildTasks, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.

These error was followed by warnings to key references such as system and  In fact, all my references has a caution symbol beside them.  I checked control panel and of course .NET 3.5 was installed.  After some searching, the problem was suprisingly Vista.  It turns off .NET 3.0 was turned off as a "feature".  Here's the fix...

Go to Control Panel, Programs, and Turn Windows Features On or Off.  Notice that Microsoft .NET Framework 3.0 is probably unchecked.

Windows Features

Who knew?  Enable that feature and you should be good to go.

Return TopTrackbackPrintPermalink


Got something to say? Join the discussion »

leave a reply

 [Quick Submit with Ctrl+Enter]

Remember my details
Notify me of followup comments via e-mail