Thursday 9 November 2017

E:\MyProject\TestApplication\packages\Microsoft.Web.WebJobs.Publish.1.0.13\tools\webjobs.console.targets(100,5): Error MSB4062: The "ReadWebJobConfigFile" task could not be loaded from the assembly E:\MyProject\TestApplication\packages\Microsoft.Web.WebJobs.Publish.1.0.13\tools\Microsoft.Web.WebJobs.Publish.Tasks.dll. Could not load file or assembly 'file:///E:\MyProject\TestApplication\packages\Microsoft.Web.WebJobs.Publish.1.0.13\tools\Microsoft.Web.WebJobs.Publish.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

In this article, We will discuss What this error is all about and Why it is generating and How to resolve this error.

Well, this error is all about saying that it can't find out this dll Microsoft.Web.WebJobs.Publish.Tasks.dll while publishing in Windows Azure.

This Error will generate when we will try to Publish as Azure WebJob in Class Library File because when we are trying to Publish at that time Microsoft.Web.WebJobs.Publish.Tasks.dll is required to publish the file and if dll file not exists then it will generate error.

To Resolve this Error We need to add this dll Microsoft.Web.WebJobs.Publish.Tasks.dll in Class Library File.

To add this dll you can do it from Nuget Package or from Package Manager Console.

Package Manage Console Example:-

Install-Package Microsoft.Web.WebJobs.Publish -Version 1.0.13

Note:- Please install the Publish Version Which was mentioned in error. For me it Showed 1.0.13 not exists So We installed Microsoft.Web.WebJobs.Publish -Version 1.0.13 either from Nuget Package or from Package Manger Console.

0 comments:

Post a Comment