Я установил пакет Microsoft.azure.data nuget в Visual Studio, но я получаю сообщение об ошибке ниже - Program.cs (1,17): error CS0234: Тип или имя пространства имен «Azure» не существует в пространстве имен «Microsoft» ( вам не хватает ссылки на сборку?) ниже мой программный код -
using Microsoft.Azure.Kusto.Data;
using System;
namespace LensDashboradOptimization
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
//var clusterUrl = "https://mykusto.kusto.windows.net";
// replace 'WithAadUserPromptAuthentication' with your preferred method of authentication
//var kcsb = new Kusto.Data.KustoConnectionStringBuilder(clusterUrl);
//Console.WriteLine(kcsb);
// Read the first row from reader -- it's 0'th column is the count of records in MyTable
// Don't forget to dispose of reader when done.
var client = Kusto.Data.Net.Client.KustoClientFactory.CreateCslQueryProvider("https://help.kusto.windows.net/Samples;Fed=true");
var reader = client.ExecuteQuery("StormEvents | count");
Console.WriteLine(reader);
}
}
}