.net 如何解决“;功能1 can';不能从Azure WebJobs SDK调用&x201D;使用VS2017在本地运行预编译Azure函数时出错?

.net 如何解决“;功能1 can';不能从Azure WebJobs SDK调用&x201D;使用VS2017在本地运行预编译Azure函数时出错?,.net,azure,azure-functions,.net,Azure,Azure Functions,我有一个预编译Azure函数的.NET标准2.0类库。当我使用CLI(版本1.0.10)在本地运行它们时,会出现以下错误 { "id": "8425f625-83d9-4bcc-800b-923b691730fd", "requestId": "22dcb01e-350e-4b0c-98b5-d2ab069856fd", "statusCode": 500, "errorCode": 0, "message": "'Function1' can't be

我有一个预编译Azure函数的.NET标准2.0类库。当我使用CLI(版本1.0.10)在本地运行它们时,会出现以下错误

{
    "id": "8425f625-83d9-4bcc-800b-923b691730fd",
    "requestId": "22dcb01e-350e-4b0c-98b5-d2ab069856fd",
    "statusCode": 500,
    "errorCode": 0,
    "message": "'Function1' can't be invoked from Azure WebJobs SDK. Is it missing Azure WebJobs SDK attributes?"
}

有人能帮我吗?

您是否尝试过更新运行时?