And yet another package-hell question...
I have an Azure Function v1 targeting net472 with a project dependency targeting netstandard2.0 or net472 or both.
When running the function, I get Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0
from this assembly.
This assembly has the System.Threading.Tasks.Extensions.dll
in the bin folder if I set the target to net472, but not for netstandard2.0
The Azure Function does not have the System.Threading.Tasks.Extensions.dll
in its bin folder.
deps.json has the following entry
My mistake or how can I fix this corruption?
Actually I get similar effects with Newtonsoft.JSON, where either v10 or v12 cannot be loaded, depending on which one I install (the other version is always missing)
Well, I gave up on Azure Functions v1 and moved the whole project to v3 using netstandard2.0. Things start to work again. Probably not a good place to be when mixing new and unsupported in-between projects.