nuget-webtargets
                                
                                 nuget-webtargets copied to clipboard
                                
                                    nuget-webtargets copied to clipboard
                            
                            
                            
                        Tasks fail if Microsoft Web Deploy is not installed
We have some build machines that don't have Visual Studio or MSDeploy installed. The tasks fail with an error:
Microsoft.Web.Publishing.targets(3742,5): error : Package/Publish task Microsoft.Web.Publishing.Tasks.IsCleanMSDeployPackageNeeded failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended.
The IsCleanMSDeployPackageNeeded task is attempting to load Microsoft.Web.Deployment.dll from the installed location by looking up paths in the registry.
I think this can be fixed by including Microsoft.Web.Deployment.dll next to the task DLL.  Alternatively, we might need to include MSDeploy in the package and set the MSBuild property <MSBuildDeployPath />.