MSB3091: Task failed because "{0}" was not found, or the .NET Framework SDK {1} is not installed. The task is looking for ...

MSB3091: Task failed because "{0}" was not found, or the .NET Framework SDK {1} is not installed.  The task is looking for "{0}" in the "bin" subdirectory beneath the location specified in the {2} value of the registry key {3}.  You may be able to solve the problem by doing one of the following:  1.) Install the .NET Framework SDK {1}.  2.) Manually set the above registry key to the correct location.  3.) Pass the correct location into the "ToolPath" parameter of the task.