VS cannot load the GetWinFXPath task – how to fix it

The full error reads as follows: The “Microsoft.Build.Tasks.Windows.GetWinFXPath” task could not be loaded from the assembly PresentationBuildTasks, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly ‘PresentationBuildTasks, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35‘ or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, and that the assembly and all its dependencies are available. So how do you fix this error? Follow these steps:

  1. Open Control Panel
  2. Turn Windows features on or off
  3. Expand Microsoft .NET framework 3.0
  4. Check XPS Viewer
  5. Apply the changes
  6. Restart Visual Studio
  7. Done!

Leave a Reply