'IWebJobsBuilder' does not contain a definition for 'AddAzureStorageCoreServices' 'AddTimers'
Asked Answered
V

4

7

Missing references upgrading to Webjob V3

Installed the references

'IWebJobsBuilder' does not contain a definition for 'AddTimers' and no accessible extension method 'AddTimers' accepting a first argument of type 'IWebJobsBuilder' could be found (are you missing a using directive or an assembly reference?)

Velazquez answered 16/7, 2019 at 15:17 Comment(0)
G
22

For .net 6.0 , for "AddAzureStorageCoreServices" extension method you have to add Microsoft.Azure.WebJobs.Host.Storage instead of Microsoft.Azure.WebJobs.Extensions

For AddAzureStorage , in .net 6.0 it's not supported anymore you have to replace it with AddAzureStorageBlobs or AddAzureStorageQueuesextention method you need to add Nuget package: Microsoft.Azure.WebJobs.Extensions.Storage

Gimcrackery answered 21/6, 2023 at 1:57 Comment(0)
S
5

Using NuGet package Manager, install Microsoft.Azure.WebJobs.Extensions and Microsoft.Azure.WebJobs.Extensions.Storage packages.

Sewole answered 12/4, 2020 at 21:22 Comment(0)
V
1

The solution was to remove the references clean the project delete bin and obj folder add the references again

Velazquez answered 16/7, 2019 at 15:18 Comment(0)
A
1

If you are using Microsoft.Azure.WebJobs.Extensions version > 3 you will get this error also, drop it to the last 3.xxx version and should work.

Antonyantonym answered 14/4, 2023 at 4:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.