HttpRequestMessageExtensions not being found at run-time in Azure Function

前端 未结 4 1394
忘了有多久
忘了有多久 2021-01-02 00:42

I\'ve got an Azure Function app that creates a precompiled DLL (so it uses normal .cs files, not the older .csx method, pre-VS2017). Previously, it was targeting .Net Framew

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 01:35

    I had the same issue. I spent quite a while to fix this problem.

    The cause is that the Azure Functions project is refering to .Net Standard Library with version higher than 1.4.

    Bringing down your .Net Standard version to 1.4 or lower would fix the problem.

    But this is defintely a bug with Azure Functions SDK. They should fix it.

    https://github.com/Azure/azure-webjobs-sdk-script/issues/980

    https://github.com/Azure/Azure-Functions/issues/477

提交回复
热议问题