Azure的功能 - 法Azure存储中未发现

问题描述 投票:0回答:1

我使用Azure Table中存储保存数据。我要创建的方法,蔚蓝的功能。当我在本地调试,它做工精细。当蔚蓝的功能添加它,我得到异常错误

未找到方法:“布尔Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists。

CloudTableClient tableClient = cloudStorageAccount.CreateCloudTableClient();
            if (tableClient != null)
            {
                CloudTable table = tableClient.GetTableReference(reference);
                table.CreateIfNotExists();
                TableOperation insertOperation = TableOperation.Insert(entity);
                table.Execute(insertOperation);
                return true;
            }

而WindowsAzure.Storage包的配置,

<package id="WindowsAzure.Storage" version="7.2.1" targetFramework="net461" />
c# azure azure-storage azure-functions
1个回答
0
投票

更新的NuGet到WindowsAzure.Storage 9.3.3 https://www.nuget.org/packages/WindowsAzure.Storage/然后发布你的函数它应该工作,确保连接字符串中的应用程序设置进行配置。

© www.soinside.com 2019 - 2024. All rights reserved.