Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Publish, The “PublishTelemetry” Task Could Not Be Loaded

I am not able to publish to azure my web api, after updated Visual studio 2015 update 3. The error message says:

The “PublishTelemetry” task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.Tasks.dll. Confirm that the declaration is correct, that the assembly and all its dependencies are available

like image 217
Gabriel Bursztyn Avatar asked Aug 03 '16 13:08

Gabriel Bursztyn


2 Answers

I have found the fix here. I edited with admin rights, the file

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets

and removed the tag PublishTelemetry and its using tag. After edition, I restarted visual studio. Now I am able to deploy again.

like image 157
Gabriel Bursztyn Avatar answered Nov 14 '22 22:11

Gabriel Bursztyn


Even after editing the admin rights it wasn't working so I just install the MSBuild.Microsoft.VisualStudio.Web.targets from NuGet.

like image 28
Ben Avatar answered Nov 14 '22 22:11

Ben