5
votes

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

3

3 Answers

8
votes

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.

5
votes

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

0
votes

I downloaded the MSBuild.Microsoft.VisualStudio.Web.targets package from NuGet and replaced the C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web folder with MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3\tools\VSToolsPath\Web folder from tha package.