繁体   English   中英

错误 CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“Azure”(您是否缺少程序集引用?)

[英]error CS0234: The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

我已经在 Visual Studio 中安装了 Microsoft.azure.data nuget 包,但出现以下错误 - Program.cs(1,17): error CS0234: The type or namespace name 'Azure' does not exist in the namespace '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);
        }
    }
}

安装 Microsoft.Azure.Kusto.Data nuget。 然后它为我编译。 它确实给了我身份验证错误,但没有给我程序集引用错误。


using Kusto.Data.Net.Client;

namespace ConsoleApp2
{
    class Program
    {


        static void Main(string[] args)
        {

            var client = KustoClientFactory.CreateCslQueryProvider("https://help.kusto.windows.net/Samples");
            var reader = client.ExecuteQuery("StormEvents | count");
        }
    }
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 CS0234 命名空间“Microsoft”中不存在类型或命名空间名称“Reporting”(您是否缺少程序集引用?) 错误 CS0234 命名空间“MvvmCross”中不存在类型或命名空间名称“平台”(您是否缺少程序集引用?) 错误 CS0234:命名空间中不存在类型或命名空间名称(是否缺少程序集引用?) 错误CS0234:类型或名称空间名称&#39;OAuth&#39;在名称空间&#39;Microsoft.Owin.Security&#39;中不存在(您是否缺少程序集引用?) CS0234 C#类型或名称空间名称&#39;Slydeextender&#39;在名称空间中不存在(您是否缺少程序集引用?) VS 2017 c#错误CS0234命名空间中不存在类型或命名空间名称(您是否缺少程序集引用?) 编译器错误消息:CS0234:命名空间“传真”中不存在类型或命名空间名称“WebApp”(您是否缺少程序集引用?) CS0234:命名空间“<namespace1>”中不存在类型或命名空间名称“<namespace2>”。 (你错过了一个程序集引用吗?) CS0234:类型或名称空间名称“ Description”在名称空间“ System.Web.Http”中不存在(您是否缺少程序集引用?) MEF CS0234:名称空间&#39;System.ComponentModel&#39;中不存在类型或命名空间名称&#39;Composition&#39;(您是否缺少程序集引用?)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM